Poko
ExamplesHow it worksPricingDocs
Poko

The fastest AI motion video generator in the world.

Product

FeaturesSwarm modeExamplesPricingFAQ

Company

BlogChangelogFree toolsAffiliate

Get going

DocsLog inCreate an accountDownload

Compare

Poko vs CluesoPoko vs CardboardPoko vs Eddie AIPoko vs HypernaturalPoko vs MotionAll comparisons

Legal

PrivacyTerms
© 2026 Poko. Made with Poko.hello@poko.video
Poko Motion Docs
GuidesAPI Reference
⌘ K
Support
Poko API reference →

Older automation API

  • Overview
  • Authentication
  • Request headers
  • POSTCreate generation
  • POSTCreate MotionCut
  • Request fields
  • GETGet generation
  • DELETECancel generation
  • POSTCreate export
  • GETExport status
  • GETConnection status
  • Statuses and errors
  • Security
Configure API access →
Need help?
Browse API reference
Poko API reference →

Older automation API

  • Overview
  • Authentication
  • Request headers
  • POSTCreate generation
  • POSTCreate MotionCut
  • Request fields
  • GETGet generation
  • DELETECancel generation
  • POSTCreate export
  • GETExport status
  • GETConnection status
  • Statuses and errors
  • Security
Configure API access →
DocsAPI Reference

API reference

Older automation API

The first API: n8n, Make and enterprise workers call the Poko app directly at your Poko address. It still works; use the Poko API for anything new.

Last updated November 2026

Use the Poko API for new work

This page describes the first automation API, at https://YOUR-SLUG.isthebest.poko.video/automations/v1. Existing n8n, Make and enterprise worker setups keep working.

The Poko API at https://api.poko.video does the same with the same API keys, and also covers templates, uploads, brand kit, settings, voices and usage. Claude, ChatGPT and other AI apps use it over MCP.

Open the Poko API reference →Every route, with inputs, example responses and a Try it button.

How it works

Poko Motion creates videos on a machine you control, while this API gives an external workflow a secure way to start and monitor that work.

There are two ingresses. They share /automations/v1 paths and the same API key; only the host and a few worker-only capabilities change.

  • Desktop slug: https://YOUR-SLUG.isthebest.poko.video. Poko stores the request, then relays it to the Motion app on your computer. Keep the app open for immediate delivery. If it is offline, the request stays queued.
  • Self-hosted worker (enterprise): https://video.yourdomain.com. The same paths hit a VPS you install. Status JSON includes "ingress":"self-hosted".

Keys made before November 2026 are bound to one workspace. Newer keys work in all your workspaces: name the workspace in an X-Poko-Workspace-Id header on every request here, or use the Poko API at api.poko.video, which takes it from the URL.

Your public base URL

Slug: replace YOUR-SLUG with the value in Poko Motion → Settings → API. Worker: use your own hostname from the enterprise install docs.

Desktop slug vs self-hosted worker

Shared on both: create generation, list, status, cancel, follow-up chat, create/poll/cancel export, Featured templates, HTTPS references, and previous-project references. Auth is the same Bearer key.

Only the self-hosted worker has:

  • Lookup by projectId (the content nanoid) for status, cancel, chat, and export. Slug paths use requestId because a project does not exist until the desktop accepts the job
  • GET /automations/v1/generations/:projectId/chat: Studio transcript as text for later analysis
  • url on a completed export, and GET …/exports/:exportId/file to stream the MP4 (Bearer required, Range supported)

Slug (*.isthebest.poko.video) does not return a chat transcript, return a download URL, or accept projectId in the path. Follow-up uses the original requestId. The file stays on that desktop. Automation request rows on the slug path are retained for 30 days.

The worker inbox and chat files live on the VPS volume and stay until you delete them. Worker jobs do not appear as cards in the desktop app.

Do not mix hosts

A slug job runs on the connected desktop. A worker job runs on the VPS. projectId from one does not resolve on the other.

1. Create an API key

In Poko Motion, open Settings → API, save a public URL slug, then create a named API key. The key is bound to the workspace selected in the app. Copy the secret at creation time and store it in your workflow platform’s credential vault. Poko never shows the full key again. The same key works on a self-hosted worker; only the base URL changes.

Authorization header
Authorization: Bearer poko_live_your_api_key

Before you call the API

Every endpoint starts with your personal public URL: https://YOUR-SLUG.isthebest.poko.video. Replace YOUR-SLUG with the value shown in Poko Motion → Settings → API. Send the API key as a Bearer token on every request.

Generation, export, and read limits are determined by the workspace billing plan. If you receive 429 Too Many Requests, wait for the number of seconds in the Retry-After response header before retrying.

Generation and export creation require an Idempotency-Key header. Use the unique execution ID from n8n, Zapier, Make, or your own job runner. Repeating the same key with the same payload returns the original request instead of creating duplicate work. Reusing a key with different export settings is rejected.

ParameterTypeDescription
AuthorizationRequired
header
headerWorkspace-bound API key.Bearer poko_live_…
Content-TypeRequired
header
headerRequired for JSON generation and export requests.application/json
Idempotency-KeyRequired
header
headerStable, unique ID for one generation or export attempt.1–200 characters

2. Start a generation

Create a project and start generation with one request. All fields below are required except model and references. sourceUrl must be a public HTTPS URL. For URL projects it is a website address; for PDF and PowerPoint projects it must point directly to that document; for MotionCut it must return the raw video file. Add up to 10 references. Each can be a public HTTPS URL (name + path) for brand assets, a Featured template (kind: "animation" + id from GET https://api.poko.video/featured-content), or an older workspace project (kind: "project" + id from a previous generation’s projectId). The worker downloads Featured templates and attaches local project folders before the agent starts. Unknown project ids return 400 { "error": "Project \"…\" was not found" }.

Omit model to use the desktop’s computed default. When model is present, Poko uses exactly that model or fails the request. It never silently substitutes another model. To target a configured AI Gateway such as OpenRouter, use gateway:<provider-model-id>, for example gateway:openai/gpt-4.1. Gateway models require BYOK, a configured gateway base URL and API key, and a plan that includes gateways. The configured gateway must support the current agent engine’s API: OpenAI Responses for Codex or Anthropic Messages for Claude Code.

POST /automations/v1/generations
curl --request POST 'https://YOUR-SLUG.isthebest.poko.video/automations/v1/generations' \
  --header 'Authorization: Bearer poko_live_your_api_key' \
  --header 'Content-Type: application/json' \
  --header 'Idempotency-Key: your-unique-workflow-run-id' \
  --data '{
    "name": "Poko product walkthrough",
    "projectType": "url",
    "sourceUrl": "https://poko.video",
    "prompt": "Create a polished 30-second product walkthrough for founders.",
    "videoStyle": "walkthrough",
    "aspectRatio": "16:9",
    "references": [
      {
        "name": "Brand guide",
        "path": "https://example.com/brand-guide.pdf"
      },
      {
        "kind": "animation",
        "id": "k3j9abcd12"
      },
      {
        "kind": "project",
        "id": "oldProjectId"
      }
    ]
  }'

MotionCut generation example

Set projectType to motioncut and provide a direct public HTTPS video URL. The desktop streams the recording into its local project workspace when the durable request is delivered, then uses the normal MotionCut transcription, frame analysis, original-voice, and hybrid editing flow. Supported video types are MP4, MOV, M4V, WebM, MKV, and AVI, up to 1 GB.

POST a MotionCut generation
curl --request POST 'https://YOUR-SLUG.isthebest.poko.video/automations/v1/generations' \
  --header 'Authorization: Bearer poko_live_your_api_key' \
  --header 'Content-Type: application/json' \
  --header 'Idempotency-Key: your-motioncut-workflow-run-id' \
  --data '{
    "name": "Founder launch video",
    "projectType": "motioncut",
    "sourceUrl": "https://media.example.com/founder-take.mp4",
    "prompt": "Turn this recording into a dark, polished YC launch video. Keep the original voice and use the attached product references as proof.",
    "videoStyle": "motion-ad",
    "aspectRatio": "16:9",
    "references": [
      {
        "name": "Product website",
        "path": "https://example.com"
      }
    ]
  }'

Rate limits by plan

Limits apply to the workspace plan bound to the API key:

  • Starter: 10 generations and 5 exports per hour
  • Plus: 20 generations and 10 exports per hour
  • Pro: 40 generations and 20 exports per hour
  • Agency: 80 generations and 40 exports per hour
  • Dealify Scale: Agency limits

Every tier also has a minute-level limit and a maximum number of queued generations to protect the connected computer.

All endpoints may return 429 Too Many Requests with a Retry-After header. Wait for that duration before retrying. These limits control request frequency; normal AI-credit and model-usage rules still apply.

Request fields

name, sourceUrl, prompt, videoStyle, and aspectRatio are required.

  • projectType must be url, pdf, pptx, or motioncut.
  • videoStyle must be walkthrough, motion-ad, or research-explainer; research-explainer requires a PDF.
  • aspectRatio must be 16:9, 1:1, or 9:16.
  • MotionCut sourceUrl must remain reachable until the desktop accepts the queued request.
  • Idempotency-Key is required: use a unique workflow execution ID so retries never create duplicate videos.

A successful request returns 202 with requestId and status queued. Save requestId: it identifies the durable request while it waits for or runs on your desktop.

ParameterTypeDescription
nameRequired
string
stringHuman-readable project name.1–200 characters
projectTypeRequired
string
stringFormat of the required sourceUrl.url (website) · pdf · pptx · motioncut
sourceUrlRequired
string
stringPublic HTTPS URL for the source website, document, or direct MotionCut video file.HTTPS only; MotionCut video up to 1 GB
promptRequired
string
stringGeneration brief sent to the local agent.1–20,000 characters
videoStyleRequired
string
stringPlanning profile for the video.walkthrough · motion-ad · research-explainer (PDF only)
aspectRatioRequired
string
stringOutput format chosen when the project is created.16:9 · 1:1 · 9:16
model
string
stringOptional exact catalog model ID, or gateway:<provider-model-id> for the configured AI Gateway. Omit it to use the desktop default.Gateway example: gateway:openai/gpt-4.1. Gateway requires BYOK, a configured gateway, and a plan that includes gateways. Claude Code: claude-opus-5-5 · claude-sonnet-5-5 · claude-haiku-5-5 · claude-opus-5 · claude-fable-5-1 · claude-fable-5 · claude-opus-4-8 · claude-sonnet-5 · claude-sonnet-4-6 · claude-haiku-4-5. Codex: gpt-6.2-sol · gpt-6.2-astra · gpt-6-astra · gpt-6.1-sol · gpt-6-sol · gpt-6-luna · gpt-5.6-sol · gpt-5.6-terra · gpt-5.6-luna · gpt-5.5 · gpt-5.4 · gpt-5.4-mini
references
array
arrayOptional supporting material: HTTPS URLs, Featured template ids, or an existing workspace project id.Maximum 10. URL: { name, path }. Template: { kind: "animation", id } from GET /featured-content. Previous job: { kind: "project", id } using the projectId/content nanoid. Missing projects return 400.
Accepted response
{
  "requestId": "c3e4f6f8-...",
  "status": "queued",
  "deliveryAttempts": 0
}

3. List generations

List the durable generation requests created with this API key in its bound workspace. Filter by one or more statuses, requests created after an ISO timestamp, and paginate with the opaque cursor returned in the previous response.

ParameterTypeDescription
status
query parameter
query parameterOptional comma-separated status filter.queued · dispatching · accepted · running · completed · failed · cancelled
after
query parameter
query parameterOptional ISO timestamp; returns requests created at or after it.
limit
query parameter
query parameterOptional page size.1–100; default 25
cursor
query parameter
query parameterOpaque cursor returned by the preceding response.
GET /automations/v1/generations
curl 'https://YOUR-SLUG.isthebest.poko.video/automations/v1/generations?status=queued,running&limit=25' \
  --header 'Authorization: Bearer poko_live_your_api_key'

{
  "generations": [{ "requestId": "c3e4f6f8-...", "status": "running" }],
  "cursor": "eyJQSyI6Ii4uLiJ9"
}

4. Check generation status

Poll this endpoint using requestId. It works while the desktop is offline and reports queued, dispatching, running, completed, failed, or cancelled. Once accepted, the response also includes the project and chat identifiers returned by Motion.

ParameterTypeDescription
requestIdRequired
path parameter
path parameterDurable request identifier returned from the create request.
GET /automations/v1/generations/:requestId
curl 'https://YOUR-SLUG.isthebest.poko.video/automations/v1/generations/c3e4f6f8-...' \
  --header 'Authorization: Bearer poko_live_your_api_key'

Read chat history on a self-hosted worker

On a self-hosted worker, prefer projectId (the content nanoid from the create response or the content document). GET /automations/v1/generations/:projectId/chat returns the Studio transcript as plain text (text). The same path still accepts a request id. This reads files on the worker volume; it is not available on *.isthebest.poko.video. Status, cancel, and export on the worker also accept projectId.

ParameterTypeDescription
projectIdRequired
path parameter
path parameterContent nanoid returned from create. A request id still works as a fallback.
GET /automations/v1/generations/:projectId/chat
curl 'https://video.yourdomain.com/automations/v1/generations/proj_.../chat' \
  --header 'Authorization: Bearer poko_live_your_api_key'

{
  "projectId": "proj_...",
  "chatId": "chat-...",
  "text": "User:\nMake a 15s ad\n\nAssistant:\nWriting index.html"
}

Follow up in the same chat

After a generation is no longer running, POST …/generations/:id/chat sends another prompt into the same project and chat. Use a new Idempotency-Key for each follow-up. Retrying the same key does not start a second turn. A running job returns 409. Optional model and references match create.

  • Desktop slug: :id is the original requestId (or a previous follow-up requestId). The response is a new request row. Poll that requestId. The original generation stays completed, so export still uses the first request id. If the app is offline, the follow-up stays queued.
  • Self-hosted worker: :id is projectId (a request id still works). Poll the same projectId. There is no extra request row.
ParameterTypeDescription
idRequired
path parameter
path parameterSlug: original requestId. Worker: projectId (request id still works).
promptRequired
string
stringFollow-up instruction for the same chat.
model
string
stringOptional exact catalog model ID. Omit to keep the default.
references
array
arrayOptional extra HTTPS, Featured, or project references for this turn.
Idempotency-KeyRequired
header
headerUnique ID for this follow-up turn.
POST /automations/v1/generations/:id/chat
curl --request POST 'https://YOUR-SLUG.isthebest.poko.video/automations/v1/generations/c3e4f6f8-.../chat' \
  --header 'Authorization: Bearer poko_live_your_api_key' \
  --header 'Content-Type: application/json' \
  --header 'Idempotency-Key: your-follow-up-id' \
  --data '{
    "prompt": "Make the logo bigger and cut the last scene."
  }'

{ "requestId": "new-follow-up-id", "parentRequestId": "c3e4f6f8-...", "projectId": "proj_...", "chatId": "chat-...", "status": "queued" }

# Worker (same path, projectId):
curl --request POST 'https://video.yourdomain.com/automations/v1/generations/proj_.../chat' \
  --header 'Authorization: Bearer poko_live_your_api_key' \
  --header 'Content-Type: application/json' \
  --header 'Idempotency-Key: your-follow-up-id' \
  --data '{ "prompt": "Make the logo bigger and cut the last scene." }'

5. Cancel a generation

Cancel a queued or active request with DELETE. Cancelling stops delivery; if Motion has already accepted the job, it retains the project and its work in Poko Motion.

ParameterTypeDescription
requestIdRequired
path parameter
path parameterDurable request identifier returned from the create request.
DELETE /automations/v1/generations/:requestId
curl --request DELETE 'https://YOUR-SLUG.isthebest.poko.video/automations/v1/generations/c3e4f6f8-...' \
  --header 'Authorization: Bearer poko_live_your_api_key'

6. Export a completed generation locally

After a generation reports completed, create a durable local export. On the slug, Motion queues the export while the desktop is offline, then renders into that project’s local renders folder. The slug API never returns a download URL.

On a self-hosted worker, the same POST renders on the VPS. When status is completed, GET export includes url; GET that path with the same Bearer token streams the file.

Send a JSON body with any of the fields below, or {} to use the same defaults as the export UI:

  • MP4
  • 30 fps
  • Standard quality
  • 1× speed
  • One worker

The API never accepts a destinationPath or resolution. Output dimensions remain fixed by the project composition. Only one active export may run per project.

ParameterTypeDescription
requestIdRequired
path parameter
path parameterA completed generation request.
format
string
stringOptional output container.mp4 · webm; default mp4
fps
number
numberOptional frame rate.24 · 30 · 60; default 30
quality
string
stringOptional encoding quality preset.draft · standard · high; default standard
speed
number
numberOptional playback speed multiplier.0.5–2; default 1
workers
integer
integerOptional number of local render workers.1–24; default 1
Idempotency-KeyRequired
header
headerUnique workflow execution ID for this export.
POST /automations/v1/generations/:requestId/exports
curl --request POST 'https://YOUR-SLUG.isthebest.poko.video/automations/v1/generations/c3e4f6f8-.../exports' \
  --header 'Authorization: Bearer poko_live_your_api_key' \
  --header 'Content-Type: application/json' \
  --header 'Idempotency-Key: your-unique-export-id' \
  --data '{
    "format": "mp4",
    "fps": 30,
    "quality": "high",
    "speed": 1,
    "workers": 4
  }'

{ "exportId": "d4e5f6a7-...", "status": "queued" }

Check or cancel an export

Poll GET /automations/v1/generations/:projectId/exports/:exportId (request id still works) for queued, dispatching, rendering, completed, failed, or cancelled status. On a self-hosted worker, a completed export includes url. Use GET on that path with the same Bearer token to stream the file (Range requests supported). On *.isthebest.poko.video, files stay on the desktop and no download URL is returned. DELETE the status URL to cancel a queued or active render.

GET export status
curl 'https://YOUR-SLUG.isthebest.poko.video/automations/v1/generations/c3e4f6f8-.../exports/d4e5f6a7-...' \
  --header 'Authorization: Bearer poko_live_your_api_key'

Status values and errors

Generation states

  • queued: The request is safely stored and waiting.
  • dispatching: Poko is sending it to the desktop.
  • accepted: Motion created the local project.
  • running: The agent is working.
  • completed, failed, and cancelled: Terminal states.

If Motion restarts after accepting a request, its local agent session cannot resume and the request is reported as failed.

An unknown model ID is rejected before the request is stored. Engine and billing-mode compatibility are checked by the connected desktop because those settings can change while a durable request is queued. An incompatible model makes the request terminally failed with the exact reason available from the generation status endpoint.

Export states

queued, dispatching, rendering, completed, failed, and cancelled. Export responses may include a coarse phase and progress snapshot. The finished file always remains in the project’s local renders folder.

Errors

  • 400: Invalid request data or an unknown/incompatible model
  • 401: Invalid or revoked key
  • 403: Workspace access or selected billing mode does not permit an action
  • 404: Unknown request
  • 409: Action conflicts with the current state

Check that Motion is online

Use this lightweight endpoint before starting a workflow if you need to confirm that the desktop app is connected. It requires the same API key as the generation endpoints.

GET /automations/v1/status
curl 'https://YOUR-SLUG.isthebest.poko.video/automations/v1/status' \
  --header 'Authorization: Bearer poko_live_your_api_key'

{ "online": true }

Security and reliability

Secure each workflow

  • Use a different key for each workflow.
  • Store it as a secret and revoke it immediately if it is exposed.
  • Do not place API keys in URLs or client-side browser code.
  • Keys are workspace-bound and are rejected if their owner no longer has workspace access.

Handle offline delivery

If your desktop is offline, generation and export requests are stored safely, retried with backoff, and delivered after Motion reconnects. Automation requests are retained for 30 days; after that window, they are not guaranteed to remain available for delivery or status lookup. Poll the request or export status endpoint instead of retrying with a new idempotency key. If a request is terminally failed after Motion accepted it, create a new request with a new idempotency key to run it again.

For MotionCut, Poko stores the URL, not the video bytes, while the desktop is offline. Use a URL that remains valid until delivery. Short-lived signed URLs can expire before the desktop reconnects and will make that request fail.

PreviousAPI ←NextRender and export →