Skip to main content

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​

EndpointGET /api/uploadposts/schedule
AuthenticationRequired. Either an Apikey (Authorization: Apikey <token>) or a white-label profile JWT (Authorization: Bearer <profile_jwt>).
Query ParamsAll optional — see below.

Query Parameters​

ParamTypeDescription
profile_usernamestringReturn only the jobs of this profile.
fromstringISO-8601 lower bound on scheduled_date, inclusive.
tostringISO-8601 upper bound on scheduled_date, exclusive.
limitintegerPage size. Omit to return every matching job.
offsetintegerNumber of jobs to skip, ordered by scheduled_date ascending. Defaults to 0.

Malformed from / to / limit / offset values are ignored rather than rejected.

White-label profile JWTs are scoped automatically

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
}
FieldTypeDescription
scheduled_postsarrayThe requested page of scheduled-job objects.
totalintegerTotal number of jobs matching your filters, ignoring limit/offset. Use it to build a pager.
limitinteger | nullThe limit that was applied; null when you didn't send one.
offsetintegerThe offset that was applied.

Each element of scheduled_posts contains:

FieldTypeDescription
job_idstringUnique identifier of the scheduled job. Required to edit or cancel it.
scheduled_datestringISO-8601 date/time when the post will go live. Time is in UTC.
post_typestringOne of video, photo, text, or unknown.
profile_usernamestringUpload-Post profile that will publish the content.
titlestringText shown in a calendar. For single-platform jobs this is the text that platform will actually publish.
external_idstring | nullYour own identifier for this post, echoed back exactly as you sent it. See Correlating posts with your own system.
source_filenamestring | nullOriginal file name of the uploaded media, when the job was created from a file or a URL. null for text posts.
caption / descriptionstringGeneric caption and description stored with the job.
platformsarrayPlatforms the job will publish to.
platform_contentobjectPer-platform title / caption, falling back to the generic values.
fieldsobjectThe 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_coverbooleanWhether a cover image is stored for the job.
cover_preview_urlstring | nullPre-stored cover URL, when one exists.
has_previewbooleanWhether a previewable video/photo asset exists for the job.
preview_urlnullAlways null — media URLs are signed on demand, see below.
thumbnail_urlstring | nullSigned 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_demandbooleantrue 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_timezonestring | nullTimezone the job was originally scheduled in.
original_scheduled_strstring | nullThe 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​

StatusReason
401 UnauthorizedMissing 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.

EndpointGET /api/uploadposts/schedule/<job_id>
AuthenticationRequired. Same as the list endpoint.
URL Paramjob_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
}
FieldDescription
formThe 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_urlsSigned URLs of the stored video, or of the photos (up to 20). The media itself cannot be replaced by an edit.
kept_filesFiles attached at schedule time (custom thumbnail, Reels cover, first comment media). An edit keeps them as they are.
editable / not_editable_reasonWhether 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​

EndpointGET /api/uploadposts/schedule/<job_id>/thumbnail
AuthenticationRequired. 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.

StatusMeaning
200 OKthumbnail_url set, or null when there is nothing to show.
202 AcceptedAnother request is building it right now. Retry after retry_after seconds.
429 Too Many RequestsToo many thumbnails being built at once. Retry after retry_after seconds.
404 Not FoundThe job does not exist or is not yours.

Cancel a Scheduled Post​

EndpointDELETE /api/uploadposts/schedule/<job_id>
AuthenticationRequired. 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 Paramjob_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​

StatusBodyCondition
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​

EndpointPATCH /api/uploadposts/schedule/<job_id>
AuthenticationRequired. 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 Paramjob_id — ID obtained from the list endpoint.
BodyJSON object with one or more of the fields below.
FieldTypeRequiredDescription
scheduled_datestringNoISO-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.
timezonestringNoIANA 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.
titlestringNoNew post title/caption, applied to every platform of the post.
captionstringNoNew caption/description, applied to every platform of the post.
platform_contentobjectNoPer-platform text, e.g. {"youtube": {"title": "…"}, "tiktok": {"caption": "…"}}. Only the platforms listed change.
fieldsobjectNoAny 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_base64stringNoNew 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 as status.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​

StatusBodyCondition
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
}
PlanMax pending scheduled posts
Free5,000
Basic20,000
Professional30,000
Advanced40,000
Business50,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_posts is how many you have waiting; max_pending_scheduled_posts is 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​