Start OAuth flow
Returns an auth_url to redirect the user for OAuth authorization.
Authorization
Bearer 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
Format
urimethod?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.