POST
/
login
curl --request POST \
  --url https://www.wander-service.fr/api/clients/login \
  --header 'Content-Type: application/json' \
  --data '{
  "grantAccess": "clientSecret",
  "clientId": "<string>",
  "clientSecret": "<string>"
}'
{
  "accessToken": "<string>",
  "expiresIn": 3600,
  "tokenType": "Bearer",
  "refreshToken": "<string>"
}

Body

application/json

Allows you to log in with your clientId and clientSecret before receiving a refreshToken valid for 7 days, allowing you to log in again.

grantAccess
enum<string>
required
Available options:
clientSecret
clientId
string
required
clientSecret
string
required

Response

201
application/json
Successful operation
accessToken
string

Token to be used for bearerAuth.

expiresIn
number

Time in seconds before accessToken expires.

Example:

3600

tokenType
string
Example:

"Bearer"

refreshToken
string

Token valid for 7 days to be used to relogin.