Aller au contenu
For the complete documentation index, see llms.txt. This page is also available as Markdown.

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

post

Generate token

Paramètres de chemin
regionstring · enumRequis

gb | au

Valeurs possibles:
Corps
clientIdstringOptionnel
clientSecretstringOptionnel
Réponses
200

OK

application/json
accessTokenstringOptionnel
expiresInstringOptionnel
tokenTypestringOptionnel
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

post

Revoke token

Paramètres de chemin
regionstring · enumRequis

gb | au

Valeurs possibles:
Corps
clientIdstringOptionnel
clientSecretstringOptionnel
tokenstringOptionnel
Réponses
200

OK

application/json
stringOptionnel
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"
}
text

Mis à jour

Ce contenu vous a-t-il été utile ?