Autentication

The authentication route is responsible for validating user credentials and providing an access token to enable secure usage of the application's services. With this route, it is possible to authenticate in the microservice, obtain the access token, and start consuming the other routes.

📘

How to get the credentials?

Contact the CDC team to get a credential made, you will be supplied with unique a client_key and client_secret for testing, after approval of the registration.

🚧

Using the authentication token

The authentication token expires after 60 minutes. Each token is of type Bearer. To authenticate your API requests, include the token in the Authorization header as follows:

Authorization: Bearer {YourToken}

Replace {YourToken} with the actual token value (excluding the curly braces).

Response

Http CodeReturn CodeMessage
200200-01Success.
400400-01Something unexpected happened.
401401-03incorrect client_key or client_secret
401401-04incorrect client_key or client_secret

Response Parameters

ParametersFormatDescription
request_codeStringUnique identifier for the request
returnBooleanIndicates if the request was successful or not
return_codeStringCode representing the status of the request
messageStringMessage describing the result of the request
tokenStringAccess token generated for authentication
token_typeStringType of token (usually "bearer")
expires_inIntegerToken validity period in seconds
Language
Response
Click Try It! to start a request and see the response here!