Autenticazione
Ottieni un token
POST
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>.
- body
client_id*stringIl client ID ricevuto da VolantinoPiù.
client_secret*stringIl client secret ricevuto da VolantinoPiù.
application/json- response
access_token*stringIl token (un JWT). Invialo come Authorization: Bearer <token>.
token_type*stringexpires_in*numberSecondi alla scadenza del token.
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}