Source: https://developers.tokportal.com/pinned-videos/
Markdown: https://developers.tokportal.com/pinned-videos.md

# Pinned Videos

Choose which videos are pinned to the top of a delivered TikTok profile. You send the list of videos the profile must show as pinned, and the account manager makes the profile match it. A pinned video stays first on the profile grid, above newer posts.

You do not order pins one by one: you send the whole list (0 to 3 videos), and TokPortal works out what changes. The manager has **3 days**. Once the manager confirms, TokPortal reads the public profile and completes the request only when the profile shows exactly your list. No screenshot is involved.

**Cost:** 2 credits per modification of the pinned list. TikTok accounts only.

## Price

A modification is one video pinned or one video unpinned. A replacement (one video out, one video in) counts once:

`modifications = max(videos to pin, videos to unpin)`

| Pinned now | List you send | What the manager does      | Modifications | Credits |
| ---------- | ------------- | -------------------------- | ------------- | ------- |
| nothing    | A             | pins A                     | 1             | 2       |
| nothing    | A, B, C       | pins A, B and C            | 3             | 6       |
| A, B       | A, C          | unpins B, pins C           | 1             | 2       |
| A, B       | A             | unpins B                   | 1             | 2       |
| A, B, C    | (empty)       | unpins A, B and C          | 3             | 6       |
| A, B       | B, A          | nothing: the list is equal | 0             | refused |

"Pinned now" is the list TokPortal last set on the account. The response of every request gives `modifications` and `credits_cost`.

## The List Is the Truth

- The order of the list does not matter. TikTok shows the most recently pinned video first, and the order is not part of the request.
- A TikTok profile shows at most 3 pinned videos, so the list holds at most 3.
- A video pinned by hand on the phone, outside TokPortal, is unpinned by the manager when it is not in your list. This is not charged.

## Set the Pinned Videos

```
PUT /accounts/:id/pinned-videos
```

```bash
curl -X PUT https://app.tokportal.com/api/ext/accounts/{account_id}/pinned-videos \
  -H "X-API-Key: sk_xxx" \
  -H "Content-Type: application/json" \
  -d '{"video_ids": ["{video_id}", "{video_id}"]}'
```

### Prerequisites

- The account is a TikTok account of your workspace
- Every video of the list is a **finalized** TikTok video of this account, with a post link. An [archived](https://developers.tokportal.com/archive-request) video cannot be added to the list
- TokPortal Coverage must be active when the account is subject to Coverage, with the same rules as [account edit requests](https://developers.tokportal.com/account-edit-request)
- The account has an active account manager
- No other pinned videos request is in progress on the account
- The list differs from the current one
- You need at least **2 credits per modification** in your balance

The debit and the creation are atomic: a failed prerequisite never costs credits.

### Request Body

```json
{
  "video_ids": ["uuid", "uuid"]
}
```

| Field       | Type  | Required | Description                                                                                                              |
| ----------- | ----- | -------- | ------------------------------------------------------------------------------------------------------------------------ |
| `video_ids` | array | Yes      | The videos the profile must show as pinned: 0 to 3 videos of this account, in any order. An empty list unpins everything |

The list replaces the current one: a pinned video you leave out is unpinned.

### Response (200)

```json
{
  "data": {
    "id": "uuid",
    "account_id": "uuid",
    "status": "open",
    "modifications": 1,
    "credits_cost": 2,
    "due_at": "2026-11-27T11:28:00Z",
    "verification": null,
    "created_at": "2026-11-24T11:28:00Z",
    "submitted_at": null,
    "completed_at": null,
    "cancelled_at": null,
    "cancel_reason": null,
    "impossible_reason": null,
    "refunded": false,
    "videos": [
      {
        "video_id": "uuid",
        "post_url": "https://www.tiktok.com/@username/video/7570000000000000003",
        "change": "pin"
      },
      {
        "video_id": "uuid",
        "post_url": "https://www.tiktok.com/@username/video/7570000000000000002",
        "change": "unpin"
      },
      {
        "video_id": "uuid",
        "post_url": "https://www.tiktok.com/@username/video/7570000000000000001",
        "change": "keep"
      }
    ]
  },
  "credits_charged": 2,
  "credits_remaining": 150
}
```

`videos[].change` is `pin` (added to the pinned videos), `unpin` (was pinned through TokPortal and leaves the list) or `keep` (already pinned, stays).

Send the `X-TokPortal-Dry-Run: true` header to validate the list and see the price without creating anything or debiting credits. See [Sandbox (dry run)](https://developers.tokportal.com/sandbox).

### Errors

| Code                               | Status | When                                                                                                                                                                                               |
| ---------------------------------- | ------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `VIDEO_PIN_INVALID_VIDEO`          | 400    | A video of the list cannot be pinned on this account. `details.video_id` and `details.reason`: `not_found`, `other_account`, `not_tiktok`, `not_finalized`, `no_post_url`, `archived`, `duplicate` |
| `INSUFFICIENT_CREDITS`             | 402    | Not enough credits                                                                                                                                                                                 |
| `SAVED_ACCOUNT_NOT_OWNED`          | 403    | The account belongs to another workspace                                                                                                                                                           |
| `SAVED_ACCOUNT_NOT_FOUND`          | 404    | Account ID not found                                                                                                                                                                               |
| `VIDEO_PIN_PLATFORM_NOT_SUPPORTED` | 409    | Not a TikTok account                                                                                                                                                                               |
| `MANAGED_ACCOUNT_TASK_BLOCKED`     | 409    | Coverage is inactive or the account is no longer managed                                                                                                                                           |
| `VIDEO_PIN_NO_CM`                  | 409    | No active account manager                                                                                                                                                                          |
| `VIDEO_PIN_ALREADY_OPEN`           | 409    | A request is already in progress on the account: see `details.existing_request_id`. Wait for it, or cancel it and send the new list                                                                |
| `VIDEO_PIN_NO_CHANGE`              | 409    | The account already has exactly these pinned videos                                                                                                                                                |

None of these errors charges credits.

## Get the Pinned Videos of an Account

```
GET /accounts/:id/pinned-videos
```

```bash
curl -X GET https://app.tokportal.com/api/ext/accounts/{account_id}/pinned-videos \
  -H "X-API-Key: sk_xxx"
```

```json
{
  "data": {
    "account_id": "uuid",
    "pinned_videos": [
      {
        "video_id": "uuid",
        "post_url": "https://www.tiktok.com/@username/video/7570000000000000001"
      }
    ],
    "updated_at": "2026-11-24T14:02:00Z",
    "request_in_progress": null
  }
}
```

`pinned_videos` is the list TokPortal last set on the profile (the videos of the latest completed request). A pin made or removed by hand on the phone is not known. `request_in_progress` is the request being done or checked, in the shape above, or `null`.

## Get a Request

```
GET /pinned-video-requests/:id
```

Poll until `status` is `completed` or `cancelled`. An unknown request, or one of another workspace, returns `404 VIDEO_PIN_REQUEST_NOT_FOUND`.

```bash
curl -X GET https://app.tokportal.com/api/ext/pinned-video-requests/{request_id} \
  -H "X-API-Key: sk_xxx"
```

| Field               | Meaning                                                                                                                                                                                                                |
| ------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `status`            | `open` (the manager has to do it, before `due_at`), `checking` (the manager confirmed, TokPortal is reading the profile), `completed`, `cancelled` (refunded, the pinned videos did not change)                        |
| `verification`      | Once completed. `passed`: the profile shows exactly the list. `unverified`: the profile could not be read for 24 hours and TokPortal staff reviews the request. `staff`: a TokPortal staff member confirmed it by hand |
| `cancel_reason`     | `client_cancelled`, `staff_cancelled`, `manager_impossible` (see `impossible_reason`), `account_unavailable` (the account was banned, deleted or revealed). Every cancellation refunds the credits of the request      |
| `impossible_reason` | `video_unavailable` (a video of the list is no longer on the profile), `logged_out`, `verification_required`, `account_banned`, `other`                                                                                |

When the profile does not show the list the manager confirmed, the request goes back from `checking` to `open` and the manager fixes it. The deadline does not restart.

> **NOTE: note**
> The check usually takes 10 to 25 minutes after the manager confirms: TokPortal reads the public profile twice and completes the request when both readings show your list.

## Cancel a Request

```
POST /pinned-video-requests/:id/cancel
```

Cancels a request the manager has not submitted yet and refunds its credits (`credits_refunded` in the response). The pinned videos of the account do not change. No body is required.

```bash
curl -X POST https://app.tokportal.com/api/ext/pinned-video-requests/{request_id}/cancel \
  -H "X-API-Key: sk_xxx"
```

Only a request whose `status` is still `open` can be cancelled. Once the manager has submitted it (`checking` or `completed`), or when it is already `cancelled`, the call returns `409 VIDEO_PIN_NOT_CANCELLABLE`.

## Related

- [Archive Request](https://developers.tokportal.com/archive-request): hide a posted video. An archived video cannot be added to the pinned list.
- [TikTok Appeals](https://developers.tokportal.com/tiktok-appeals) and [Account Edit Request](https://developers.tokportal.com/account-edit-request): the other paid tasks done by the account manager, with the same eligibility rules.
- [Credits](https://developers.tokportal.com/credits): `GET /credit-costs` returns the price per modification as `video_pin`.
- [Errors](https://developers.tokportal.com/errors#pinned-videos-errors): every error code of the API.
