## Tribunal / TJPB / Solicitar Certidão
Solicita certidões de pessoas físicas ou jurídicas no Tribunal de Justiça da Paraíba e retorna o número do protocolo.


### Site URL
- https://app.tjpb.jus.br/certo/paginas/publico/solicitarCertidao.jsf

### Request
POST endpoint: `https://api.infosimples.com/api/v2/consultas/tribunal/tjpb/pedido-certidao`

### Body encoding (POST)
[`application/x-www-form-urlencoded`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Methods/POST)



| Parameter          | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| ------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| token*             | The token that will authenticate and authorize the request.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| tipo_certidao*     | Tipo de certidão a ser emitida. <br><strong>CPF:</strong><ul><li>CIVEL</li><li>CRIMINAL</li><li>MILITAR</li><li>EXECUCAO_FISCAL</li><li>TUTELA_CURATELA_INTERDICAO</li><li>CRIMINAL_SEGUNDO_GRAU</li><li>FALENCIA_RECUPERACAO_JUDICIAL_EXTRAJUDICIAL</li><li>CIVEL_SEGUNDO_GRAU</li><li>INVENTARIO</li><li>MILITAR_SEGUNDO_GRAU</li><li>INSOLVENCIA_CIVIL</li></ul><strong>CNPJ:</strong><ul><li>CIVEL</li><li>CRIMINAL</li><li>EXECUCAO_FISCAL</li><li>FALENCIA_RECUPERACAO_JUDICIAL_EXTRAJUDICIAL</li><li>CRIMINAL_SEGUNDO_GRAU</li><li>CIVEL_SEGUNDO_GRAU</li><li>INSOLVENCIA_CIVIL</li></ul> |
| nome**             | Obrigatório ao informar CPF.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| nome_mae**         | Obrigatório ao informar CPF.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| nome_pai**         | Nome Pai                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| sexo**             | Obrigatório ao informar CPF. Sendo os valores "Masculino", "Feminino", "Não informado".                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| birthdate**        | Obrigatório ao informar CPF. Formato: YYYY-MM-DD.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| cep*               | Postal code (CEP) of the address to be queried.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| numero_endereco*   | Numero Endereco                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| complemento**      | Complemento                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| email*             | Email                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| estado_civil**     | Obrigatório ao informar CPF. Deve ser informado um dos valores a seguir:<br><ul><li>CASADO</li><li>DIVORCIADO</li><li>NÃO INFORMADO</li><li>OUTROS</li><li>SEPARADO JUDICIALMENTE</li><li>SOLTEIRO</li><li>UNIÃO ESTÁVEL</li><li>VIÚVO(A)</li></ul>                                                                                                                                                                                                                                                                                                                                              |
| razao_social**     | Obrigatório ao informar CNPJ.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| nome_fantasia**    | Nome Fantasia                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| cnpj**             | Informar somente um entre CNPJ e CPF.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| cpf_requisitante** | Obrigatório ao informar CNPJ.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| rg**               | Obrigatório ao informar CPF.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| cpf**              | Informar somente um entre CNPJ e CPF.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| orgao_emissor_rg** | Obrigatório ao informar CPF.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| uf_emissor_rg**    | Obrigatório ao informar CPF.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |

> * Required parameter.

> ** Optional parameter. Sometimes it is necessary to set at least one of the optional parameters for the service to work properly.


### Response examples (OK)
```json
{
  "code": 200,
  "code_message": "A requisição foi processada com sucesso.",
  "errors": [],
  "header": {
    "api_version": "v2",
    "api_version_full": "2.2.39-20260923203539",
    "product": "Consultas",
    "service": "tribunal/tjpb/pedido-certidao",
    "parameters": {
      "birthdate": "11/11/1111",
      "cep": "01310-200",
      "cpf": "123.456.789-01",
      "email": "exemplo@email.com",
      "estado_civil": "solteiro",
      "nome": "Exemplo de Nome",
      "nome_mae": "Exemplo de Nome",
      "numero_endereco": "111",
      "orgao_emissor_rg": "SSP",
      "rg": "11.111.111-1",
      "sexo": "Masculino",
      "tipo_certidao": "CIVEL_SEGUNDO_GRAU",
      "uf_emissor_rg": "Exemplo de Uf"
    },
    "client_name": "Minha Empresa",
    "token_name": "Token de Produção",
    "billable": true,
    "price": "0.24",
    "requested_at": "2026-09-24T11:20:36.000-03:00",
    "elapsed_time_in_milliseconds": 513,
    "remote_ip": "111.111.111.111",
    "signature": "eJORpFX88i6edLc2ArpHg0PiXGDxdKjYvHVFf7Eagto6GrCPf4TpF1l4gIhymPl37ViRrKcoIH9WOuL8Pv9b/W1wAe47a5nUWf50cA=="
  },
  "data_count": 1,
  "data": [
    {
      "mensagem": "Exemplo de mensagem",
      "numero_protocolo": "UF-1234567-0123456789ABCDEF0123456789ABCDEF",
      "site_receipt": "https://www.exemplo.com/exemplo-de-url"
    }
  ],
  "site_receipts": [
    "https://www.exemplo.com/exemplo-de-url"
  ]
}
```


### Preview file

The preview file (`site_receipts`) in the response JSON is **generated by the source (website/app)** that processed the automation.

### Code snippets


#### Python
```python
# Tested with: Python 3.10.19, Python 3.14.0
import requests

url = 'https://api.infosimples.com/api/v2/consultas/tribunal/tjpb/pedido-certidao'
args = {
  "tipo_certidao":    "VALUE_OF_PARAMETER_TIPO_CERTIDAO",
  "nome":             "VALUE_OF_PARAMETER_NOME",
  "nome_mae":         "VALUE_OF_PARAMETER_NOME_MAE",
  "nome_pai":         "VALUE_OF_PARAMETER_NOME_PAI",
  "sexo":             "VALUE_OF_PARAMETER_SEXO",
  "birthdate":        "VALUE_OF_PARAMETER_BIRTHDATE",
  "cep":              "VALUE_OF_PARAMETER_CEP",
  "numero_endereco":  "VALUE_OF_PARAMETER_NUMERO_ENDERECO",
  "complemento":      "VALUE_OF_PARAMETER_COMPLEMENTO",
  "email":            "VALUE_OF_PARAMETER_EMAIL",
  "estado_civil":     "VALUE_OF_PARAMETER_ESTADO_CIVIL",
  "razao_social":     "VALUE_OF_PARAMETER_RAZAO_SOCIAL",
  "nome_fantasia":    "VALUE_OF_PARAMETER_NOME_FANTASIA",
  "cnpj":             "VALUE_OF_PARAMETER_CNPJ",
  "cpf_requisitante": "VALUE_OF_PARAMETER_CPF_REQUISITANTE",
  "rg":               "VALUE_OF_PARAMETER_RG",
  "cpf":              "VALUE_OF_PARAMETER_CPF",
  "orgao_emissor_rg": "VALUE_OF_PARAMETER_ORGAO_EMISSOR_RG",
  "uf_emissor_rg":    "VALUE_OF_PARAMETER_UF_EMISSOR_RG",
  "token":            "WRITE_YOUR_TOKEN_HERE",
  "timeout":          "600"
}

response = requests.post(url, args)
response_json = response.json()
response.close()

if response_json['code'] == 200:
  print("Retorno com sucesso: ", response_json['data'])
elif response_json['code'] in range(600, 799):
  mensagem = "Resultado sem sucesso. Leia para saber mais: \n"
  mensagem += "Código: {} ({})\n".format(response_json['code'], response_json['code_message'])
  mensagem += "; ".join(response_json['errors'])
  print(mensagem)

print("Cabeçalho da consulta: ", response_json['header'])
print("URLs com arquivos de visualização (HTML/PDF): ", response_json['site_receipts'])
```


## We are here to help
Do you still need to figure something out? Reach us at [suporte@infosimples.com.br](mailto:suporte@infosimples.com.br) and our highly qualified support team will be happy to help.
