Boost a TikTok post
/boost promotes a post that is already on TikTok. One call creates the campaign, the ad group and the ad (a Spark Ad: the ad is the post itself, with its likes and comments).
You need the TikTok account that published the post linked to your ad account in TikTok Ads Manager. Then it takes three calls:
- Find the TikTok account:
GET /identities - Pick the post:
GET /spark/posts?identity_id=... - Promote it:
POST /boost
1. Find the TikTok account
GET /api/uploadposts/ads/tiktok/identities
Lists the TikTok accounts the ad account can advertise as. Use the identity_id of the one that published the post (for a linked TikTok account, identity_type is TT_USER and the id is a UUID).
| Name | In | Description |
|---|---|---|
identity_type | query | Only this kind: TT_USER, BC_AUTH_TT, AUTH_CODE or CUSTOMIZED_USER. |
page, page_size | query | Paging (page_size up to 100, default 20). |
curl https://api.upload-post.com/api/uploadposts/ads/tiktok/identities \
-H 'Authorization: Apikey your-api-key-here'
{
"success": true,
"identities": [
{
"identity_id": "5f39abca-0000-4000-8000-000000000001",
"identity_type": "TT_USER",
"display_name": "acme",
"can_pull_video": true,
"can_push_video": true
}
],
"page_info": { "page": 1, "page_size": 20, "total_number": 1, "total_page": 1 }
}
2. Pick the post
GET /api/uploadposts/ads/tiktok/spark/posts?identity_id=...
Lists the posts of that TikTok account, newest first, 20 per page. Use item_id as post_id.
| Name | In | Description |
|---|---|---|
identity_id | query | From step 1. |
identity_type | query | TT_USER (default). |
item_type | query | VIDEO (default) or CAROUSEL (photo posts). |
count | query | Posts per page, 1-20 (default 20). |
cursor | query | The cursor of the previous page, while has_more is true. |
exclude_adsonly | query | true: only organic posts (TikTok returns at most the 500 most recent). |
curl -G https://api.upload-post.com/api/uploadposts/ads/tiktok/spark/posts \
-H 'Authorization: Apikey your-api-key-here' \
--data-urlencode 'identity_id=5f39abca-0000-4000-8000-000000000001'
{
"success": true,
"posts": [
{
"item_id": "7311111111111111111",
"item_type": "VIDEO",
"text": "Our new summer collection #acme",
"status": "ENABLE",
"identity_id": "5f39abca-0000-4000-8000-000000000001",
"identity_type": "TT_USER",
"poster_url": "https://p16-sign.tiktokcdn.com/...",
"duration": 21.5
}
],
"has_more": true,
"cursor": "1732700000000"
}
3. Promote it
POST /api/uploadposts/ads/tiktok/boost
Body (JSON)
| Name | Type | Required | Description |
|---|---|---|---|
identity_id | String | Yes | The TikTok account (step 1). |
post_id | String | Yes | The post's item_id (step 2). |
goal | String | Yes | reach, video_views, traffic or followers. See Goals. |
budget | Object | Yes | {"amount": 20, "type": "daily"}. type: daily (default) or lifetime (needs schedule.end_date). In the ad account currency. |
targeting | Object | Yes | Who sees it. countries is required, see Targeting. |
schedule | Object | No | start_date and end_date (YYYY-MM-DD, UTC, or ISO 8601). Default: from now, no end. |
landing_page_url | String | No | Website the ad links to. Required for traffic. |
call_to_action | String | No | Button text, e.g. LEARN_MORE, SHOP_NOW, SIGN_UP. Only with landing_page_url; default LEARN_MORE when there is one. |
name | String | No | Name of the three objects (up to 512 characters). |
status | String | No | paused (default) or active. |
pause_all_levels | Boolean | No | true: the ad group and the ad are also created paused. See below. |
frequency, frequency_schedule | Integer | No | reach only: at most frequency impressions per person every frequency_schedule days. Default 3 every 7. |
idempotency_key | String | No | A retry with the same key within 10 minutes answers 409 instead of creating a second campaign. |
identity_type | String | No | TT_USER (default). |
profile_username / advertiser_id | String | No | Which ad account. See Choosing the ad account. |
Targeting
| Field | Description |
|---|---|
countries | ISO codes, e.g. ["ES", "MX"]. Check which ones TikTok delivers your goal to with GET /locations. |
age_min, age_max | Age range from 13. Without it: 18 and over. Or age_groups (AGE_18_24, AGE_25_34, ...). |
gender | male, female or all (default). |
interest_category_ids | From GET /interests. |
languages | Language codes. |
audience_ids, excluded_audience_ids | Your custom or lookalike audiences. |
Example
curl -X POST https://api.upload-post.com/api/uploadposts/ads/tiktok/boost \
-H 'Authorization: Apikey your-api-key-here' \
-H 'Content-Type: application/json' \
-d '{
"profile_username": "my-profile",
"identity_id": "5f39abca-0000-4000-8000-000000000001",
"post_id": "7311111111111111111",
"goal": "reach",
"budget": {"amount": 20, "type": "daily"},
"targeting": {"countries": ["ES"], "age_min": 18, "age_max": 44},
"schedule": {"end_date": "2026-12-15"},
"pause_all_levels": true,
"idempotency_key": "boost-summer-001"
}'
Response (201 Created)
{
"success": true,
"message": "Spark Ad created (campaign, ad group and ad paused).",
"status": "paused",
"pause_all_levels": true,
"campaign_id": "1800000000000000001",
"adgroup_id": "1800000000000000002",
"ad_id": "1800000000000000003",
"objective_type": "REACH",
"post": { "item_id": "7311111111111111111", "item_type": "VIDEO", "tiktok_name": null, "auth_end_time": null }
}
What is paused, and how to start it
By default (status: "paused") only the campaign is created paused; the ad group and the ad are created active. Resuming the campaign starts delivery right away.
| You send | Campaign | Ad group | Ad | To start it |
|---|---|---|---|---|
nothing (status: "paused") | paused | active | active | Resume the campaign |
pause_all_levels: true | paused | paused | paused | Resume the ad, the ad group and the campaign |
status: "active" | active | active | active | Already running (after TikTok approves the ad) |
pause_all_levels cannot be combined with status: "active".
Resume with POST /campaigns/{id}/resume (and the ad group and ad ones when you used pause_all_levels).
If a step fails
The campaign is always created first and paused, so a half-built boost never spends. If a later step fails, the error lists in details.created what already exists:
{
"success": false,
"code": "tiktok_ads_error",
"message": "Budget is too low.",
"details": {
"code": "tiktok_ads_error",
"tiktok_code": 40002,
"created": { "campaign_id": "1800000000000000001" }
}
}
Fix the cause and boost again, and delete the leftover campaign with POST /campaigns/{id}/delete.
Good to know
- The ad's text is the post's caption. It cannot be edited from Upload-Post.
- Budget: the boost's budget lives in its ad group. The campaign has no limit, so change the budget on the ad group, not on the campaign.
- Minimum: TikTok refuses ad groups under about 20 EUR a day (or the same in your currency).
Promote with an authorization code
TikTok also lets a creator authorize a single post for ads: in the TikTok app, post → Ad settings → Ad authorization, which gives a code valid 7 to 365 days. Send it as post_auth_code instead of identity_id + post_id. Posts already authorized this way are listed by GET /spark/posts without identity_id (paged with page and page_size).
Next: Reports, or build it by hand in Campaigns, ad groups and ads.