Aller au contenu
Français

Créer un lien de connexion

POST/v1/auth/login-link

Votre serveur appelle POST /v1/auth/login-link avec X-API-Key et X-Customer-ID. Indiquez mailbox_id pour ouvrir uniquement cette boîte ; sans ce champ, tout le compte sera accessible. locale choisit la langue de l’interface.

Zones d’autorisation et d’accès · Erreurs et répétitions

Demande

Fenêtre de terminal
curl -X POST 'https://adapt-mail.com/v1/auth/login-link' \
-H 'X-API-Key: <mail-api-key>' \
-H 'X-Customer-ID: <mail-account-id>' \
-H 'Content-Type: application/json' \
--data '{"mailbox_id":1,"locale":"en"}'

Possibilités

X-Customer-IDheaderNécessairement

integer

minimum: 1

Corps de la demande · application/json

object

mailbox_id
Option 1

integer

exclusiveMinimum: 0

Option 2

null

locale

string

Valeurs valides: "en" "ru" "fr" "es" "de" "zh-cn" "ko" "tr" "hi" "pt-br"

Défaut: "en"

Les champs inconnus ne sont pas acceptés.

Réponses

201 Réponse réussie

application/json

object

login_urlNécessairement

string

expires_inNécessairement

integer

300

expires_atNécessairement

string

account_idNécessairement

integer

mailbox_idNécessairement
Option 1

integer

Option 2

null

Les champs inconnus ne sont pas acceptés.

401 Erreur de requête

application/json

object

detail
Option 1

string

Option 2

object

code

string

message

string

Option 3

array

Éléments du tableau

object

403 Erreur de requête

application/json

object

detail
Option 1

string

Option 2

object

code

string

message

string

Option 3

array

Éléments du tableau

object

404 Erreur de requête

application/json

object

detail
Option 1

string

Option 2

object

code

string

message

string

Option 3

array

Éléments du tableau

object

422 Erreur de requête

application/json

object

detail
Option 1

string

Option 2

object

code

string

message

string

Option 3

array

Éléments du tableau

object

503 Erreur de requête

application/json

object

detail
Option 1

string

Option 2

object

code

string

message

string

Option 3

array

Éléments du tableau

object