Connections
Connections represent platform accounts (TikTok, YouTube, Instagram, etc.) linked to a workspace. The connection's id is what you pass as connection_id when creating a post.
Connecting needs the user. Platforms ask the account owner to sign in and approve access in a browser, so the API can't connect an account by itself. Instead, ask for a connect link and show or send it to the user: one click opens ShortSync and starts the platform's sign-in. Connections that need a new sign-in carry a ready-made reconnect_url. Discord can also connect with a pasted webhook URL (see below).
Base path: https://api.shortsync.app/v1
| Endpoint | Method | Path | Scope | Purpose |
|---|---|---|---|---|
| List connections | GET | /connections | connections:read | Paginated list with filters |
| Get a connection | GET | /connections/{connection_id} | connections:read | One connection's current state |
| Create a connect link | POST | /connections/connect-link | connections:read | Link the user opens to connect or reconnect a platform |
| List Pinterest boards | GET | /platforms/pinterest/boards | connections:read | Board IDs for platform_options.pinterest.board_id |
| Connect a Discord channel | POST | /auth/discord/webhook | connections:read | Add a Discord channel to the workspace |
| List Discord channels | GET | /discord/channels | connections:read | Channel IDs for platform_options.discord.channel_ids |
| Update a Discord channel | PATCH | /discord/channels/{channel_id} | connections:read | Rename a channel or change its default flag |
| Remove a Discord channel | DELETE | /discord/channels/{channel_id} | connections:read | Disconnect one channel |
| List Google Business Profile locations | GET | /google-business/locations | connections:read | Location IDs for platform_options.google_business.location_ids |
| Set default locations | PATCH | /google-business/locations | connections:read | Pick which locations posts go to by default |
List connections
/connections·connections:readReturns every connection in the workspace, newest first. Cursor-paginated.
Query parameters
| Field | Type | Description |
|---|---|---|
| platform | Platform[] | Comma-separated. Allowed: instagram, youtube, tiktok, facebook, twitter, threads, bluesky, snapchat, pinterest, linkedin, reddit, telegram, mastodon, discord, tumblr, pixelfed, google_business. |
| status | ConnectionStatus[] | Comma-separated. Values: active, token_expired, refresh_failed, needs_reconnect, rate_limited. |
| cursor | string | Opaque cursor from the previous response. |
| limit | integer | 1-100. Defaults to 25. |
Example request
curl "https://api.shortsync.app/v1/connections?status=active" \
-H "Authorization: Bearer $TOKEN"Example response
{
"data": [
{
"id": "con_tiktok_abc...",
"workspace_id": "bbdeeb40-...",
"platform": "tiktok",
"display_name": "@cookwithhilma",
"status": "active",
"scopes": ["video.publish", "video.upload"],
"connected_at": "2026-04-12T09:21:00Z"
}
],
"pagination": { "next_cursor": null }
}Response fields
| Field | Type | Description |
|---|---|---|
| data[].id | string | Connection UUID. Pass to POST /posts as a target. |
| data[].platform | Platform | Which platform the connection is for. |
| data[].display_name | string | null | Username or page name from the upstream platform, if available. |
| data[].status | ConnectionStatus | Anything other than active or rate_limited means a publish will fail with CONNECTION_INACTIVE on this target until the user reconnects. |
| data[].reconnect_url | string | Only on connections that need the user to sign in again (token_expired, refresh_failed, needs_reconnect). A connect link to show or send to the user. |
| data[].scopes | string[] | OAuth scopes the user granted at connect time. |
| data[].connected_at | string | When the OAuth flow completed. ISO 8601 UTC. |
Get a connection
/connections/{connection_id}·connections:readReturns one connection by ID. Useful for status checks.
Example request
curl https://api.shortsync.app/v1/connections/$CONNECTION_ID \
-H "Authorization: Bearer $TOKEN"Create a connect link
/connections/connect-link·connections:readReturns a link the user opens to connect a platform to the workspace, or to reconnect one. It opens ShortSync, switches to the workspace and starts the platform's sign-in, the same as the Connect button. Afterwards the user lands on the ShortSync dashboard; poll GET /connections to see the new connection.
The link carries no credentials and doesn't expire. It only works in a browser where someone is signed in to ShortSync with access to the workspace (others are asked to sign in), so it's safe to show in your app or send by email.
Body
| Field | Type | Description |
|---|---|---|
| platform | Platform | Required. Same values as the platform filter above. Errors: INVALID_PLATFORM, PLATFORM_UNAVAILABLE. |
Example request
curl -X POST https://api.shortsync.app/v1/connections/connect-link \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{"platform": "tiktok"}'Example response
{
"url": "https://www.shortsync.app/connect/tiktok?workspace_id=bbdeeb40-...&via=api",
"platform": "tiktok",
"action": "reconnect",
"connection": {
"id": "con_tiktok_abc...",
"username": "@cookwithhilma",
"status": "token_expired"
},
"steps": "Open the link in a browser where you're signed in to ShortSync (it asks you to sign in otherwise). When it's done, ShortSync shows the account as connected and you can post to it."
}Response fields
| Field | Type | Description |
|---|---|---|
| url | string | The link to show or send to the user. |
| action | string | connect when the workspace doesn't have this platform yet, reconnect when it does. |
| connection | object | null | The existing connection (id, username, status) on a reconnect. |
| steps | string | What the user will see, in plain words. Bluesky, Mastodon, Pixelfed, Telegram, Discord, Facebook and LinkedIn ask for something first (a handle, a server, a channel, a Page or an author). |
List Pinterest boards
/platforms/pinterest/boards·connections:readLists every board on the workspace's connected Pinterest account. Pass a board's id as platform_options.pinterest.board_id when creating a post. Returns 400 PINTEREST_NOT_CONNECTED when no Pinterest account is connected.
Example request
curl https://api.shortsync.app/v1/platforms/pinterest/boards \
-H "Authorization: Bearer $TOKEN"Example response
{
"data": [
{
"id": "1234567890123456789",
"name": "Recipes",
"description": "Weeknight dinners",
"privacy": "PUBLIC"
}
]
}Connect a Discord channel
/auth/discord/webhook·connections:readAdds a Discord channel by its webhook URL. In Discord, open Server Settings, then Integrations, then Webhooks, pick the channel, and use Copy Webhook URL. ShortSync checks the webhook with Discord and stores it encrypted; the URL is never returned.
This works for every channel type, including forum channels, which the dashboard's "Add a channel with Discord" screen can't list. In a forum channel each post becomes a new forum post titled with platform_options.discord.thread_name (or the caption's first line), and first_comment is its first reply. In text channels first_comment is a separate message right after the post.
A workspace has one Discord connection that can hold several channels. Each new webhook adds a channel under the same connection id; sending a webhook that's already connected refreshes that channel. The first channel is a default channel, later ones aren't until you set is_default.
Body
| Field | Type | Description |
|---|---|---|
| webhook_url | string | Required. A https://discord.com/api/webhooks/… URL. Errors: INVALID_WEBHOOK_URL, WEBHOOK_NOT_FOUND, UNSUPPORTED_WEBHOOK_TYPE, WEBHOOK_LOOKUP_FAILED. |
| label | string | Optional display name for the channel. Defaults to the webhook's name. |
Example request
curl -X POST https://api.shortsync.app/v1/auth/discord/webhook \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{"webhook_url": "https://discord.com/api/webhooks/123.../abc...", "label": "#announcements"}'Example response
The workspace's Discord connection, plus the channel that was added in channel. With several channels, display_name reads "N channels".
{
"id": "4f1c2d3e-...",
"workspace_id": "bbdeeb40-...",
"platform": "discord",
"display_name": "#announcements",
"avatar_url": null,
"status": "active",
"isActive": true,
"scopes": [],
"connected_at": "2026-10-15T09:21:00Z",
"author_type": null,
"channel": {
"id": "9a8b7c6d-...",
"label": "#announcements",
"guild_id": "123456789012345678",
"guild_name": null,
"channel_id": "234567890123456789",
"is_default": true,
"is_forum": false,
"status": "active",
"source": "paste",
"created_at": "2026-10-15T09:21:00Z"
}
}List Discord channels
/discord/channels·connections:readLists the workspace's connected Discord channels, oldest first. Pass channel ids as platform_options.discord.channel_ids when creating a post; without it, the post goes to every channel with is_default: true. Forum channels (is_forum: true) need a platform_options.discord.thread_name, which falls back to the caption's first line. Webhook URLs are never returned.
Example request
curl https://api.shortsync.app/v1/discord/channels \
-H "Authorization: Bearer $TOKEN"Example response
{
"data": [
{
"id": "9a8b7c6d-...",
"label": "#announcements",
"guild_id": "123456789012345678",
"guild_name": "Cooking club",
"channel_id": "234567890123456789",
"is_default": true,
"is_forum": false,
"status": "active",
"source": "oauth",
"created_at": "2026-10-15T09:21:00Z"
}
]
}Response fields
| Field | Type | Description |
|---|---|---|
| data[].id | string | Channel UUID. Use in channel_ids. |
| data[].is_default | boolean | Posts without channel_ids go to every default channel. |
| data[].is_forum | boolean | Forum channel. Learned on the first publish to it; each post becomes a forum post titled by thread_name. |
| data[].status | string | active or needs_reconnect (Discord no longer accepts the webhook; add the channel again). |
| data[].source | string | paste (webhook URL) or oauth (Discord sign-in in the app). |
Update a Discord channel
/discord/channels/{channel_id}·connections:readRenames a channel or changes whether it's a default target. Returns the updated channel. Unknown ids return 404 CHANNEL_NOT_FOUND.
Body
| Field | Type | Description |
|---|---|---|
| label | string | New display name, 1 to 100 characters. |
| is_default | boolean | Pre-select this channel for posts without channel_ids. |
Example request
curl -X PATCH https://api.shortsync.app/v1/discord/channels/$CHANNEL_ID \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{"is_default": true}'Remove a Discord channel
/discord/channels/{channel_id}·connections:readRemoves the channel from ShortSync and returns 204 No Content. The webhook stays in your Discord server; delete it there to revoke it. Removing the last channel deactivates the workspace's Discord connection.
Example request
curl -X DELETE https://api.shortsync.app/v1/discord/channels/$CHANNEL_ID \
-H "Authorization: Bearer $TOKEN"List Google Business Profile locations
/google-business/locations·connections:readGoogle Business Profile is in beta. One Google login can manage several business locations, and the workspace's connection keeps all of them. This lists them. Pass location ids as platform_options.google_business.location_ids when creating a post; without it, the post goes to every location with is_default: true. A post is published on each selected location.
Returns an empty list when Google Business Profile isn't connected. Connect it from the ShortSync app (Google sign-in).
Example request
curl https://api.shortsync.app/v1/google-business/locations \
-H "Authorization: Bearer $TOKEN"Example response
{
"data": [
{
"id": "1234567890123456789",
"account_id": "9876543210987654321",
"account_name": "Hilma's Kitchen",
"title": "Hilma's Kitchen Helsinki",
"address": "Mannerheimintie 1, 00100 Helsinki",
"maps_url": "https://maps.google.com/maps?cid=...",
"can_post": true,
"is_default": true
}
]
}Response fields
| Field | Type | Description |
|---|---|---|
| data[].id | string | Location ID. Use in location_ids. |
| data[].title | string | Business name on the profile. |
| data[].address | string | null | One-line address. Null for service-area businesses without one. |
| data[].can_post | boolean | False when Google doesn't let this login post to the location yet (unverified, suspended or pending). |
| data[].is_default | boolean | Posts without location_ids go to every default location. |
Set default locations
/google-business/locations·connections:readReplaces which locations posts go to when they don't set location_ids. Returns every location with the updated is_default. Unknown ids return 400 GOOGLE_BUSINESS_LOCATION_NOT_FOUND; no connection returns 404 GOOGLE_BUSINESS_NOT_CONNECTED.
Body
| Field | Type | Description |
|---|---|---|
| default_location_ids | string[] | Required. Location IDs from the list endpoint. Locations left out stop being defaults. |
Example request
curl -X PATCH https://api.shortsync.app/v1/google-business/locations \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{"default_location_ids": ["1234567890123456789"]}'