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
| Name | In | Required | Type | Rules |
|---|---|---|---|---|
kind | query | yes | string | one of brands, silos, sources, scripts |
query | query | yes | string | minLength 1; maxLength 300 |
project_id | query | no | string | minLength 1; maxLength 100 |
limit | query | no | integer | minimum 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.
| Field | Type |
|---|---|
kind | JSON |
items | array |
has_more | boolean |
limit | number |
{
"kind": "example",
"items": [],
"has_more": false,
"limit": 0
}| Status | Meaning |
|---|---|
200 | Success |
400 | Invalid request |
401 | Invalid, expired or revoked key |
403 | Missing scope |
404 | Resource not found in workspace |
409 | Revision or idempotency conflict |
429 | Rate 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.jsonResponse
| Status | Meaning |
|---|---|
202 | Success |
400 | Invalid request |
401 | Invalid, expired or revoked key |
403 | Missing scope |
404 | Resource not found in workspace |
409 | Revision or idempotency conflict |
429 | Rate 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
| Name | In | Required | Type | Rules |
|---|---|---|---|---|
id | path | yes | string |
Example request
curl -X GET "https://app.foxcue.com/api/v1/workflows/video-ideas/example" \
-H "Authorization: Bearer <workspace API key>"Response
| Status | Meaning |
|---|---|
200 | Success |
400 | Invalid request |
401 | Invalid, expired or revoked key |
403 | Missing scope |
404 | Resource not found in workspace |
409 | Revision or idempotency conflict |
429 | Rate 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
| Name | In | Required | Type | Rules |
|---|---|---|---|---|
Idempotency-Key | header | yes | string | minLength 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.jsonResponse
| Status | Meaning |
|---|---|
201 | Success |
400 | Invalid request |
401 | Invalid, expired or revoked key |
403 | Missing scope |
404 | Resource not found in workspace |
409 | Revision or idempotency conflict |
429 | Rate 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
| Name | In | Required | Type | Rules |
|---|---|---|---|---|
id | path | yes | string |
Example request
curl -X GET "https://app.foxcue.com/api/v1/workflows/idea-workflows/example" \
-H "Authorization: Bearer <workspace API key>"Response
| Status | Meaning |
|---|---|
200 | Success |
400 | Invalid request |
401 | Invalid, expired or revoked key |
403 | Missing scope |
404 | Resource not found in workspace |
409 | Revision or idempotency conflict |
429 | Rate 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
| Name | In | Required | Type | Rules |
|---|---|---|---|---|
id | path | yes | string |
Example request
curl -X POST "https://app.foxcue.com/api/v1/workflows/idea-workflows/example/cancel" \
-H "Authorization: Bearer <workspace API key>"Response
| Status | Meaning |
|---|---|
200 | Success |
400 | Invalid request |
401 | Invalid, expired or revoked key |
403 | Missing scope |
404 | Resource not found in workspace |
409 | Revision or idempotency conflict |
429 | Rate or active-job limit exceeded |