Agent C Runs API
The runs API from Agent C — 5 operation(s) for runs.
The runs API from Agent C — 5 operation(s) for runs.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/theagentc-io:theagentc-io-runs-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Agent C Runs API
description: AI COO platform — Jarvis Jr. manages your social media content.
version: 0.1.0
tags:
- name: Runs
paths:
/v1/runs:
get:
tags:
- Runs
summary: List Runs
description: List pipeline runs for the current workspace.
operationId: list_runs_v1_runs_get
security:
- HTTPBearer: []
parameters:
- name: limit
in: query
required: false
schema:
type: integer
maximum: 100
minimum: 1
default: 20
title: Limit
- name: offset
in: query
required: false
schema:
type: integer
minimum: 0
default: 0
title: Offset
- name: status
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Status
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/RunListResponse'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
post:
tags:
- Runs
summary: Create Run
description: 'Create a new one-off pipeline run.
This is what the `/content/new` dashboard form calls. It validates the
request, verifies the brand belongs to the caller''s workspace, pre-checks
credits and the monthly video cap, creates a Run row, and enqueues a
Job for the worker to pick up.
We do NOT deduct credits here — the worker does that when the run
actually executes. This prevents charging for queued-but-never-run
jobs (e.g., the worker dies before dequeue) and matches the pattern
used by `coo_engine.dispatch_run`. The pre-check below is just a
fast-fail so the UI can tell the customer "you don''t have enough
credits" before filling out a form.
Returns the persisted Run so the dashboard can redirect to
`/content/runs/{id}` and start polling progress immediately.'
operationId: create_run_v1_runs_post
security:
- HTTPBearer: []
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/RunCreateInput'
responses:
'201':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/RunListItem'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/v1/runs/{run_id}:
get:
tags:
- Runs
summary: Get Run
description: Get detailed run info including checkpoint progress.
operationId: get_run_v1_runs__run_id__get
security:
- HTTPBearer: []
parameters:
- name: run_id
in: path
required: true
schema:
type: string
format: uuid
title: Run Id
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/RunDetail'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/v1/runs/{run_id}/progress:
get:
tags:
- Runs
summary: Get Run Progress
description: Get live step-by-step progress for dashboard display.
operationId: get_run_progress_v1_runs__run_id__progress_get
security:
- HTTPBearer: []
parameters:
- name: run_id
in: path
required: true
schema:
type: string
format: uuid
title: Run Id
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/ProgressResponse'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/v1/runs/{run_id}/retry:
post:
tags:
- Runs
summary: Retry Run
description: 'Retry a failed run from its last checkpoint.
Only failed runs can be retried. Completed steps are skipped.'
operationId: retry_run_v1_runs__run_id__retry_post
security:
- HTTPBearer: []
parameters:
- name: run_id
in: path
required: true
schema:
type: string
format: uuid
title: Run Id
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/RetryResponse'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/v1/system/breakers:
get:
tags:
- Runs
summary: Get Circuit Breakers
description: 'Get circuit breaker status for all external services.
Useful for admin dashboard and debugging.'
operationId: get_circuit_breakers_v1_system_breakers_get
responses:
'200':
description: Successful Response
content:
application/json:
schema:
items:
$ref: '#/components/schemas/BreakerStatus'
type: array
title: Response Get Circuit Breakers V1 System Breakers Get
security:
- HTTPBearer: []
components:
schemas:
RetryResponse:
properties:
run_id:
type: string
format: uuid
title: Run Id
job_id:
type: string
format: uuid
title: Job Id
message:
type: string
title: Message
remaining_steps:
items:
type: string
type: array
title: Remaining Steps
type: object
required:
- run_id
- job_id
- message
- remaining_steps
title: RetryResponse
HTTPValidationError:
properties:
detail:
items:
$ref: '#/components/schemas/ValidationError'
type: array
title: Detail
type: object
title: HTTPValidationError
RunDetail:
properties:
id:
type: string
format: uuid
title: Id
brand_id:
anyOf:
- type: string
format: uuid
- type: 'null'
title: Brand Id
campaign_id:
anyOf:
- type: string
format: uuid
- type: 'null'
title: Campaign Id
mode:
anyOf:
- type: integer
- type: 'null'
title: Mode
status:
type: string
title: Status
credits_used:
type: integer
title: Credits Used
default: 0
created_at:
type: string
title: Created At
started_at:
anyOf:
- type: string
- type: 'null'
title: Started At
completed_at:
anyOf:
- type: string
- type: 'null'
title: Completed At
error:
anyOf:
- type: object
- type: 'null'
title: Error
steps_completed:
anyOf:
- type: object
- type: 'null'
title: Steps Completed
context:
anyOf:
- type: object
- type: 'null'
title: Context
progress:
anyOf:
- type: object
- type: 'null'
title: Progress
type: object
required:
- id
- status
- created_at
title: RunDetail
RunListResponse:
properties:
runs:
items:
$ref: '#/components/schemas/RunListItem'
type: array
title: Runs
total:
type: integer
title: Total
limit:
type: integer
title: Limit
offset:
type: integer
title: Offset
type: object
required:
- runs
- total
- limit
- offset
title: RunListResponse
RunCreateInput:
properties:
brand_id:
type: string
format: uuid
title: Brand Id
mode:
type: integer
maximum: 3.0
minimum: 1.0
title: Mode
description: 'Content mode: 1, 2, or 3'
idea:
anyOf:
- type: string
- type: 'null'
title: Idea
video_url:
anyOf:
- type: string
- type: 'null'
title: Video Url
strategy:
anyOf:
- type: string
- type: 'null'
title: Strategy
platforms:
items:
type: string
type: array
title: Platforms
formats:
items:
type: string
type: array
title: Formats
type: object
required:
- brand_id
- mode
title: RunCreateInput
description: 'Payload for POST /v1/runs — mirrors `RunCreateInput` in src/lib/api.ts.
Kept intentionally loose at the Pydantic layer (strings + lists) so
validation errors surface through `validate_run_request` with the same
field names the frontend form uses. That way the UI can highlight the
right field without a translation table.'
ValidationError:
properties:
loc:
items:
anyOf:
- type: string
- type: integer
type: array
title: Location
msg:
type: string
title: Message
type:
type: string
title: Error Type
type: object
required:
- loc
- msg
- type
title: ValidationError
ProgressResponse:
properties:
run_id:
type: string
format: uuid
title: Run Id
mode:
anyOf:
- type: integer
- type: 'null'
title: Mode
total_steps:
type: integer
title: Total Steps
completed:
type: integer
title: Completed
failed:
type: integer
title: Failed
skipped:
type: integer
title: Skipped
running:
type: integer
title: Running
pending:
type: integer
title: Pending
percent_complete:
type: integer
title: Percent Complete
steps:
type: object
title: Steps
type: object
required:
- run_id
- mode
- total_steps
- completed
- failed
- skipped
- running
- pending
- percent_complete
- steps
title: ProgressResponse
BreakerStatus:
properties:
service:
type: string
title: Service
state:
type: string
title: State
failure_count:
type: integer
title: Failure Count
failure_threshold:
type: integer
title: Failure Threshold
can_execute:
type: boolean
title: Can Execute
type: object
required:
- service
- state
- failure_count
- failure_threshold
- can_execute
title: BreakerStatus
RunListItem:
properties:
id:
type: string
format: uuid
title: Id
brand_id:
anyOf:
- type: string
format: uuid
- type: 'null'
title: Brand Id
campaign_id:
anyOf:
- type: string
format: uuid
- type: 'null'
title: Campaign Id
mode:
anyOf:
- type: integer
- type: 'null'
title: Mode
status:
type: string
title: Status
credits_used:
type: integer
title: Credits Used
default: 0
created_at:
type: string
title: Created At
started_at:
anyOf:
- type: string
- type: 'null'
title: Started At
completed_at:
anyOf:
- type: string
- type: 'null'
title: Completed At
error:
anyOf:
- type: object
- type: 'null'
title: Error
type: object
required:
- id
- status
- created_at
title: RunListItem
securitySchemes:
HTTPBearer:
type: http
scheme: bearer