Skip to Content
Cut.ProDocs
Posting: connected accounts

Get the link to connect an account

A link that opens the sign-in of that network and connects the account to this workspace. The person who opens it needs no cut.pro account, so you can hand it to your own clients: create one workspace per client (POST /workspaces) and ask for the link with that workspace's X-Workspace-Id.

When the person finishes, the browser goes to return_url with status (connected or error), platform, connection_ids (comma separated, more than one when a Facebook login grants several Pages), code on errors and your state untouched. Without return_url they land on cut.pro.

A link works once and expires in 24 hours. Pass connection_id to reconnect an account whose access was revoked, keeping its id and scheduled posts.

Authorization

apiKey
headerX-Api-Key<token>

Request Body

  1. body
platform*string
Default"youtube"
Value in"youtube""tiktok""instagram""bluesky""threads""linkedin""pinterest""facebook""twitch""kick""discord"
return_url?string

Where the person is sent when done. https, or http on localhost while you test.

Formaturi
Lengthlength <= 2048
state?string

Anything you need back on return_url, such as your own client id. Returned as state.

Lengthlength <= 512
connection_id?string

Reconnect this connection instead of adding a new account.

Lengthlength <= 24

Response Body

Response for status 200

application/json
  1. response
url*string
expires_at*string
POST
/connections/link
Example Request
curl -X POST 'https://api.cut.pro/api/v1/connections/link' \  -H 'Content-Type: application/json' \  -d '{  "platform": "youtube"}'
Example Response
{  "url": "string",  "expires_at": "string"}