Anmeldelink erstellen
/v1/auth/login-linkIhr Server ruft POST /v1/auth/login-link mit X-API-Key und X-Customer-ID auf. Mit mailbox_id wird nur dieses Postfach geöffnet; ohne das Feld das gesamte Konto. locale legt die Sprache der Oberfläche fest.
Berechtigungs- und Zugangsbereiche · Fehler und Wiederholungen
Anfrage
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"}'Optionen
X-Customer-IDheaderUnbedingtintegerminimum: 1
Anforderungstext · application/json
object
mailbox_id- Option 1
integerexclusiveMinimum: 0Option 2null localestringGültige Werte:
"en""ru""fr""es""de""zh-cn""ko""tr""hi""pt-br"Standard:
"en"
Unbekannte Felder werden nicht akzeptiert.
Antworten
201 Erfolgreiche Antwort
application/json
object
login_urlUnbedingtstringexpires_inUnbedingtinteger300expires_atUnbedingtstringaccount_idUnbedingtintegermailbox_idUnbedingt- Option 1
integerOption 2null
Unbekannte Felder werden nicht akzeptiert.
401 Anfragefehler
application/json
object
detail- Option 1
stringOption 2objectcodestringmessagestring
Option 3arrayArray-Elementeobject
403 Anfragefehler
application/json
object
detail- Option 1
stringOption 2objectcodestringmessagestring
Option 3arrayArray-Elementeobject
404 Anfragefehler
application/json
object
detail- Option 1
stringOption 2objectcodestringmessagestring
Option 3arrayArray-Elementeobject
422 Anfragefehler
application/json
object
detail- Option 1
stringOption 2objectcodestringmessagestring
Option 3arrayArray-Elementeobject
503 Anfragefehler
application/json
object
detail- Option 1
stringOption 2objectcodestringmessagestring
Option 3arrayArray-Elementeobject