Skip to main content
POST
/
v1
/
oauth
/
authorize
/
grant
Approve an OAuth authorization request
curl --request POST \
  --url https://api.leanrails.com/v1/oauth/authorize/grant \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "client_id": "<string>",
  "scopes": [
    "<string>"
  ],
  "redirect_uri": "<string>",
  "state": "<string>"
}
'
{
  "redirect_url": "<string>",
  "code": "<string>"
}

Documentation Index

Fetch the complete documentation index at: https://docs.fluveo.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Use your secret API key as the username with an empty password.

Headers

X-API-Version
string

Override the API version for this request.

Body

application/json
client_id
string
required

The app's OAuth client ID.

scopes
string[]
required

Scopes to grant.

Minimum array length: 1
redirect_uri
string<uri>
required

Redirect URI registered for the app.

state
string

Opaque state parameter to pass through.

Response

Authorization grant response.

redirect_url
string<uri>
required

The URL to redirect the merchant to.

code
string
required

The authorization code.