跳转到内容
简体中文

创建登录链接

POST/v1/auth/login-link

您的服务器使用 X-API-Key 和 X-Customer-ID 调用 POST /v1/auth/login-link。设置 mailbox_id 可仅打开该邮箱;省略此字段则打开整个账户。locale 用于选择界面语言。

授权和访问区域 · 错误和重复

要求

终端窗口
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"}'

选项

X-Customer-IDheader一定

integer

minimum: 1

请求正文 · application/json

object

mailbox_id
选项 1

integer

exclusiveMinimum: 0

选项 2

null

locale

string

有效值: "en" "ru" "fr" "es" "de" "zh-cn" "ko" "tr" "hi" "pt-br"

默认: "en"

不接受未知字段。

响应

201 成功回复

application/json

object

login_url一定

string

expires_in一定

integer

300

expires_at一定

string

account_id一定

integer

mailbox_id一定
选项 1

integer

选项 2

null

不接受未知字段。

401 请求错误

application/json

object

detail
选项 1

string

选项 2

object

code

string

message

string

选项 3

array

数组元素

object

403 请求错误

application/json

object

detail
选项 1

string

选项 2

object

code

string

message

string

选项 3

array

数组元素

object

404 请求错误

application/json

object

detail
选项 1

string

选项 2

object

code

string

message

string

选项 3

array

数组元素

object

422 请求错误

application/json

object

detail
选项 1

string

选项 2

object

code

string

message

string

选项 3

array

数组元素

object

503 请求错误

application/json

object

detail
选项 1

string

选项 2

object

code

string

message

string

选项 3

array

数组元素

object