Zum Inhalt springen
Deutsch

Anmeldelink erstellen

POST/v1/auth/login-link

Ihr 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

Terminal-Fenster
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-IDheaderUnbedingt

integer

minimum: 1

Anforderungstext · application/json

object

mailbox_id
Option 1

integer

exclusiveMinimum: 0

Option 2

null

locale

string

Gü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_urlUnbedingt

string

expires_inUnbedingt

integer

300

expires_atUnbedingt

string

account_idUnbedingt

integer

mailbox_idUnbedingt
Option 1

integer

Option 2

null

Unbekannte Felder werden nicht akzeptiert.

401 Anfragefehler

application/json

object

detail
Option 1

string

Option 2

object

code

string

message

string

Option 3

array

Array-Elemente

object

403 Anfragefehler

application/json

object

detail
Option 1

string

Option 2

object

code

string

message

string

Option 3

array

Array-Elemente

object

404 Anfragefehler

application/json

object

detail
Option 1

string

Option 2

object

code

string

message

string

Option 3

array

Array-Elemente

object

422 Anfragefehler

application/json

object

detail
Option 1

string

Option 2

object

code

string

message

string

Option 3

array

Array-Elemente

object

503 Anfragefehler

application/json

object

detail
Option 1

string

Option 2

object

code

string

message

string

Option 3

array

Array-Elemente

object