Skip to main content
POST
Create a link to connect a social account
Returns the platform’s sign-in link, the same link Copy link makes in the app. Whoever opens it signs in to the platform, and the account appears in List accounts. The link works for one hour.

Shared or not

  • Shared (the default): anyone who opens the link can connect an account, with no Unsora login. Use it to send the link to a client. It ends on a public “Connected” page.
  • "shared": false: for you. It ends on your accounts page in the app.

Reconnecting

When an account’s sign-in expires, pass its id as reconnect_account_id with the same platform. Reconnecting refreshes the account and doesn’t use a new slot on your plan.

Platforms

youtube, tiktok, instagram, instagram_facebook (an Instagram business account through its Facebook Page), facebook, threads, bluesky, pinterest, linkedin, x, google_business. Bluesky signs in from the account’s handle, so it needs handle (for example alice.bsky.social) and its link is for you only.

Errors

Authorizations

Authorization
string
header
required

An Unsora API key (uns_…). A Clerk session token also works.

Body

application/json
platform
enum<string>
required

Platform to connect. instagram_facebook connects an Instagram business account through the Facebook Page it is linked to. google is accepted for YouTube.

Available options:
youtube,
tiktok,
instagram,
instagram_facebook,
facebook,
threads,
bluesky,
pinterest,
linkedin,
x,
google_business
shared
boolean
default:true

true: anyone who opens the link can connect an account, with no Unsora login. false: for you, ending on your signed-in accounts page.

reconnect_account_id
string

An account id from GET /accounts whose sign-in expired. Reconnecting the same platform account refreshes it and takes no new slot.

handle
string

Bluesky only: the account's handle, e.g. alice.bsky.social.

Response

Connect link

success
boolean
Example:

true

data
object