tokportal_create_video_ad_code_request
Request a TikTok Spark Code or Instagram Partner Code for one finalized video. Use this to get an ad code after the video is live, with atomic debit and task creation.
Instructions
Request an ad code (TikTok Spark Code / Instagram Partner Code) for a finalized video. Requests an ad code (TikTok Spark Code or Instagram Partner Code) for one finalized video and debits 7 credits. The video must be finalized on TikTok or Instagram with a live post link. Active TokPortal Coverage and a routable active account manager are required. TokPortal uses the account's current active manager, then its still-active manager relationship, then eligible non-cancelled order history. Completed bundles remain eligible without a delivery-age limit; cancelled orders are never restored. Assignment, debit, and task creation are atomic. Only one open request per video is allowed. Poll the GET endpoint to retrieve the code once the manager submits it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Video ID. | |
| body | Yes | JSON request body. | |
| idempotency_key | No | Optional Idempotency-Key header for safe retries. |