REST APIV2 BetaOAuth
Token
OAuth 2.0 token endpoint. Exchanges an authorization code, client credentials, or refresh token for an access token.
Request Body
application/x-www-form-urlencoded
grant_type*string
Value in
"authorization_code" | "client_credentials" | "refresh_token"client_id?|
client_secret?|
code?|
redirect_uri?|
code_verifier?|
org_id?|
user_id?|
refresh_token?|
Response Body
application/json
application/json
curl -X POST "https://api.poggio.io/v2beta/oauth/token" \ -H "Content-Type: application/x-www-form-urlencoded" \ -d 'grant_type=authorization_code'{
"access_token": "string",
"token_type": "string",
"refresh_token": "string",
"expires_in": 0,
"scope": "string"
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string"
}
]
}