创建登录链接
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一定integerminimum: 1
请求正文 · application/json
object
mailbox_id- 选项 1
integerexclusiveMinimum: 0选项 2null localestring有效值:
"en""ru""fr""es""de""zh-cn""ko""tr""hi""pt-br"默认:
"en"
不接受未知字段。
响应
201 成功回复
application/json
object
login_url一定stringexpires_in一定integer300expires_at一定stringaccount_id一定integermailbox_id一定- 选项 1
integer选项 2null
不接受未知字段。
401 请求错误
application/json
object
detail- 选项 1
string选项 2objectcodestringmessagestring
选项 3array数组元素object
403 请求错误
application/json
object
detail- 选项 1
string选项 2objectcodestringmessagestring
选项 3array数组元素object
404 请求错误
application/json
object
detail- 选项 1
string选项 2objectcodestringmessagestring
选项 3array数组元素object
422 请求错误
application/json
object
detail- 选项 1
string选项 2objectcodestringmessagestring
选项 3array数组元素object
503 请求错误
application/json
object
detail- 选项 1
string选项 2objectcodestringmessagestring
选项 3array数组元素object