# Get what an account may set on a post

What this account may set on a post of this kind right now, as TikTok reports it. GET /accounts/{accountId}/post-options.

`GET https://api.tiktornado.com/api/v1/accounts/{accountId}/post-options`

Scope: `accounts:read`.

What this account may set on a post of this kind right now, as TikTok reports it. Call it before you choose a post's `settings`. TikTok is asked live, so the answer can change from one call to the next. When the account has reached TikTok's daily posting limit, the answer holds TikTok's usual options with `canPostNow: false`.

## Path parameters

- `accountId` string, required: The account, from `GET /accounts`. Matches `^[A-Za-z0-9]{1,64}$`.

## Query parameters

- `kind` string, required: The kind of post. One of `video`, `photo`.

## Examples

```bash
curl 'https://api.tiktornado.com/api/v1/accounts/j971x2c4ajrq0w8sd5e8fxz3a57v2k8m/post-options?kind=video' \
  -H "Authorization: Bearer $TIKTORNADO_API_KEY"
```

```js
const response = await fetch("https://api.tiktornado.com/api/v1/accounts/j971x2c4ajrq0w8sd5e8fxz3a57v2k8m/post-options?kind=video", {
  headers: {
    Authorization: `Bearer ${process.env.TIKTORNADO_API_KEY}`,
  },
});
const data = await response.json();
```

```python
import os

import requests

response = requests.get(
    "https://api.tiktornado.com/api/v1/accounts/j971x2c4ajrq0w8sd5e8fxz3a57v2k8m/post-options",
    headers={
        "Authorization": f"Bearer {os.environ['TIKTORNADO_API_KEY']}",
    },
    params={
        "kind": "video",
    },
)
data = response.json()
```

## Response 200

The account's post options.

- `kind` string, required: `video`: one video. `photo`: 1 to 35 photos. One of `video`, `photo`.
- `privacy` array of strings, required: The `settings.privacy` levels allowed. Videos are always `["everyone"]`. Each: One of `everyone`, `friends`, `followers`, `only_me`.
- `commentsAllowed` boolean, required: `false` when the creator turned comments off in TikTok.
- `duetsAllowed` boolean or null, required: `false` when the creator turned duets off in TikTok. `null` for photos.
- `stitchesAllowed` boolean or null, required: `false` when the creator turned stitches off in TikTok. `null` for photos.
- `maxVideoSeconds` number or null, required: The longest video TikTok takes from this account, in seconds, or `null` when TikTok doesn't say.
- `canPostNow` boolean, required: `false` when TikTok won't take another post from this account right now, for example at its daily posting limit.

A video post:

```json
{
  "kind": "video",
  "privacy": [
    "everyone"
  ],
  "commentsAllowed": true,
  "duetsAllowed": true,
  "stitchesAllowed": false,
  "maxVideoSeconds": 600,
  "canPostNow": true
}
```

A photo post:

```json
{
  "kind": "photo",
  "privacy": [
    "everyone",
    "friends",
    "only_me"
  ],
  "commentsAllowed": true,
  "duetsAllowed": null,
  "stitchesAllowed": null,
  "maxVideoSeconds": null,
  "canPostNow": true
}
```

## Errors

| Status | Reason | Message |
| --- | --- | --- |
| 400 | `invalid_request` | Something here isn't valid. Check it and try again. |
| 400 | `account_not_ready` | This account isn't ready to post yet. Or: This account is under review by TikTok, so new posts can't be scheduled right now. |
| 400 | `invalid_state` | This can't be done right now. Refresh and try again. |
| 400 | `account_reconnecting` | This account is being reconnected. Your post will go out once it's back. |
| 401 | `api_key_invalid` | This API key isn't valid. Check it, or create a new one in the app. |
| 403 | `access_locked` | Your subscription isn't active, so this can't be changed right now. Visit Billing to fix it. |
| 403 | `api_scope_missing` | This API key can't do this. Create a key with the access it needs in the app. |
| 404 | `not_found` | We couldn't find this. |
| 429 | `slow_down` | You're going a bit fast. Wait a moment and try again. |
| 500 | `unknown_error` | Something went wrong on our side. We're on it. |
| 503 | `service_unavailable` | Something went wrong on our side. We're on it. |