v1

latestOpenAPI 3.0.12026-07-227292131.4 KB
oauth

Exchange authorization code for access token

Exchanges an authorization code for an access token.

post/oauth/token

Request body

provider'github' required

The OAuth provider name.

  • "github": GitHub OAuth.
codestring required

The OAuth authorization code received from the OAuth callback.

Example request

{
  "provider": "github",
  "code": "abc123def456"
}

Response

Successfully exchanged authorization code for access token.

accessTokenstring required

The OAuth access token that can be used to access the provider's API.

Example response

{
  "accessToken": "ya29.a0AfH6SMB..."
}