API
Render the PKCE consent page for omazy-cli
GET
/auth/cli/authorize
const url = 'https://mw.omazy.ai/api/v1/auth/cli/authorize?client_id=example&response_type=example&code_challenge=example&code_challenge_method=example&redirect_uri=example&state=example&install_id=example';const options = {method: 'GET', headers: {Authorization: '<Authorization>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://mw.omazy.ai/api/v1/auth/cli/authorize?client_id=example&response_type=example&code_challenge=example&code_challenge_method=example&redirect_uri=example&state=example&install_id=example' \ --header 'Authorization: <Authorization>'Returns the HTML consent page. Caller must be authenticated. PKCE S256 only.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”client_id
required
string
Must be ‘omazy-cli’
response_type
required
string
Must be ‘code’
code_challenge
required
string
Base64url-no-pad SHA256(verifier)
code_challenge_method
required
string
Must be ‘S256’
redirect_uri
required
string
Loopback 127.0.0.1/[::1] only
state
required
string
Anti-CSRF nonce
scope
string
Space-separated scopes
install_id
required
string
Stable per-install identifier
install_name
string
Human-readable label
Responses
Section titled “Responses”HTML consent page
Media typetext/html
string
Missing/invalid parameter
Media typetext/html
string
Unauthorized
Media typetext/html
object
code
string
message
string