POST
/oauth/tokenOAuth Token EndpointOAuth 2.1 token endpoint (RFC 6749 §4.1.3, §6). Exchanges an authorization code with PKCE or a refresh token for an access/refresh token pair
Request body
application/x-www-form-urlencoded
object
client_idstringcodestringcode_verifierstringgrant_typestringredirect_uristringrefresh_tokenstring{
"client_id": "string",
"code": "string",
"code_verifier": "string",
"grant_type": "string",
"redirect_uri": "string",
"refresh_token": ""
}Responses
objectTokenResponse
access_tokenstringexpires_ininteger · int64refresh_tokenstringtoken_typestringworkspace_idstringworkspace_namestring{
"access_token": "",
"expires_in": 0,
"refresh_token": "",
"token_type": "string",
"workspace_id": "string",
"workspace_name": "string"
}objectOAuthError
errorstringerror_descriptionstring{
"error": "string",
"error_description": "string"
}