Create a link to a Ferra page where someone can connect a new channel. The page explains what connecting the account to Ferra means, and the person is sent to the platform to sign in and approve only after they choose to continue. The link works for one hour and the person opening it does not need a Ferra account. Only integrations that connect through a sign-in redirect are supported.
Authorization
Send your API key in the Authorization header. It is under Settings → Developers → Public API in Ferra.
Body
integrationstringrequiredThe integration identifier (e.g. x, linkedin, facebook, instagram, youtube, reddit, etc.)
redirectUrlstringWhere the person is sent once the channel is connected. An http or https URL without a fragment. When omitted, they stay on Ferra.
Request
curl -X POST 'https://tryferra.co/api/public/v1/integrations/connect' \
-H 'Authorization: your-api-key' \
-H 'Content-Type: application/json' \
-d '{
"integration": "linkedin",
"redirectUrl": "https://app.example.com/connected"
}'Responses
201Connect link
{
"url": "https://tryferra.co/integrations/connect/5f0c1e7a9b2d4c68a1f3e5d7c9b0a2e4f6d8c0b1a3e5f7d9c1b3a5e7f9d0c2b4"
}400Integration not allowed, an integration that cannot be connected with a link, or an invalid redirectUrl
402The plan has no channels left
Create a link that lets someone connect a social account to your Ferra workspace. Unlike Connect Channel (OAuth), the link does not go straight to the platform. It opens a Ferra page that tells the person what they are agreeing to, and sends them to the platform only after they choose to continue.
Use it when the person connecting the account is not you: a client, a customer of your own product, or a teammate without a Ferra login.
Example
curl -X POST "https://tryferra.co/api/public/v1/integrations/connect" \
-H "Authorization: your-api-key" \
-H "Content-Type: application/json" \
-d '{"integration": "linkedin", "redirectUrl": "https://app.example.com/connected"}'
{
"url": "https://tryferra.co/integrations/connect/5f0c1e7a9b2d4c68..."
}
Send the person to url. It points at the frontend of the Ferra instance you called. The link works for one hour and can be opened again within that hour, so someone who cancels on the platform can retry. They do not need a Ferra account, and they do not need to be signed in.
What the person sees
- A Ferra page titled "Ferra wants to connect to your LinkedIn", with the name of the platform you asked for. It tells them to continue only if they trust whoever sent the link, that Ferra will be able to schedule and publish posts on the account, and that the account is added to a Ferra workspace and managed from there. When you passed a
redirectUrl, it also names the website they are sent to afterwards. - After they press Continue, the platform's own sign-in and approval screen.
- On platforms where one login manages several pages or channels, a Ferra screen to pick the one to connect. This applies to Facebook, Instagram, LinkedIn Page, YouTube, Google My Business and Tumblr.
Nothing is connected if they close the page before approving on the platform.
Where they land afterwards
With a redirectUrl, the browser is sent there once the channel is connected, with two query parameters added:
| Parameter | Value |
|---|---|
added | The integration identifier, for example linkedin |
msg | A short status text, Channel Updated or Channel Added |
A redirectUrl that already has a query string keeps it. The URL must use http or https and cannot contain a #fragment.
Without a redirectUrl, a person who is signed in to Ferra lands on their calendar. Anyone else sees a confirmation that the channel is connected and that they can close the window.
Warning
The query parameters arrive through the person's browser, so they can be forged. A failed connection does not redirect at all: the person sees the error on Ferra. Confirm the result with List Integrations before treating the account as connected.
Supported platforms
Only integrations that connect through a sign-in redirect can be linked:
x, linkedin, linkedin-page, facebook, instagram, instagram-standalone, threads, youtube, tiktok, tiktok-business, pinterest, reddit, discord, slack, mastodon, gmb, twitch, kick, dribbble, vk, tumblr, whop, mewe
Platforms where the person types in credentials or an instance address, signs with a wallet, or needs the browser extension return 400. Those are Bluesky, Lemmy, Nostr, Medium, Dev.to, Hashnode, WordPress, ListMonk, Telegram, Warpcast, Moltbook and Skool. Connect them from the Ferra app.
An integration that the instance hides from its Add Channel screen is refused as well.
Channel limits
The request returns 402 when the plan has no channels left. The limit is checked a second time when the person presses Continue, so a link created earlier stops working once the workspace is full. The person is told that the workspace has to be upgraded before another channel can be added.