# 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.

```http
GET https://yapfactory.com/api/v1/posts/accounts/{accountId}
```

|   |   |
| --- | --- |
| Who can use it | Brands |
| Tier | `read`: Reads. Changes nothing. |
| Scope | `posts:read`, or `read` |
| Idempotency-Key | Not used |
| Rate limit | Reads: 120 a minute |
| MCP tool | [`get_post_account`](https://yapfactory.com/developers/tools.md#get_post_account) |

## Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `accountId` | path | `uuid` | yes | The account's id. |

## Example request

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

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

| Code | Status | When |
| --- | --- | --- |
| `invalid_request` | 400 | A field failed validation (see `meta.issues`), or an unknown query parameter. |
| `unauthorized` | 401 | No token, or it's wrong, expired, revoked or from the other environment. |
| `insufficient_scope` | 403 | The token doesn't have `posts:read` (or `read`). |
| `forbidden` | 403 | Only for brands, or the account can't do this yet (email not confirmed, paused). |
| `not_found` | 404 | No such account, or it isn't yours. |
| `rate_limited` | 429 | Over the limit. Wait for `Retry-After` seconds. |
| `internal` | 500 | Our fault. Retry later, and send us the `requestId` if it keeps happening. |

Every error has the same shape. See [Errors](https://yapfactory.com/developers/errors.md) for what to do about each one.

---

HTML version: https://yapfactory.com/developers/api/get_post_account
