FoxCue API: Workflows

Request examples, parameters, scopes and response statuses for FoxCue API workflows.

These operations are copied from the live OpenAPI schema at GET /api/v1/openapi.json (2026-10-28, 297 operations). Each example request is built from that operation's schema: required fields, and optional fields when the object is small. Response bodies are not in that schema. Where the JSON shape is known, it is listed below with an example. Shared errors are on Limits and errors.

Send Authorization: Bearer <workspace API key>. Base URL: https://app.foxcue.com/api/v1.

Workflows

GET /workflows/search

Search one bounded workspace record family; additionally requires the selected family read scope

Scope: brands:read.

Parameters

NameInRequiredTypeRules
kindqueryyesstringone of brands, silos, sources, scripts
queryqueryyesstringminLength 1; maxLength 300
project_idquerynostringminLength 1; maxLength 100
limitquerynointegerminimum 1; maximum 20

Example request

curl -X GET "https://app.foxcue.com/api/v1/workflows/search?kind=example&query=example&project_id=example&limit=example" \
  -H "Authorization: Bearer <workspace API key>"

Response

The body is a JSON object with these fields.

FieldType
kindJSON
itemsarray
has_moreboolean
limitnumber
{
  "kind": "example",
  "items": [],
  "has_more": false,
  "limit": 0
}
StatusMeaning
200Success
400Invalid request
401Invalid, expired or revoked key
403Missing scope
404Resource not found in workspace
409Revision or idempotency conflict
429Rate or active-job limit exceeded

POST /workflows/video-ideas

Resolve or import one public article and queue the existing bounded article-focused idea planner; also requires strategy:read, knowledge:read/write and generation:write

Scope: strategy:write.

Example request

{
  "project_id": "example",
  "silo_id": "example",
  "url": "example",
  "source_id": "example",
  "count": 1,
  "target_ids": [
    "example"
  ],
  "idempotency_key": "example-"
}

Required fields: project_id, silo_id, idempotency_key.

curl -X POST "https://app.foxcue.com/api/v1/workflows/video-ideas" \
  -H "Authorization: Bearer <workspace API key>" \
  -H "Content-Type: application/json" \
  -d @body.json

Response

StatusMeaning
202Success
400Invalid request
401Invalid, expired or revoked key
403Missing scope
404Resource not found in workspace
409Revision or idempotency conflict
429Rate or active-job limit exceeded

GET /workflows/video-ideas/{id}

Read source-to-ideas workflow and its existing decision run; additionally requires knowledge:read

Scope: strategy:read.

Parameters

NameInRequiredTypeRules
idpathyesstring

Example request

curl -X GET "https://app.foxcue.com/api/v1/workflows/video-ideas/example" \
  -H "Authorization: Bearer <workspace API key>"

Response

StatusMeaning
200Success
400Invalid request
401Invalid, expired or revoked key
403Missing scope
404Resource not found in workspace
409Revision or idempotency conflict
429Rate or active-job limit exceeded

POST /workflows/script-from-idea

Create one durable native script from a brand and idea, with pinned public evidence and a finite cost cap; requires scripts:write, knowledge:read and generation:write when generating

Scope: strategy:write.

Parameters

NameInRequiredTypeRules
Idempotency-KeyheaderyesstringminLength 8; maxLength 128

Example request

{
  "project_id": "example",
  "idea": "example",
  "idempotency_key": "example-",
  "knowledge_ids": [
    "example"
  ],
  "idea_id": "example"
}

Required fields: project_id, idea.

curl -X POST "https://app.foxcue.com/api/v1/workflows/script-from-idea" \
  -H "Authorization: Bearer <workspace API key>" \
  -H "Idempotency-Key: example-key-001" \
  -H "Content-Type: application/json" \
  -d @body.json

Response

StatusMeaning
201Success
400Invalid request
401Invalid, expired or revoked key
403Missing scope
404Resource not found in workspace
409Revision or idempotency conflict
429Rate or active-job limit exceeded

GET /workflows/idea-workflows/{id}

Inspect idea-to-script work after rechecking current actor, brand and evidence access

Scope: scripts:read.

Parameters

NameInRequiredTypeRules
idpathyesstring

Example request

curl -X GET "https://app.foxcue.com/api/v1/workflows/idea-workflows/example" \
  -H "Authorization: Bearer <workspace API key>"

Response

StatusMeaning
200Success
400Invalid request
401Invalid, expired or revoked key
403Missing scope
404Resource not found in workspace
409Revision or idempotency conflict
429Rate or active-job limit exceeded

POST /workflows/idea-workflows/{id}/cancel

Cooperatively cancel idea script generation while retaining its saved draft

Scope: scripts:write.

Parameters

NameInRequiredTypeRules
idpathyesstring

Example request

curl -X POST "https://app.foxcue.com/api/v1/workflows/idea-workflows/example/cancel" \
  -H "Authorization: Bearer <workspace API key>"

Response

StatusMeaning
200Success
400Invalid request
401Invalid, expired or revoked key
403Missing scope
404Resource not found in workspace
409Revision or idempotency conflict
429Rate or active-job limit exceeded

On this page