Skip to content

Token

POST
/api/v1/oauth/token
curl --request POST \
--url https://example.com/api/v1/oauth/token \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data grant_type=example \
--data code=example \
--data code_verifier=example \
--data redirect_uri=example \
--data client_id=example \
--data client_secret=example \
--data refresh_token=example \
--data device_code=example
Media typeapplication/x-www-form-urlencoded
Body_token_api_v1_oauth_token_post
object
grant_type
required
Grant Type
string
code
Any of:
string
code_verifier
Any of:
string
redirect_uri
Any of:
string
client_id
Any of:
string
client_secret
Any of:
string
refresh_token
Any of:
string
device_code
Any of:
string
Examplegenerated
grant_type=example&code=example&code_verifier=example&redirect_uri=example&client_id=example&client_secret=example&refresh_token=example&device_code=example

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"
}
]
}