Manage Scheduled Posts
Schedule your uploads in advance and keep full control over them with our job management endpoints. This page covers how to list, inspect, edit and cancel scheduled jobs created via the scheduled_date parameter.
List Scheduled Posts
| Endpoint | GET /api/uploadposts/schedule |
| Authentication | Required. Either an Apikey (Authorization: Apikey <token>) or a white-label profile JWT (Authorization: Bearer <profile_jwt>). |
| Query Params | All optional — see below. |
Query Parameters
| Param | Type | Description |
|---|---|---|
profile_username | string | Return only the jobs of this profile. |
from | string | ISO-8601 lower bound on scheduled_date, inclusive. |
to | string | ISO-8601 upper bound on scheduled_date, exclusive. |
limit | integer | Page size. Omit to return every matching job. |
offset | integer | Number of jobs to skip, ordered by scheduled_date ascending. Defaults to 0. |
Malformed from / to / limit / offset values are ignored rather than rejected.
When you authenticate with a profile JWT, results are restricted to that profile and the profile_username parameter is ignored. You cannot widen the scope past the profile the token was issued for.
curl "https://api.upload-post.com/api/uploadposts/schedule?profile_username=my_profile&from=2024-12-01T00:00:00Z&to=2025-01-01T00:00:00Z&limit=20" \
-H "Authorization: Apikey YOUR_API_KEY"
Success Response 200 OK
Returns an object containing the page of jobs plus its pagination metadata:
{
"scheduled_posts": [
{
"job_id": "a1b2c3d4e5f67890a1b2c3d4e5f67890",
"scheduled_date": "2024-12-25T10:30:00Z",
"post_type": "video",
"profile_username": "my_upload_post_profile",
"title": "Merry Christmas!",
"external_id": "clip-4821",
"source_filename": "christmas_cut_v3.mp4",
"platforms": ["tiktok", "instagram"],
"platform_content": {
"tiktok": { "title": "Merry Christmas!", "caption": "" },
"instagram": { "title": "Merry Christmas!", "caption": "Happy holidays" }
},
"has_preview": true,
"preview_url": null
}
],
"total": 42,
"limit": 20,
"offset": 0
}
| Field | Type | Description |
|---|---|---|
scheduled_posts | array | The requested page of scheduled-job objects. |
total | integer | Total number of jobs matching your filters, ignoring limit/offset. Use it to build a pager. |
limit | integer | null | The limit that was applied; null when you didn't send one. |
offset | integer | The offset that was applied. |
Each element of scheduled_posts contains:
| Field | Type | Description |
|---|---|---|
job_id | string | Unique identifier of the scheduled job. Required to edit or cancel it. |
scheduled_date | string | ISO-8601 date/time when the post will go live. Time is in UTC. |
post_type | string | One of video, photo, text, or unknown. |
profile_username | string | Upload-Post profile that will publish the content. |
title | string | Text shown in a calendar. For single-platform jobs this is the text that platform will actually publish. |
external_id | string | null | Your own identifier for this post, echoed back exactly as you sent it. See Correlating posts with your own system. |
source_filename | string | null | Original file name of the uploaded media, when the job was created from a file or a URL. null for text posts. |
caption / description | string | Generic caption and description stored with the job. |
platforms | array | Platforms the job will publish to. |
platform_content | object | Per-platform title / caption, falling back to the generic values. |
fields | object | The editable per-platform and global fields stored with the job (for example facebook_place_id or location_id), as accepted by the PATCH endpoint. On video and photo posts it also includes first_comment and {platform}_first_comment when they are set. Options that were not sent are left out. |
has_cover | boolean | Whether a cover image is stored for the job. |
cover_preview_url | string | null | Pre-stored cover URL, when one exists. |
has_preview | boolean | Whether a previewable video/photo asset exists for the job. |
preview_url | null | Always null — media URLs are signed on demand, see below. |
thumbnail_url | string | null | Signed URL of a small JPEG thumbnail of the post's video or first image, valid for a few hours. Re-list to get a fresh one. |
thumbnail_on_demand | boolean | true when thumbnail_url is null but one can be fetched with GET /api/uploadposts/schedule/<job_id>/thumbnail (posts scheduled before thumbnails were stored, or beyond the first 300 thumbnails of one response). |
original_timezone | string | null | Timezone the job was originally scheduled in. |
original_scheduled_str | string | null | The original scheduled datetime string as submitted. |
Correlating posts with your own system
If you schedule from your own catalogue, you likely need to map a scheduled job back to the row it came from — to detect what you have already queued, or to show status next to your own records.
Do not match on title. It is editable, both through the PATCH endpoint and
in the dashboard calendar, so a post that gets retitled stops matching and looks
like it was never scheduled.
Send your own identifier as external_id when you create the post, and read it
back here:
curl -X POST https://api.upload-post.com/api/upload \
-H "Authorization: ApiKey YOUR_API_KEY" \
-F "user=my_profile" \
-F "platform[]=tiktok" \
-F "title=Merry Christmas!" \
-F "scheduled_date=2024-12-25T10:30:00Z" \
-F "external_id=clip-4821" \
-F "video=@christmas_cut_v3.mp4"
external_id accepts any string up to 255 characters. It can also be sent as an
X-External-Id header, which is handy when you cannot easily add form fields.
It is available on /api/upload, /api/upload_photos and /api/upload_text,
for both immediate and scheduled posts, and it is returned by
Upload Status and Upload History as
well as this endpoint.
external_id is a label, not a duplicate guard. Upload-Post stores and returns it but never enforces anything with it — reusing one does not block a publish, so a genuine repost still goes out. To collapse an accidental double-send, use an Idempotency-Key header (24 hours). The two are independent.
Signing one preview URL per job timed out large schedules, so preview_url is not populated here. When has_preview is true, fetch that job with GET /api/uploadposts/schedule/<job_id>/preview.
Error Responses
| Status | Reason |
|---|---|
401 Unauthorized | Missing or invalid token. |
Get a Scheduled Post
Everything needed to reopen one scheduled post in an editor: the options it was scheduled with, as PATCH accepts them, plus signed media URLs.
| Endpoint | GET /api/uploadposts/schedule/<job_id> |
| Authentication | Required. Same as the list endpoint. |
| URL Param | job_id — ID obtained from the list endpoint. |
Success Response 200 OK
{
"success": true,
"job_id": "a1b2c3d4e5f67890a1b2c3d4e5f67890",
"post_type": "video",
"profile_username": "my-brand",
"platforms": ["tiktok", "instagram", "youtube"],
"scheduled_date": "2025-10-05T10:30:00+00:00",
"original_timezone": "Europe/Madrid",
"form": {
"title": "My video",
"youtube_title": "My video | Full tutorial",
"privacy_level": "PUBLIC_TO_EVERYONE",
"is_aigc": "true",
"cover_timestamp": "4200",
"thumb_offset": "3500"
},
"media_urls": ["https://…signed…/video.mp4"],
"thumbnail_url": "https://…signed…/thumb.jpg",
"cover_preview_url": null,
"kept_files": ["thumbnail_gcs_path"],
"editable": true,
"not_editable_reason": null
}
| Field | Description |
|---|---|
form | The stored upload options, limited to the keys PATCH can change (see Editable fields). Values are stored as the upload endpoints received them: booleans as "true"/"false". |
media_urls | Signed URLs of the stored video, or of the photos (up to 20). The media itself cannot be replaced by an edit. |
kept_files | Files attached at schedule time (custom thumbnail, Reels cover, first comment media). An edit keeps them as they are. |
editable / not_editable_reason | Whether PATCH will still accept changes. See Posts that are publishing. |
Errors: 401 invalid token, 404 the job does not exist or is not yours.
Get a Scheduled Post's Thumbnail
| Endpoint | GET /api/uploadposts/schedule/<job_id>/thumbnail |
| Authentication | Required. Same as the list endpoint. |
Returns { "job_id": "…", "thumbnail_url": "https://…" }. A post that has no stored thumbnail yet gets one built from its media the first time it is asked for, and it is kept with the post; thumbnail_url is null when the post has no image to show. Call it only for the posts you are displaying: the list already includes the thumbnail of most posts.
| Status | Meaning |
|---|---|
200 OK | thumbnail_url set, or null when there is nothing to show. |
202 Accepted | Another request is building it right now. Retry after retry_after seconds. |
429 Too Many Requests | Too many thumbnails being built at once. Retry after retry_after seconds. |
404 Not Found | The job does not exist or is not yours. |
Cancel a Scheduled Post
| Endpoint | DELETE /api/uploadposts/schedule/<job_id> |
| Authentication | Required. Either an Apikey (Authorization: Apikey <token>) or a white-label profile JWT (Authorization: Bearer <profile_jwt>). When authenticated with a profile JWT, the job must belong to that profile and the profile must have readonly_calendar: false. |
| URL Param | job_id — ID obtained from the list endpoint. |
Success Response 200 OK
{
"success": true,
"message": "Job <job_id> cancelled and assets deleted.",
"credits_refunded": 2
}
Scheduling reserves one monthly upload credit per platform at the moment the job is created. Cancelling a job that has not started yet returns those credits to your allowance; credits_refunded tells you how many (0 for a job that was already publishing, and always 0 on unlimited plans, which reserve nothing).
Error Responses
| Status | Body | Condition |
|---|---|---|
401 Unauthorized | Invalid or missing token. | |
404 Not Found | { "success": false, "error": "Job not found" } | The supplied job_id does not exist or doesn't belong to the authenticated user. |
500 Internal Server Error | Unexpected failure while cancelling the job or deleting its assets. |
Edit a Scheduled Post
| Endpoint | PATCH /api/uploadposts/schedule/<job_id> |
| Authentication | Required. Either an Apikey (Authorization: Apikey <token>) or a white-label profile JWT (Authorization: Bearer <profile_jwt>). When authenticated with a profile JWT, the job must belong to that profile and the profile must have readonly_calendar: false. |
| URL Param | job_id — ID obtained from the list endpoint. |
| Body | JSON object with one or more of the fields below. |
| Field | Type | Required | Description |
|---|---|---|---|
scheduled_date | string | No | ISO-8601 date/time, e.g., "2025-10-05T10:30:00Z". Must be in the future and within 1 year. Interpreted as UTC unless timezone is provided. |
timezone | string | No | IANA timezone identifier (e.g., "Europe/Madrid", "America/New_York"). If provided, scheduled_date is interpreted in this timezone. Defaults to UTC if omitted. See IANA Time Zone Database. |
title | string | No | New post title/caption, applied to every platform of the post. |
caption | string | No | New caption/description, applied to every platform of the post. |
platform_content | object | No | Per-platform text, e.g. {"youtube": {"title": "…"}, "tiktok": {"caption": "…"}}. Only the platforms listed change. |
fields | object | No | Any other upload option, keyed by the same form field names the upload endpoints take (see Editable fields). null removes an option; booleans may be sent as true/false. Unknown or internal keys are ignored. |
cover_image_base64 | string | No | New cover image (Instagram / Facebook Reels) as base64 or a data URL. remove_cover: true removes it. |
The media of a scheduled post cannot be changed and is never uploaded again; neither can its profile or its platforms. To change those, cancel the post and schedule it again.
Editable fields
fields accepts the options of Upload Video and Upload Photos by their form names, including:
- Text (video and photo posts only):
title,description,{platform}_title,{platform}_description,{platform}_alt_text,first_comment,{platform}_first_comment. - TikTok:
privacy_level,disable_comment,disable_duet,disable_stitch,cover_timestamp,is_aigc,disclose_commercial,your_brand,branded_content,brand_content_toggle,brand_organic_toggle,post_mode,auto_add_music,photo_cover_index,tiktok_*(music, location, cover image URL, draft, AI label). - Instagram:
media_type,share_to_feed,share_mode,collaborators,user_tags,location_id,audio_name,cover_url,thumb_offset,is_ai_generated. - YouTube:
privacyStatus,tags,categoryId,embeddable,license,publicStatsViewable,selfDeclaredMadeForKids,containsSyntheticMedia,defaultLanguage,defaultAudioLanguage,allowedCountries,blockedCountries,hasPaidProductPlacement,recordingDate,youtube_playlist_id,youtube_publish_at(YouTube's own scheduled publish time, sent to YouTube asstatus.publishAt). - Paid partnership (all networks):
paid_partnership,x_paid_partnership,facebook_sponsor_id,pinterest_sponsor_id. See Paid Partnership Disclosure. - Facebook, LinkedIn, X, Threads, Bluesky, Pinterest, Google Business:
facebook_media_type,facebook_place_id,facebook_is_ai_generated,video_state,visibility,x_long_text_as_post,reply_settings,made_with_ai,community_id,tagged_user_ids[],threads_topic_tag,threads_is_made_with_ai,pinterest_link,pinterest_cover_image_key_frame_time,gbp_*and the other options of those platforms.
When fields changes title or description, any stored copy of the old text (caption, {platform}_caption, {platform}_description, {platform}_title holding exactly the previous text, as an earlier caption edit leaves them) is rewritten to the new text, so every platform publishes it. A per-platform text that differs from the old one is a real override and is kept. On posts that include YouTube, description is also everyone's caption: it is kept on a title edit, unless it is identical to the old title.
On text posts, x_long_text_as_post, threads_long_text_as_post and threads_topic_tag are editable too; the text itself is edited with the top-level title/caption.
Edited values pass the same input checks as an upload (text length per platform, Instagram collaborators, X reply settings, a valid paid_partnership / sponsor id…); a rejected value answers 400 and nothing is changed. An invalid paid partnership value carries error_code: commercial_disclosure_invalid_value; paid_partnership=true on a TikTok SELF_ONLY post carries commercial_disclosure_privacy_conflict.
Posts that are publishing
A post can be edited while it is pending and more than 60 seconds away from its publish time. Once the scheduler has picked it up, or within that last minute, PATCH answers 409 with error_code: "scheduled_post_in_progress" and the post is published as it was. The check is atomic: an edit never lands half-way into a publish.
Success Response 200 OK
{
"success": true,
"job_id": "a1b2c3d4e5f67890a1b2c3d4e5f67890",
"scheduled_date": "2025-10-05T10:30:00Z",
"title": "Updated title",
"caption": "Updated caption"
}
Error Responses
| Status | Body | Condition |
|---|---|---|
400 Bad Request | { "success": false, "error": "<reason>" } | Invalid body; invalid/past date; a value that does not pass the upload checks; daily limit reached. |
409 Conflict | { "success": false, "error": "<reason>", "error_code": "scheduled_post_in_progress" } | The post is being published, has already run, or is due within 60 seconds. |
401 Unauthorized | Invalid or missing token. | |
403 Forbidden | { "success": false, "error": "Forbidden" } | The job does not belong to the authenticated user, or the profile JWT does not match the job's profile. |
403 Forbidden | { "success": false, "message": "This calendar is read-only…", "error_code": "READONLY_CALENDAR" } | Authenticated with a profile JWT for a profile that has readonly_calendar: true. |
404 Not Found | { "success": false, "error": "Job not found" } | The supplied job_id does not exist. |
500 Internal Server Error | Unexpected failure while editing the job. |
Example Request
curl -X PATCH "https://api.upload-post.com/api/uploadposts/schedule/JOB_ID" \
-H "Content-Type: application/json" \
-H "Authorization: Apikey <token>" \
-d '{
"scheduled_date": "2025-10-05T10:30:00",
"timezone": "Europe/Madrid",
"title": "Updated title",
"caption": "Updated caption"
}'
Changing the cover frame and the AI label of a scheduled video without uploading it again:
curl -X PATCH "https://api.upload-post.com/api/uploadposts/schedule/JOB_ID" \
-H "Content-Type: application/json" \
-H "Authorization: Apikey <token>" \
-d '{
"fields": {
"youtube_title": "New YouTube title",
"cover_timestamp": 4200,
"thumb_offset": "4200",
"is_aigc": true,
"is_ai_generated": true
}
}'
Pending Scheduled Posts Limit
Each account can keep a limited number of scheduled posts waiting to be published. Once the limit is reached, new uploads with scheduled_date (including add_to_queue) and POST /api/uploadposts/posts/retry with a job_id and a future scheduled_date answer 429 Too Many Requests with error_code: "SCHEDULED_POSTS_LIMIT":
{
"success": false,
"error": "You already have 20000 scheduled posts pending, the maximum for your plan is 20000. Wait for some to publish or delete scheduled posts you no longer need, then try again.",
"message": "Scheduled posts limit reached (20000 pending).",
"error_code": "SCHEDULED_POSTS_LIMIT",
"pending_scheduled_posts": 20000,
"max_pending_scheduled_posts": 20000
}
| Plan | Max pending scheduled posts |
|---|---|
| Free | 5,000 |
| Basic | 20,000 |
| Professional | 30,000 |
| Advanced | 40,000 |
| Business | 50,000 |
- Only posts due more than 15 minutes after the request count and are checked. Immediate uploads and posts due within 15 minutes are never refused by this limit.
pending_scheduled_postsis how many you have waiting;max_pending_scheduled_postsis the limit for your plan.- To free room, wait for posts to publish or cancel the ones you no longer need. Do not retry the same request in a loop: it keeps failing until the count goes down.
See Also
- Using
scheduled_datewhen uploading content – parameter description. - Upload Video, Upload Photos, Upload Text – endpoints that support scheduling.
- Upload Status – Check the execution status of scheduled posts using the
job_id.