メインコンテンツへスキップ
POST
https://{host}/me/v1
/
connected-accounts
/
complete
C#
using Auth0Auth0;
using System.Threading.Tasks;

namespace Usage;

public class Example
{
    public async Task Do() {
        var client = new Auth0Auth0Client(
            token: "<token>"
        );

        await client.ConnectedAccounts.CompleteAsync(
            new CompleteConnectedAccountsRequestContent {
                AuthSession = "auth_session",
                ConnectCode = "connect_code",
                RedirectUri = "redirect_uri"
            }
        );
    }

}
{
  "id": "<string>",
  "connection": "<string>",
  "access_type": "offline",
  "created_at": "2023-11-07T05:31:56Z",
  "scopes": [
    "<string>"
  ],
  "expires_at": "2023-11-07T05:31:56Z"
}

承認

Authorization
string
header
必須

Bearer and DPoP tokens are supported depending on the API configuration

ボディ

application/json
auth_session
string
必須

The authentication session identifier

Maximum string length: 64
connect_code
string
必須

The authorization code returned from the connect flow

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

The redirect URI used in the original request

Maximum string length: 2048
code_verifier
string

The PKCE code verifier

Required string length: 43 - 128

レスポンス

Connected account request completed successfully

id
string
必須

The unique identifier of the connected account

connection
string
必須

The connection name

access_type
enum<string>
必須

The access type, always 'offline'

利用可能なオプション:
offline
created_at
string<date-time>
必須

ISO date string of when the connected account was created

scopes
string[]

Array of scopes granted

expires_at
string<date-time>

ISO date string of when the refresh token expires (optional)