Skip to main content
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.

grant_type
enum<string>
required
Available options:
password,
refresh_token
client_id
string
default:apiApp
username
string

Requerido cuando grant_type es password. Usuario o correo electrónico.

password
string

Requerido cuando grant_type es password.

refresh_token
string

Requerido cuando grant_type es refresh_token.

Response

Token emitido correctamente.

access_token
string
required
token_type
string
required
Example:

"bearer"

expires_in
integer
required

Vigencia del access token en segundos (24 horas).

refresh_token
string
required
as:client_id
string
userName
string
id
string

Id interno del usuario.

.issued
string
.expires
string