获取会话访问令牌

发布 /auth/session

响应

  • 201 application/json

    已成功创建。

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

    Invalid token

    隐藏响应属性 显示响应属性 对象
    • 错误 字符串

      描述错误的消息。

      值为 invalid refresh token: incorrect token type

    • error_code 字符串

      错误类型。

POST /auth/session
curl \
 --request POST 'https://services.cloud.mongodb.com/api/admin/v3.0/auth/session' \
 --header "Authorization: Bearer $ACCESS_TOKEN"
响应示例 (201)
{
  "access_token": "string"
}
响应示例 (401)
{
  "error": "invalid refresh token: incorrect token type",
  "error_code": "string"
}