Skip to content

Token

POST
/oauth/token
curl --request POST \
--url https://example.com/oauth/token \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data client_id= \
--data code= \
--data code_verifier= \
--data grant_type= \
--data redirect_uri= \
--data refresh_token= \
--data resource=
Media typeapplication/x-www-form-urlencoded
Body_token_oauth_token_post
object
client_id
Client Id
string
""
code
Code
string
""
code_verifier
Code Verifier
string
""
grant_type
Grant Type
string
""
redirect_uri
Redirect Uri
string
""
refresh_token
Refresh Token
string
""
resource
Resource
string
""

Successful Response

Media typeapplication/json
Examplegenerated
example

Validation Error

Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
Examplegenerated
{
"detail": [
{
"loc": [
"example"
],
"msg": "example",
"type": "example"
}
]
}