Skip to main content
POST
Exchange an external app authorization code for a Base39 app token

Authorizations

Authorization
string
header
required

OAuth2 Authorization Code flow

Body

application/json
grant_type
string
required
Example:

"authorization_code"

code
string
required
redirect_uri
string
required
code_verifier
string
required

Response

200 - application/json
access_token
string
required
Example:

"bsk_secret.bsk_12345678901234567890.secret"

token_type
string
required
Example:

"Bearer"

api_key_id
string
required
Example:

"bsk_abc123"

email
string
required
Example:

"user@base39.com.br"

org_id
string
required
Example:

"o_abc123"

org_slug
string
required
Example:

"base39"