Docs

Connecting accounts

Your users connect their networks from your app, under your brand. They never share credentials and you never store tokens.

The flow

  1. Your server calls GET /v1/connect/{platform} with the profileId and your app’s redirectUrl.
  2. You redirect the user to the returned url. They authorize the network with their account.
  3. Crier sends them back to your redirectUrl with the outcome in the query.
GET /v1/connect/linkedin
curl "https://api.usecrier.com/v1/connect/linkedin?profileId=prf_8f2k4d&redirectUrl=https%3A%2F%2Fapp.acme.com%2Fconnected" \
  -H "Authorization: Bearer $CRIER_API_KEY"

What reaches your redirectUrl

OutcomeParameters
Connectedconnected=<platform>, accountId=acc_… and, when the network gives one, username
Needs a pickselect=<sessionId> and platform. See the next step.
Errorerror=<code>, platform, error_message and is_user_fixable (true when the user can try again)

Picking a page, organization or board

Some networks connect something specific inside the user’s account. They come back with select and your app shows the list to pick from:

NetworkWhat is picked
FacebookThe page
LinkedInTheir personal profile or an organization they manage
PinterestThe default board
Google BusinessThe location
SnapchatThe public profile

List the options

GET /v1/connect/sessions/cs_5t2y8u/options
curl "https://api.usecrier.com/v1/connect/sessions/cs_5t2y8u/options" \
  -H "Authorization: Bearer $CRIER_API_KEY"
200 OK
{
  "data": {
    "platform": "facebook",
    "options": [
      { "id": "1042…", "name": "Acme Store", "detail": "@acmestore" },
      { "id": "2210…", "name": "Acme Outlet", "detail": "Clothing store" }
    ]
  }
}

Send the pick

POST /v1/connect/sessions/cs_5t2y8u/select
curl -X POST "https://api.usecrier.com/v1/connect/sessions/cs_5t2y8u/select" \
  -H "Authorization: Bearer $CRIER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "optionId": "1042…"
  }'

It returns the connected account (201). Sessions expire after one hour.

Available networks

instagram, facebook, tiktok, youtube, linkedin, x, threads, bluesky, pinterest, reddit, google-business, telegram, discord and snapchat.

Listing and watching accounts

GET /v1/accounts
curl "https://api.usecrier.com/v1/accounts?profileId=prf_8f2k4d" \
  -H "Authorization: Bearer $CRIER_API_KEY"

Each account has a status: active, needs_reconnection (the token expired or the user removed permissions) or disconnected. To check right now whether they can post, use GET /v1/accounts/health. If an account needs reconnecting, run the flow again with the same network and profile.

🚧 Not ready yet

We're finishing building it

Crier is in early access. Leave your email and you'll be among the first in, with launch terms.

or with your email

No spam. We'll only write to give you access.

You're on the list!

We'll write to you as soon as your access is ready.