Authentification OAuth 2.0
Grant client_credentials uniquement.
Obtenir un access token
POST https://api.octave.immo/oauth/token
Content-Type: application/json
{
"grant_type": "client_credentials",
"client_id": "…",
"client_secret": "…",
"application": "slug-ou-token"
}
application est requis seulement si l’accès couvre plusieurs applications.
Réponse
{
"access_token": "…",
"token_type": "Bearer",
"expires_in": 3600
}
Appels suivants
Header : Authorization: Bearer {access_token}.
| Champ | Type | Format | Exemple | Valeurs |
|---|---|---|---|---|
grant_type |
string | — | client_credentials |
client_credentials |
client_id |
string | — | oct_live_… |
— |
client_secret |
string | password | — | — |
application |
string | — | mon-promoteur |
slug, token ou id |
expires_in |
integer | int32 | 3600 |
secondes |