Créer un lien de connexion
/v1/auth/login-linkVotre 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
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écessairementintegerminimum: 1
Corps de la demande · application/json
object
mailbox_id- Option 1
integerexclusiveMinimum: 0Option 2null localestringValeurs 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écessairementstringexpires_inNécessairementinteger300expires_atNécessairementstringaccount_idNécessairementintegermailbox_idNécessairement- Option 1
integerOption 2null
Les champs inconnus ne sont pas acceptés.
401 Erreur de requête
application/json
object
detail- Option 1
stringOption 2objectcodestringmessagestring
Option 3arrayÉléments du tableauobject
403 Erreur de requête
application/json
object
detail- Option 1
stringOption 2objectcodestringmessagestring
Option 3arrayÉléments du tableauobject
404 Erreur de requête
application/json
object
detail- Option 1
stringOption 2objectcodestringmessagestring
Option 3arrayÉléments du tableauobject
422 Erreur de requête
application/json
object
detail- Option 1
stringOption 2objectcodestringmessagestring
Option 3arrayÉléments du tableauobject
503 Erreur de requête
application/json
object
detail- Option 1
stringOption 2objectcodestringmessagestring
Option 3arrayÉléments du tableauobject