Launch offer: service fee 10% 4% until 31 Dec, just enough to cover card processing. See pricing

← REST API reference

List accounts you can post to

The brand's own TikTok and Instagram accounts connected to Yap Factory that can take a scheduled post now, with what each allows (post directly, or send to TikTok drafts). Connect accounts on yapfactory.com under Accounts.

View as Markdown
GEThttps://yapfactory.com/api/v1/posts/accounts
Who can use itBrands
Tierread: Reads. Changes nothing.
Scopeposts:read, or read
Idempotency-KeyNot used
Rate limitReads: 120 a minute
MCP toollist_post_accounts

Parameters

limit
queryoptional
integer

How many to return. 1 to 50. Default 20.

cursor
queryoptional
string

The nextCursor from the previous page. Leave out for the first page.

Example request

curl "https://yapfactory.com/api/v1/posts/accounts" \
  -H "Authorization: Bearer $YAP_API_KEY"

Response

200 with a list. Each item in data is what the MCP tool returns in accounts, and meta carries the summary fields. Pass nextCursor back as cursor until hasMore is false. How paging works.

{
  "data": [
    {
      "id": "0cc175b9-c0f1-46a8-b1c3-99e2697726ae",
      "platform": "tiktok",
      "account": "@sleepwell",
      "canPostDirectly": true,
      "canSendToDrafts": true
    }
  ],
  "nextCursor": null,
  "hasMore": false,
  "meta": {
    "connect": "https://yapfactory.com/brand/accounts"
  }
}

An example: fields that don't apply are null, and new fields can be added at any time, so ignore ones you don't know. Every response carries Request-Id and the RateLimit-* headers.

Errors

CodeStatusWhen
invalid_request400A field failed validation (see meta.issues), or an unknown query parameter.
unauthorized401No token, or it's wrong, expired, revoked or from the other environment.
insufficient_scope403The token doesn't have posts:read (or read).
forbidden403Only for brands, or the account can't do this yet (email not confirmed, paused).
rate_limited429Over the limit. Wait for Retry-After seconds.
internal500Our fault. Retry later, and send us the requestId if it keeps happening.

Every error has the same shape. See Errors for what to do about each one.