Skip to main content
POST
Use this endpoint to validate a TikTok slideshow URL and preview import inputs before spending credits. The preview is cached server-side (10 minutes) and returns preview_id so the follow-up import call can skip re-fetching upstream TikTok data.

Body Parameters

url
string
required
TikTok slideshow URL. Supports standard and short TikTok links.

Example

slide_count is the number of slides that will be imported (max 8). If TikTok has more slides, capped=true and total_slides shows the original count.

Error Responses

  • 400 invalid_json - request body is not valid JSON
  • 422 invalid_payload - payload is missing required fields
  • 422 invalid_tiktok_url - URL is not a valid TikTok link
  • 422 not_slideshow - TikTok URL is valid but not a slideshow/photo post
  • 429 rate_limited
  • 502 tiktok_fetch_failed - upstream TikTok fetch failed
  • 500 upstream_config_error - TikTok upstream credentials/config missing
  • 500 preview_failed