Skip to main content
GET
/
oauth
/
authorize
Authorize
curl --request GET \
  --url https://app.aisync.link/oauth/authorize
{
  "error": "<string>",
  "error_description": "<string>",
  "message": "<string>"
}

Authorize

Start the OAuth authorization flow by redirecting users to the authorization endpoint. Users will grant permission to your application and be redirected back with an authorization code.
client_id
string
required
Your OAuth client ID obtained from the dashboard
redirect_uri
string
required
The redirect URI registered with your OAuth client. Must exactly match the registered URI.
response_type
string
required
Must be set to code for authorization code flow
scope
string
required
The scope of access requested. Use * for full access.
curl --location --globoff 'https://app.aisync.link/oauth/authorize?client_id={{client_id}}&redirect_uri={{redirect_uri}}&response_type=code&scope=*'
After the user authorizes your application, they will be redirected to your redirect_uri with an authorization code:
{{redirect_uri}}?code={{authorization_code}}
The authorization code is single-use and expires quickly. Exchange it for an access token immediately.

Query Parameters

client_id
string
required

Your OAuth client ID obtained from the dashboard

redirect_uri
string<uri>
required

The redirect URI registered with your OAuth client. Must exactly match the registered URI.

response_type
enum<string>
default:code
required

Must be set to 'code' for authorization code flow

Available options:
code
scope
string
default:*
required

The scope of access requested. Use '*' for full access.

Response

Redirect to redirect_uri with authorization code