Melden Sie sich im Browser an
/v1/auth/loginDie Route gilt für adapt-mail.com und erfordert Origin: https://adapt-mail.com.. Gibt HttpOnly cookies und nicht klassifiziertes session_id. zurück. Für Ihren Kunden verwenden Sie /v1/auth/token.
Berechtigungs- und Zugangsbereiche · Fehler und Wiederholungen
Anfrage
curl -X POST 'https://adapt-mail.com/v1/auth/login' \ -H 'Origin: https://adapt-mail.com' \ -c cookies.txt \ -H 'Content-Type: application/json' \ --data '{"login":"user-123","password":"<password>"}'Anforderungstext · application/json
object
loginUnbedingtstringpasswordUnbedingtstringminLength: 1maxLength: 128modestringGültige Werte:
"account""mailbox"Standard:
"account"
Unbekannte Felder werden nicht akzeptiert.
Antworten
200 Erfolgreiche Antwort
application/json
object
mailbox_id- Option 1
integerOption 2null session_idstring · uuid
401 Anmeldung erforderlich
application/json
object
detail- Option 1
stringOption 2objectcodestringmessagestring
Option 3arrayArray-Elementeobject
403 Kein Zugriff
application/json
object
detail- Option 1
stringOption 2objectcodestringmessagestring
Option 3arrayArray-Elementeobject
404 Ressource nicht gefunden
application/json
object
detail- Option 1
stringOption 2objectcodestringmessagestring
Option 3arrayArray-Elementeobject
409 Staatskonflikt
application/json
object
detail- Option 1
stringOption 2objectcodestringmessagestring
Option 3arrayArray-Elementeobject
422 Validierungsfehler
application/json
object
detailarrayArray-ElementeobjectlocUnbedingtarrayArray-ElementeOption 1stringOption 2integermsgUnbedingtstringtypeUnbedingtstring
429 Zu viele Anfragen
application/json
object
detail- Option 1
stringOption 2objectcodestringmessagestring
Option 3arrayArray-Elementeobject
503 Vorübergehende Nichtverfügbarkeit
application/json
object
detail- Option 1
stringOption 2objectcodestringmessagestring
Option 3arrayArray-Elementeobject