Token

Solicita un token de acceso

Devuelve un token de acceso a la API mediante el flujo OAuth2 client_credentials. La respuesta contiene los campos access_token, token_type (siempre "Bearer") y expires_in (segundos de validez). El token no es renovable: una vez expirado debe solicitarse uno nuevo a este mismo endpoint. Errores posibles: 400 si falta el cuerpo, el grant_type no es client_credentials o faltan client_id/client_secret; 401 si las credenciales no son válidas.

post/api/v1/token

Request

  • Base URL
    https://api.mobiliagestion.es (the document declares no server; this is the origin it was published from)
  • Auth
    API key in header Authorization

Request body application/x-www-form-urlencoded

grant_typestring
client_idstring uuid
client_secretstring

Response

OK

access_tokenstring nullable

Token de acceso JWT que debe enviarse en la cabecera Authorization como "Bearer {access_token}".

token_typestring nullable

Tipo de token. Siempre "Bearer".

expires_ininteger

Segundos de validez del token desde su emisión. Expirado el token, debe solicitarse uno nuevo al mismo endpoint.

Changes

No recorded changes to this operation across all 7 revisions of this API.