Authorization Endpoint
Redirect the user to this endpoint to begin the OAuth flow.
Request
HTTP
GET https://api.sloxly.com/v1/Oauth/authorization
Parameters
| Parameter | Required | Description |
|---|---|---|
client_id | Yes | Your OAuth client ID |
redirect_uri | Yes | Must match one of your registered redirect URIs |
Response
The user will be shown the Sloxly login page. After authentication, they are redirected to your redirect_uri with an authorization code:
Callback URL
https://yoursite.com/callback.php?code=AUTH_CODE_HERE
The authorization code is single-use and expires within 5 minutes.
Example
PHP
$url = "https://api.sloxly.com/v1/Oauth/authorization?" . http_build_query([ 'client_id' => 'slx_your_client_id', 'redirect_uri' => 'https://yoursite.com/callback.php', ]); header("Location: $url"); exit();