SPA에서 처리하는 콜백에서 권한 부여 코드를 교환하고 (또는 권한 부여 서버에서 보고한 오류를 기록하고) 앱 내 내비게이션 대상을 반환합니다.
게시 /api/v1/oauth/콜백
curl \
--request POST 'https://agentengine.mongodb.com/api/v1/oauth/callback' \
--header "Authorization: $API_KEY" \
--header "Content-Type: application/json"
요청 예시
객체-1
{}
{
"code": "string",
"error": "string",
"error_description": "string",
"state": "string"
}
응답 예시(406)
작업을 사용할 수 없습니다.
{
"detail": "This operation is not available in API version 2026-09-20-preview.",
"error": 406,
"errorCode": "OPERATION_NOT_IN_API_VERSION",
"parameters": [
"Accept"
],
"reason": "Not Acceptable"
}
{
"detail": "This operation supports text/event-stream, which the Accept header excludes. Remove unsupported media-type parameters or accept this type with a positive q value.",
"error": 406,
"errorCode": "UNACCEPTABLE_MEDIA_TYPE",
"parameters": [
"Accept"
],
"reason": "Not Acceptable"
}
{
"detail": "The requested API version is not supported. Supported versions: 2026-09-20-preview.",
"error": 406,
"errorCode": "UNSUPPORTED_API_VERSION",
"parameters": [
"Accept"
],
"reason": "Not Acceptable"
}
응답 예시(406)
{
"detail": "This operation is not available in API version 2026-09-20-preview.",
"error": 406,
"errorCode": "OPERATION_NOT_IN_API_VERSION",
"parameters": [
"Accept"
],
"reason": "Not Acceptable"
}
응답 예시(200)
{
"next": "string"
}
응답 예시(200)
{
"next": "string"
}
응답 예시(400)
{
"code": "string",
"error": "string",
"success": true
}
응답 예시(400)
{
"code": "string",
"error": "string",
"success": true
}
응답 예시(401)
{
"code": "string",
"error": "string",
"success": true
}
응답 예시(401)
{
"code": "string",
"error": "string",
"success": true
}
응답 예시(403)
{
"code": "string",
"error": "string",
"success": true
}
응답 예시(403)
{
"code": "string",
"error": "string",
"success": true
}
응답 예시(503)
{
"code": "string",
"error": "string",
"success": true
}
응답 예시(503)
{
"code": "string",
"error": "string",
"success": true
}