API

Authorize

The client authorization step, which answers with a redirect carrying an authorization code.

Operations

Every route this entity exposes. Each route links to its own reference on this page.

Method Route SDK operation Returns
GET /v1/auth/authorize load

Examples

One example per SDK, generated from the API model. The argument names are the parameters and fields of this entity, and the values are placeholders. The examples are not compiled or executed.

Golang

Construct client as shown in the Golang setup, then call the operations:

authorize, err := client.Authorize(nil).Load(map[string]any{"client_id": "example", "response_type": "example"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(authorize)

Lua

Construct client as shown in the Lua setup, then call the operations:

local authorize, err = client:Authorize():load({ client_id = "example", response_type = "example" })

PHP

Construct client as shown in the PHP setup, then call the operations:

$authorize = $client->Authorize()->load(["client_id" => "example", "response_type" => "example"]);

Python

Construct client as shown in the Python setup, then call the operations:

authorize = client.Authorize().load({"client_id": "example", "response_type": "example"})

Ruby

Construct client as shown in the Ruby setup, then call the operations:

authorize = client.Authorize.load({ "client_id" => "example", "response_type" => "example" })

TypeScript

Construct client as shown in the TypeScript setup, then call the operations:

const authorize = await client.Authorize().load({ client_id: "example", response_type: "example" })

Fields

Field Type Required Description

load

GET /v1/auth/authorize

Operation ID: GET/v1/auth/authorize.

Authentication: not required.

Parameters

Parameter In Type Required Description
response_type query string Yes
state query string No
scope query string No
client_id query string Yes
redirect_uri query string No

Responses

302: 302 response
400: Bad Request

application/json

Property Type Required Description
error string Yes 400 Bad Request is the status code that indicates the server cannot or will not process the request due to something that is perceived to be a client error
401: Unauthorized

application/json

Property Type Required Description
error string Yes 401 Unauthorized is the status code to return when the client provides no credentials or invalid credentials.
403: Forbidden

application/json

Property Type Required Description
error string Yes 403 Forbidden is the status code to return when a client has valid credentials but not enough privileges to perform an action on a resource.
429: Too Many Requests

application/json

Property Type Required Description
error string Yes 429 Too Many Requests is the status code that indicates the client application has surpassed its rate limit, or number of requests they can send in a given period of time