Connect
Authorization
Bearer AuthorizationBearer <token>
In: header
Path Parameters
platform*string
OAuth platform to connect
Value in
"twitter" | "instagram" | "facebook" | "linkedin" | "tiktok" | "youtube" | "pinterest" | "reddit" | "threads" | "snapchat" | "googlebusiness"Query Parameters
redirect_url?string
URL to redirect after OAuth completes
Format
uriheadless?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
}
}
}