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

EndpointMethodPathScopePurpose
List connectionsGET/connectionsconnections:readPaginated list with filters
Get a connectionGET/connections/{connection_id}connections:readOne connection's current state
Create a connect linkPOST/connections/connect-linkconnections:readLink the user opens to connect or reconnect a platform
List Pinterest boardsGET/platforms/pinterest/boardsconnections:readBoard IDs for platform_options.pinterest.board_id
Connect a Discord channelPOST/auth/discord/webhookconnections:readAdd a Discord channel to the workspace
List Discord channelsGET/discord/channelsconnections:readChannel IDs for platform_options.discord.channel_ids
Update a Discord channelPATCH/discord/channels/{channel_id}connections:readRename a channel or change its default flag
Remove a Discord channelDELETE/discord/channels/{channel_id}connections:readDisconnect one channel
List Google Business Profile locationsGET/google-business/locationsconnections:readLocation IDs for platform_options.google_business.location_ids
Set default locationsPATCH/google-business/locationsconnections:readPick which locations posts go to by default

List connections

GET/connections·connections:read

Returns every connection in the workspace, newest first. Cursor-paginated.

Query parameters

FieldTypeDescription
platformPlatform[]Comma-separated. Allowed: instagram, youtube, tiktok, facebook, twitter, threads, bluesky, snapchat, pinterest, linkedin, reddit, telegram, mastodon, discord, tumblr, pixelfed, google_business.
statusConnectionStatus[]Comma-separated. Values: active, token_expired, refresh_failed, needs_reconnect, rate_limited.
cursorstringOpaque cursor from the previous response.
limitinteger1-100. Defaults to 25.

Example request

bash
curl "https://api.shortsync.app/v1/connections?status=active" \
  -H "Authorization: Bearer $TOKEN"

Example response

json
{
  "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

FieldTypeDescription
data[].idstringConnection UUID. Pass to POST /posts as a target.
data[].platformPlatformWhich platform the connection is for.
data[].display_namestring | nullUsername or page name from the upstream platform, if available.
data[].statusConnectionStatusAnything other than active or rate_limited means a publish will fail with CONNECTION_INACTIVE on this target until the user reconnects.
data[].reconnect_urlstringOnly 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[].scopesstring[]OAuth scopes the user granted at connect time.
data[].connected_atstringWhen the OAuth flow completed. ISO 8601 UTC.

Get a connection

GET/connections/{connection_id}·connections:read

Returns one connection by ID. Useful for status checks.

Example request

bash
curl https://api.shortsync.app/v1/connections/$CONNECTION_ID \
  -H "Authorization: Bearer $TOKEN"

List Pinterest boards

GET/platforms/pinterest/boards·connections:read

Lists 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

bash
curl https://api.shortsync.app/v1/platforms/pinterest/boards \
  -H "Authorization: Bearer $TOKEN"

Example response

json
{
  "data": [
    {
      "id": "1234567890123456789",
      "name": "Recipes",
      "description": "Weeknight dinners",
      "privacy": "PUBLIC"
    }
  ]
}

Connect a Discord channel

POST/auth/discord/webhook·connections:read

Adds 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

FieldTypeDescription
webhook_urlstringRequired. A https://discord.com/api/webhooks/… URL. Errors: INVALID_WEBHOOK_URL, WEBHOOK_NOT_FOUND, UNSUPPORTED_WEBHOOK_TYPE, WEBHOOK_LOOKUP_FAILED.
labelstringOptional display name for the channel. Defaults to the webhook's name.

Example request

bash
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".

json
{
  "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

GET/discord/channels·connections:read

Lists 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

bash
curl https://api.shortsync.app/v1/discord/channels \
  -H "Authorization: Bearer $TOKEN"

Example response

json
{
  "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

FieldTypeDescription
data[].idstringChannel UUID. Use in channel_ids.
data[].is_defaultbooleanPosts without channel_ids go to every default channel.
data[].is_forumbooleanForum channel. Learned on the first publish to it; each post becomes a forum post titled by thread_name.
data[].statusstringactive or needs_reconnect (Discord no longer accepts the webhook; add the channel again).
data[].sourcestringpaste (webhook URL) or oauth (Discord sign-in in the app).

Update a Discord channel

PATCH/discord/channels/{channel_id}·connections:read

Renames a channel or changes whether it's a default target. Returns the updated channel. Unknown ids return 404 CHANNEL_NOT_FOUND.

Body

FieldTypeDescription
labelstringNew display name, 1 to 100 characters.
is_defaultbooleanPre-select this channel for posts without channel_ids.

Example request

bash
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

DELETE/discord/channels/{channel_id}·connections:read

Removes 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

bash
curl -X DELETE https://api.shortsync.app/v1/discord/channels/$CHANNEL_ID \
  -H "Authorization: Bearer $TOKEN"

List Google Business Profile locations

GET/google-business/locations·connections:read

Google 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

bash
curl https://api.shortsync.app/v1/google-business/locations \
  -H "Authorization: Bearer $TOKEN"

Example response

json
{
  "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

FieldTypeDescription
data[].idstringLocation ID. Use in location_ids.
data[].titlestringBusiness name on the profile.
data[].addressstring | nullOne-line address. Null for service-area businesses without one.
data[].can_postbooleanFalse when Google doesn't let this login post to the location yet (unverified, suspended or pending).
data[].is_defaultbooleanPosts without location_ids go to every default location.

Set default locations

PATCH/google-business/locations·connections:read

Replaces 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

FieldTypeDescription
default_location_idsstring[]Required. Location IDs from the list endpoint. Locations left out stop being defaults.

Example request

bash
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"]}'