Skip to main content
POST
/
v1
/
authentication
/
accesstoken
Gerar token de acesso.
curl --request POST \
  --url https://api.staging.credicarro.com.br/integration/v1/authentication/accesstoken \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "clientId": "8pqh3k1y0zmtg4u9xenrcvlsw2",
  "clientSecret": "8qzn2v0w5lgyh3cmt9a7jrk1f4bepsdu6xovifn3t5hlgq7r9kc"
}
'
{
  "token_de_acesso": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
  "tipo_de_token": "Bearer",
  "expira_em_segundos": 3600,
  "expira_em": "2025-10-22T12:57:21.948Z",
  "escopo": "credicarro.integration.access/full"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
clientId
string
required

Identificador do cliente de integração fornecido pelo Credicarro

Example:

"8pqh3k1y0zmtg4u9xenrcvlsw2"

clientSecret
string
required

Segredo do cliente de integração fornecido pelo Credicarro

Example:

"8qzn2v0w5lgyh3cmt9a7jrk1f4bepsdu6xovifn3t5hlgq7r9kc"

Response

autenticação retornada com sucesso

token_de_acesso
string

Token de acesso para autenticação nas requisições

Example:

"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."

tipo_de_token
string

Tipo do token de acesso

Example:

"Bearer"

expira_em_segundos
integer<int32>

Tempo em segundos para expiração do token

Example:

3600

expira_em
string<date-time>

Data e hora de expiração do token

Example:

"2025-10-22T12:57:21.948Z"

escopo
string

Escopo do token de acesso

Example:

"credicarro.integration.access/full"