Skip to main content

Authentification

Récupération du jeton d'accès

Requête

Point de terminaison

POST /auth/login

Paramètres

ParamètreTypeDescription
emailStringAdresse Email du compte
passwordStringMot de passe du compte

Réponse

AttributTypeDescription
access_tokenStringJeton d'accès aux données
typeStringType d'authentification
expires_inNumberNombre de secondes avant l'expiration du jeton

Exemple

Requête
    curl -X POST 'https://sandbox-data.orishas-finance.com/api/auth/login' \
-d email=noreply@orishas-finance.com \
-d password=TestUserPassword
Réponse
 {
"access_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c",
"token_type": "bearer",
"expires_in": 8640000
}

Autorisation

Pour s'authentifier avec le jeton d'authentifiaction, il faut passer le jeton d'accès comme la valeur de l'entête Authorization