Vai al contenuto
Autenticazione

Ottieni un token

POST
/api/v1/auth/token

Scambia client ID e client secret con un token di accesso (OAuth 2.0, client credentials). Invia il token a ogni chiamata come Authorization: Bearer <token>.

  1. body
client_id*string

Il client ID ricevuto da VolantinoPiù.

client_secret*string

Il client secret ricevuto da VolantinoPiù.

Corpo della risposta

application/json
  1. response
access_token*string

Il token (un JWT). Invialo come Authorization: Bearer <token>.

token_type*string
expires_in*number

Secondi alla scadenza del token.

Richiesta di esempio
curl -X POST 'https://api.flyer.volantinopiu.ai/api/v1/auth/token' \  -H 'Content-Type: application/json' \  -d '{  "client_id": "string",  "client_secret": "string"}'
Risposta di esempio
{  "access_token": "string",  "token_type": "Bearer",  "expires_in": 43199}