RelayAPI

Start OAuth flow

Returns an auth_url to redirect the user for OAuth authorization.

GET
/v1/connect/{platform}
AuthorizationBearer <token>

API key (rlay_live_* or rlay_test_*)

In: header

Path Parameters

platform*string

OAuth platform to connect

Value in"twitter" | "instagram" | "facebook" | "linkedin" | "tiktok" | "youtube" | "pinterest" | "reddit" | "threads" | "snapchat" | "googlebusiness" | "mastodon"

Query Parameters

redirect_url?string

URL to redirect after OAuth completes

Formaturi
method?string

Auth method variant (e.g. "direct" for Instagram Login instead of Facebook Login)

headless?string

Set to "true" for headless mode (returns data instead of redirecting)

Response Body

application/json

application/json

curl -X GET "https://api.relayapi.dev/v1/connect/twitter"
{
  "auth_url": "http://example.com"
}
{
  "error": {
    "code": "string",
    "message": "string",
    "details": {
      "property1": null,
      "property2": null
    }
  }
}

Found something wrong? Help us improve this page.

Submit an Issue
Requires a GitHub account.View repo