Skip to main content
POST
/
oauth
/
authorize
Authorize a client (OAuth 2.1 + PKCE)
curl --request POST \
  --url https://api.izap.ai/oauth/authorize \
  --header 'Content-Type: application/x-www-form-urlencoded' \
  --data response_type=code \
  --data 'client_id=<string>' \
  --data 'redirect_uri=<string>' \
  --data 'code_challenge=<string>' \
  --data code_challenge_method=S256 \
  --data 'state=<string>' \
  --data 'scope=<string>'
{
  "redirect_uri": "https://client.example.com/callback?code=abc123&state=xyz"
}

Body

application/x-www-form-urlencoded
response_type
enum<string>
required
Available options:
code
client_id
string
required
redirect_uri
string<uri>
required
code_challenge
string
required
code_challenge_method
enum<string>
required
Available options:
S256
state
string
scope
string

Response

Redirect (or consent page) issued.

The response is of type object.