Integrations

Connect Channel (OAuth)

GEThttps://tryferra.co/api/public/v1/social/{integration}

Generate an OAuth authorization URL for a given integration. Use this to connect a new social media channel. Only OAuth-based integrations are supported (integrations that require an external URL, such as Mastodon, are not available via this endpoint).

Authorization

Send your API key in the Authorization header. It is under Settings → Developers → Public API in Ferra.

Parameters

integrationstringrequired

path · The integration identifier (e.g. x, linkedin, facebook, instagram, youtube, tiktok, reddit, etc.)

refreshstring

query · Pass an existing integration ID to refresh its OAuth token instead of creating a new connection

Request

curl -X GET 'https://tryferra.co/api/public/v1/social/{integration}' \
  -H 'Authorization: your-api-key'

Responses

200OAuth authorization URL
{
  "url": "https://twitter.com/i/oauth2/authorize?response_type=code&client_id=..."
}
400Integration not allowed or requires an external URL

The returned URL is the platform's own authorization page, so it suits connecting an account you are signed in to yourself. To hand the step to someone else, use Connect Channel (Link), which first shows them a Ferra page explaining what they are connecting.

Parts of these docs are adapted from open-source documentation under the MIT License (© 2023 Mintlify).