Create a sign-in link
/v1/auth/login-linkYour server calls POST /v1/auth/login-link with X-API-Key and X-Customer-ID. Set mailbox_id to open only that mailbox; omit it to open the entire account. locale selects the interface language.
Authentication and access · Errors and retries
Request
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"}'Parameters
X-Customer-IDheaderNecessarilyintegerminimum: 1
Request body · application/json
object
mailbox_id- Option 1
integerexclusiveMinimum: 0Option 2null localestringValid values:
"en""ru""fr""es""de""zh-cn""ko""tr""hi""pt-br"Default:
"en"
Unknown fields are not accepted.
Responses
201 Successful response
application/json
object
login_urlNecessarilystringexpires_inNecessarilyinteger300expires_atNecessarilystringaccount_idNecessarilyintegermailbox_idNecessarily- Option 1
integerOption 2null
Unknown fields are not accepted.
401 Request error
application/json
object
detail- Option 1
stringOption 2objectcodestringmessagestring
Option 3arrayArray elementsobject
403 Request error
application/json
object
detail- Option 1
stringOption 2objectcodestringmessagestring
Option 3arrayArray elementsobject
404 Request error
application/json
object
detail- Option 1
stringOption 2objectcodestringmessagestring
Option 3arrayArray elementsobject
422 Request error
application/json
object
detail- Option 1
stringOption 2objectcodestringmessagestring
Option 3arrayArray elementsobject
503 Request error
application/json
object
detail- Option 1
stringOption 2objectcodestringmessagestring
Option 3arrayArray elementsobject