メインコンテンツへスキップ
POST
https://{host}/me/v1
/
connected-accounts
/
complete
接続済みアカウントリクエストを完了
curl --request POST \
  --url https://{host}/me/v1/connected-accounts/complete \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "auth_session": "<string>",
  "connect_code": "<string>",
  "redirect_uri": "<string>",
  "code_verifier": "<string>"
}
'
{
  "connection": "<string>",
  "created_at": "2023-11-07T05:31:56Z",
  "id": "<string>",
  "expires_at": "2023-11-07T05:31:56Z",
  "scopes": [
    "<string>"
  ]
}

承認

Authorization
string
header
必須

Bearer トークンと DPoP トークンは、API の設定に応じてサポートされます

ボディ

application/json
auth_session
string
必須

認証セッション識別子

Maximum string length: 64
connect_code
string
必須

connect フローから返される認可コード

Required string length: 1 - 46
redirect_uri
string<uri>
必須

元のリクエストで使用されたリダイレクトURI

Maximum string length: 2048
code_verifier
string

PKCE の code verifier

Required string length: 43 - 128

レスポンス

接続済みアカウントリクエストが正常に完了しました

access_type
enum<string>
必須

アクセス種別。常に 'offline'。

利用可能なオプション:
offline
connection
string
必須

接続名

created_at
string<date-time>
必須

接続済みアカウントが作成された日時を示す ISO 日付文字列

id
string
必須

接続済みアカウントの一意の識別子

expires_at
string<date-time>

リフレッシュトークンの有効期限が切れる日時を示す ISO 日付文字列(省略可能)

scopes
string[]

付与されたスコープの配列