Skip to main content
POST
/
seguros
/
auth
/
token
Obter Token de Acesso
curl --request POST \
  --url https://beta-jackson.safest.com.br/api/seguros/auth/token \
  --header 'Content-Type: application/json' \
  --data '
{
  "client_id": "seu_client_id_aqui",
  "client_secret": "seu_client_secret_aqui"
}
'
{
  "success": true,
  "response": {
    "access_token": "a1b2c3d4e5f6g7h8i9j0.1234567890",
    "refresh_token": "abc123def456ghi789jkl012mno345pqr678stu901vwx234yz",
    "token_type": "Bearer",
    "expires_in": 1800,
    "expires_at": "2026-02-13T18:30:00+00:00"
  }
}

Body

application/json
client_id
string
required

Identificador único do cliente fornecido pela Safest

Example:

"seu_client_id_aqui"

client_secret
string
required

Chave secreta do cliente fornecida pela Safest

Example:

"seu_client_secret_aqui"

Response

Token gerado com sucesso

success
boolean
Example:

true

response
object