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

← REST API reference

Get posting options for an account

Live posting options for one account, straight from TikTok or Instagram: its name, who a post can be shown to (TikTok audiences), whether comments, Duet and Stitch can be on, the longest video, and whether it can post right now. Scheduling to a TikTok account needs these options, and the audience is the person's choice.

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

Parameters

accountId
pathrequired
uuid

The account's id.

Example request

curl "https://yapfactory.com/api/v1/posts/accounts/8f14e45f-ceea-4e7a-9b1d-2c3b4a5d6e7f" \
  -H "Authorization: Bearer $YAP_API_KEY"

Response

200 with the result in data: the same object the MCP tool returns.

{
  "data": {
    "id": "0cc175b9-c0f1-46a8-b1c3-99e2697726ae",
    "platform": "tiktok",
    "account": "@sleepwell",
    "nickname": "Sleepwell",
    "avatarUrl": null,
    "privacyOptions": [
      "PUBLIC_TO_EVERYONE",
      "MUTUAL_FOLLOW_FRIENDS",
      "SELF_ONLY"
    ],
    "commentDisabled": false,
    "duetDisabled": false,
    "stitchDisabled": false,
    "maxDurationS": 600,
    "canPost": true,
    "audiences": [
      "PUBLIC_TO_EVERYONE",
      "MUTUAL_FOLLOW_FRIENDS",
      "SELF_ONLY"
    ],
    "say": "Ask the person who should see it; don't choose for them."
  }
}

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).
not_found404No such account, or it isn't yours.
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.