Endpoints and Gateways
Gateway APISerpro
The APISerpro Gateway was created to improve service performance and latency. As of November 2020, new customers must use the URLs below, according to the respective plan and endpoint.
The access keys can be found in the customer area by selecting the contract option. Be sure not to choose the option that contains "DEPRECATED":
Authentication address
https://gateway.apiserpro.serpro.gov.br/token
Service access endpoints
Single Company (Individual) Service Plan:
https://gateway.apiserpro.serpro.gov.br/datavalid/v2/status
https://gateway.apiserpro.serpro.gov.br/datavalid/v2/validate/pf
https://gateway.apiserpro.serpro.gov.br/datavalid/v2/validate/pf-digitais
https://gateway.apiserpro.serpro.gov.br/datavalid/v2/validate/pf-face
https://gateway.apiserpro.serpro.gov.br/datavalid/v2/validate/pf-imagem
https://gateway.apiserpro.serpro.gov.br/datavalid/v2/validate/pj
Old Gateway (DEPRECATED)
For customers who signed up until mid-October 2020, the production addresses are as follows, referring to the old Gateway. Soon, customers who fit into this group will be informed of instructions on how to use the new APISerpro Gateway.
To consume the API using the old (Deprecated) Gateway, just follow the quick start guide, but using the URLs below instead.
Authentication address
https://apigateway.serpro.gov.br/token
Service access endpoints
Single Company (Individual) Service Plan:
https://apigateway.serpro.gov.br/datavalid/v2/status
https://apigateway.serpro.gov.br/datavalid/v2/validate/pf
https://apigateway.serpro.gov.br/datavalid/v2/validate/pf-digitais
https://apigateway.serpro.gov.br/datavalid/v2/validate/pf-face
https://apigateway.serpro.gov.br/datavalid/v2/validate/pf-imagem
https://apigateway.serpro.gov.br/datavalid/v2/validate/pj