发布 /auth/token/next

将刷新令牌交换为新的 JWT 令牌对。

text/plain

body 必需

刷新令牌请求

对象 对象

响应

  • 200 application/json

    正常

    隐藏响应属性 显示响应属性 对象
    • access_token 字符串
    • refresh_token 字符串
    • token_type 字符串
  • 400 application/json

    Bad Request

    允许使用其他属性。

  • 401 application/json

    Unauthorized

    允许使用其他属性。

POST /auth/token/next
curl \
 --request POST 'https://agentengine.mongodb.com/auth/token/next' \
 --header "Authorization: $API_KEY" \
 --header "Content-Type: text/plain"
响应示例 (200)
{
  "access_token": "string",
  "refresh_token": "string",
  "token_type": "string"
}
响应示例 (400)
{}
响应示例 (401)
{}