POST
/
auth
/
v1
/
initiate
/
oauth
curl --request POST \
  --url https://auth.otpless.app/auth/v1/initiate/oauth \
  --header 'Content-Type: application/json' \
  --header 'clientId: <api-key>' \
  --header 'clientSecret: <api-key>' \
  --data '{
  "channel": "WHATSAPP",
  "redirectURI": "your://redirecturi"
}'
{
  "requestId": "unique_request_id",
  "link": "https://otpless.me/e3r3"
}

This API is accessible exclusively to users subscribed to the OTPless Pro plan. Ensure you have an active OTPless Pro Plan subscription to utilize this feature.

Authorizations

clientId
string
header
required
clientSecret
string
header
required

Body

application/json
channel
enum<string>
required

The channel for which the OAuth request link will be created.

Available options:
WHATSAPP,
TWITTER,
GOOGLE,
APPLE,
LINKEDIN,
MICROSOFT,
FACEBOOK,
INSTAGRAM,
LINE,
SLACK,
DROPBOX,
GITHUB,
BITBUCKET,
ATLASSIAN,
LINEAR,
GITLAB,
TIKTOK,
TWITCH,
TELEGRAM,
HUBSPOT,
NOTION,
BOX,
XERO
Example:

"WHATSAPP"

redirectURI
string
required

The URI to which the user will be redirected after authentication.

Example:

"your://redirecturi"

Response

200
application/json
OAuth link generated successfully.
requestId
string

The unique identifier for the OAuth request.

Example:

"unique_request_id"

The OAuth link generated for authentication.

Example:

"https://otpless.me/e3r3"