cURL
curl --request POST \ --url https://api-payment.safefypay.com.br/v1/auth/token \ --header 'Content-Type: application/json' \ --data ' { "publicKey": "pk_sandbox_abc123def456", "secretKey": "sk_sandbox_xyz789ghi012" } '
{ "data": { "accessToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...", "tokenType": "Bearer", "expiresIn": 3600, "environment": "Sandbox" }, "message": null, "error": null }
OAuth2 authentication - Client Credentials
accessToken
429
auth_rate_limit_exceeded
Sandbox
Production
Chave publica da credencial (pk_...)
"pk_sandbox_abc123def456"
Chave secreta da credencial (sk_...)
"sk_sandbox_xyz789ghi012"
Tipo de autenticacao
"client_credentials"
Token gerado com sucesso
Show child attributes