Authentification
Pour générer un jeton de session, vous devez fournir un ID client et un secret client valides.
Pendant la bêta fermée, vous pouvez obtenir vos clés API en contactant notre équipe Customer Success.
Générer le jeton
Utilisez ce point de terminaison pour générer un jeton d’accès temporaire
Generate token
Paramètres de chemin
regionstring · enumRequisValeurs possibles:
gb | au
Corps
clientIdstringOptionnel
clientSecretstringOptionnel
Réponses
200
OK
application/json
accessTokenstringOptionnel
expiresInstringOptionnel
tokenTypestringOptionnel
404
Not Found
application/json
422
Unprocessable Entity
application/json
500
Internal Server Error
application/json
post/{region}/v1/auth/token
POST /{region}/v1/auth/token HTTP/1.1
Host: app.aphex.co/
Content-Type: application/json
Accept: */*
Content-Length: 41
{
"clientId": "text",
"clientSecret": "text"
}{
"accessToken": "text",
"expiresIn": "text",
"tokenType": "text"
}Révoquer le jeton
Utilisez ce point de terminaison pour révoquer un jeton d’accès généré précédemment
Revoke token
Paramètres de chemin
regionstring · enumRequisValeurs possibles:
gb | au
Corps
clientIdstringOptionnel
clientSecretstringOptionnel
tokenstringOptionnel
Réponses
200
OK
application/json
stringOptionnel
404
Not Found
application/json
422
Unprocessable Entity
application/json
500
Internal Server Error
application/json
post/{region}/v1/auth/token/revoke
POST /{region}/v1/auth/token/revoke HTTP/1.1
Host: app.aphex.co/
Content-Type: application/json
Accept: */*
Content-Length: 56
{
"clientId": "text",
"clientSecret": "text",
"token": "text"
}textMis à jour
Ce contenu vous a-t-il été utile ?