Skip to main content
POST
/
v1
/
authentication
/
accesstoken
Gerar token de acesso.
curl --request POST \
  --url https://api.staging.cartaosimples.com.br/integration/v1/authentication/accesstoken \
  --header 'Content-Type: application/json' \
  --data '
{
  "clientId": "<string>",
  "clientSecret": "<string>"
}
'
{
  "token_de_acesso": "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9...",
  "expira_em_segundos": 3600,
  "expira_em": "2025-01-15T11:30:00-03:00",
  "tipo_de_token": "Bearer",
  "escopo": "credicarro.integration.access/full"
}

Body

application/json
clientId
string
required
Minimum string length: 1
clientSecret
string
required
Minimum string length: 1

Response

OK

token_de_acesso
string
expira_em_segundos
integer<int32>
expira_em
string<date-time>
read-only
tipo_de_token
string
escopo
string