curl --request POST \
--url https://api.fegora.com/token \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data grant_type=password{
"access_token": "eyJhbGciOiJodHRwOi8vd3d3LnczLm9yZy8yMDAxLzA0L3htbGRzaWctbW9yZSNobWFjLXNoYTI1NiJ9...ejemplo",
"token_type": "bearer",
"expires_in": 86399,
"refresh_token": "66b93887b8af4c82abf3ed3b77912a94",
"as:client_id": "apiApp",
"userName": "12345678",
"id": "5c790e3adc078a16383d6ecc",
".issued": "Mon, 11 Nov 2026 00:28:58 GMT",
".expires": "Tue, 12 Nov 2026 00:28:58 GMT"
}Autenticación
Obtener u renovar un token de acceso
Endpoint OAuth2 (grant types password y refresh_token). El token de acceso (JWT Bearer) tiene una vigencia de 24 horas; el refresh_token permite renovarlo sin volver a enviar credenciales.
POST
https://api.fegora.com
/
token
curl --request POST \
--url https://api.fegora.com/token \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data grant_type=password{
"access_token": "eyJhbGciOiJodHRwOi8vd3d3LnczLm9yZy8yMDAxLzA0L3htbGRzaWctbW9yZSNobWFjLXNoYTI1NiJ9...ejemplo",
"token_type": "bearer",
"expires_in": 86399,
"refresh_token": "66b93887b8af4c82abf3ed3b77912a94",
"as:client_id": "apiApp",
"userName": "12345678",
"id": "5c790e3adc078a16383d6ecc",
".issued": "Mon, 11 Nov 2026 00:28:58 GMT",
".expires": "Tue, 12 Nov 2026 00:28:58 GMT"
}Body
application/x-www-form-urlencoded
Solicitud de token OAuth2, application/x-www-form-urlencoded.
Available options:
password, refresh_token Requerido cuando grant_type es password. Usuario o correo electrónico.
Requerido cuando grant_type es password.
Requerido cuando grant_type es refresh_token.
Response
Token emitido correctamente.