Skip to main content
POST
/
oauth
/
authorize
Approve OAuth authorization
curl --request POST \
  --url https://api.peel.sh/oauth/authorize \
  --header 'Content-Type: application/json' \
  --header 'Key: <api-key>' \
  --data '
{
  "client_id": "<string>",
  "code_challenge": "<string>",
  "redirect_uri": "<string>",
  "code_challenge_method": "S256",
  "csrf_token": "<string>",
  "scope": "<string>",
  "state": "<string>"
}
'
{
  "error": "<string>"
}

Authorizations

Key
string
header
required

Body

application/json
client_id
string
required
code_challenge
string
required
redirect_uri
string<uri>
required
code_challenge_method
string
default:S256
csrf_token
string
scope
string
state
string

Response

Redirects back to the client with an authorization code.