Authentification

This endpoint allows you to authenticate and get your id_token to use the web services.

Get "id_token" (Authorization)

POST https://auth.transiteo.io/oauth2/token

This endpoint allows you to get the "id_token" thanks to the "client_id" & "refresh_token"

Headers

NameTypeDescription

content-type

string

application/x-www-form-urlencoded

Request Body

NameTypeDescription

client_id

string

"your client_id"

grant_type

string

refresh_token

refresh_token

string

"your refresh_token"

{
    "id_token": string,
    "access_token": string,
    "expires_in": number,
    "token_type": string
}

Response fields

{
    "id_token": "your id_token",
    "access_token": "your access_token",
    "expires_in": 3600,
    "token_type": "Bearer"
}

"id_token"

Examples : "eyJraWQiOiI4eXVTYUd5WHNEUCtIOTU0UjYxd1Z4QkMyNHUydzRUclF5NEZ..." Type : string

"access_token"

Examples : "eyJraWQiOiJNUHE3ZFJydk1FaTZqRXB1cGdsa1BhN3ZuV0dWWE94MjJTY..." Type : string

"expire_in"

The id-token and access_token will expire in 3 600 seconds Value : "3600" Type : number

"token_type"

Value : "Bearer" Type : string

The "id_token" and "access_token" are available 1 hour.

Last updated