Skip to main content
GET
/
api
/
auth
/
oauth
/
{provider}
Initiate OAuth flow (PKCE)
curl --request GET \
  --url https://api.example.com/api/auth/oauth/{provider}
{
  "authUrl": "<string>"
}

Path Parameters

provider
enum<string>
required
Available options:
google,
github,
discord,
linkedin,
facebook,
instagram,
tiktok,
apple,
x,
spotify,
microsoft

Query Parameters

redirect_uri
string<uri>
required

URL to redirect after authentication (receives insforge_code parameter)

code_challenge
string

PKCE code challenge for mobile/desktop clients. Generate using: Base64URL(SHA256(code_verifier)) Required for secure token exchange in native apps.

Response

OAuth authorization URL

authUrl
string<uri>

URL to redirect user for OAuth provider login