Obtener Credenciales
Use este endpoint para obtener las credenciales de autenticación.
Entornos Disponibles
- Producción
https://api.gateway.com.br/core
Endpoint
- Método:
GET - Endpoint:
/auth/credentials - Autenticación: Bearer token
Ejemplo de Solicitud
- cURL
- JavaScript
curl --request GET \
--url https://api.gateway.com.br/core/auth/credentials \
--header 'Authorization: Bearer su-token-jwt'
const response = await fetch('https://api.gateway.com.br/core/auth/credentials', {
method: 'GET',
headers: {
'Authorization': 'Bearer su-token-jwt'
}
});
const data = await response.json();
Respuesta Exitosa
| Campo | Tipo | Descripción |
|---|---|---|
client_id | string (UUID) | Identificador único |
client_secret | string | Clave secreta de autenticación |
Ejemplo de Respuesta
{
"client_id": "553e8400-e29...",
"client_secret": "BvYIm4sb5CuAuq..."
}
Errores Posibles
| Código | Descripción | Solución |
|---|---|---|
| 401 | Credenciales inválidas | Verifique sus credenciales |
| 403 | Sin permiso/autorización | Contacte al soporte |
| 500 | Error interno | Contacte al soporte |