Agent C Campaigns API
The campaigns API from Agent C — 5 operation(s) for campaigns.
The campaigns API from Agent C — 5 operation(s) for campaigns.
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-campaigns-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 Campaigns API
description: AI COO platform — Jarvis Jr. manages your social media content.
version: 0.1.0
tags:
- name: Campaigns
paths:
/v1/campaigns:
get:
tags:
- Campaigns
summary: List Campaigns
description: 'List all campaigns in the current workspace with optional filtering.
Query parameters:
- status: Filter by campaign status (draft, active, paused, completed)
- brand_id: Filter campaigns for a specific brand
- limit: Number of results (max 100)
- offset: Pagination offset'
operationId: list_campaigns_v1_campaigns_get
security:
- HTTPBearer: []
parameters:
- name: status
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Status
- name: brand_id
in: query
required: false
schema:
anyOf:
- type: string
format: uuid
- type: 'null'
title: Brand Id
- 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
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/CampaignListResponse'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
post:
tags:
- Campaigns
summary: Create Campaign
description: 'Create a new campaign for a brand in the current workspace.
The brand must exist in the current workspace.'
operationId: create_campaign_v1_campaigns_post
security:
- HTTPBearer: []
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/CampaignCreate'
responses:
'201':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/CampaignRead'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/v1/campaigns/{campaign_id}:
get:
tags:
- Campaigns
summary: Get Campaign
description: 'Get a specific campaign by ID with all details.
Campaign must belong to a brand in the current workspace.'
operationId: get_campaign_v1_campaigns__campaign_id__get
security:
- HTTPBearer: []
parameters:
- name: campaign_id
in: path
required: true
schema:
type: string
format: uuid
title: Campaign Id
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/CampaignRead'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
put:
tags:
- Campaigns
summary: Update Campaign
description: 'Update an existing campaign.
Cannot directly change status to ''active'' — use /pause or /resume endpoints instead.'
operationId: update_campaign_v1_campaigns__campaign_id__put
security:
- HTTPBearer: []
parameters:
- name: campaign_id
in: path
required: true
schema:
type: string
format: uuid
title: Campaign Id
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/CampaignUpdate'
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/CampaignRead'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
delete:
tags:
- Campaigns
summary: Delete Campaign
description: 'Soft delete a campaign by setting its status to ''archived''.
The campaign record remains in the database for historical reference.'
operationId: delete_campaign_v1_campaigns__campaign_id__delete
security:
- HTTPBearer: []
parameters:
- name: campaign_id
in: path
required: true
schema:
type: string
format: uuid
title: Campaign Id
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/v1/campaigns/{campaign_id}/activate:
post:
tags:
- Campaigns
summary: Activate Campaign
description: 'Activate a draft (or completed) campaign so the scheduler starts dispatching
runs according to its cadence.
Computes `next_run_at` from the campaign''s cadence. If the campaign has no
cadence, activation is still allowed but the scheduler will treat it as a
one-shot (next dispatch will mark it completed).'
operationId: activate_campaign_v1_campaigns__campaign_id__activate_post
security:
- HTTPBearer: []
parameters:
- name: campaign_id
in: path
required: true
schema:
type: string
format: uuid
title: Campaign Id
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/CampaignStatusChange'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/v1/campaigns/{campaign_id}/pause:
post:
tags:
- Campaigns
summary: Pause Campaign
description: 'Pause an active campaign. Scheduled runs will not be triggered.
Only active campaigns can be paused.'
operationId: pause_campaign_v1_campaigns__campaign_id__pause_post
security:
- HTTPBearer: []
parameters:
- name: campaign_id
in: path
required: true
schema:
type: string
format: uuid
title: Campaign Id
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/CampaignStatusChange'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/v1/campaigns/{campaign_id}/resume:
post:
tags:
- Campaigns
summary: Resume Campaign
description: 'Resume a paused campaign. Scheduled runs will resume according to cadence.
Only paused campaigns can be resumed.'
operationId: resume_campaign_v1_campaigns__campaign_id__resume_post
security:
- HTTPBearer: []
parameters:
- name: campaign_id
in: path
required: true
schema:
type: string
format: uuid
title: Campaign Id
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/CampaignStatusChange'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
components:
schemas:
HTTPValidationError:
properties:
detail:
items:
$ref: '#/components/schemas/ValidationError'
type: array
title: Detail
type: object
title: HTTPValidationError
CampaignCreate:
properties:
brand_id:
type: string
format: uuid
title: Brand Id
name:
type: string
title: Name
mode:
type: integer
maximum: 3.0
minimum: 1.0
title: Mode
description: 'Content mode: 1=customer ideas, 2=video upload, 3=full AI'
autonomy:
type: string
title: Autonomy
description: 'Autonomy level: always_ask, ask_for_expensive, full_auto'
default: always_ask
cadence:
anyOf:
- type: object
- type: 'null'
title: Cadence
description: 'Scheduling config: {days: [''mon'',''wed'',''fri''], time: ''09:00'', timezone: ''US/Eastern''}'
config:
anyOf:
- type: object
- type: 'null'
title: Config
description: 'Campaign-specific config: content type, platforms, templates'
type: object
required:
- brand_id
- name
- mode
title: CampaignCreate
description: Schema for creating a new campaign.
CampaignStatusChange:
properties:
id:
type: string
format: uuid
title: Id
status:
type: string
title: Status
updated_at:
type: string
format: date-time
title: Updated At
message:
type: string
title: Message
type: object
required:
- id
- status
- updated_at
- message
title: CampaignStatusChange
description: Response for status change operations (pause/resume).
CampaignRead:
properties:
id:
type: string
format: uuid
title: Id
brand_id:
type: string
format: uuid
title: Brand Id
name:
type: string
title: Name
mode:
type: integer
title: Mode
cadence:
anyOf:
- type: object
- type: 'null'
title: Cadence
autonomy:
type: string
title: Autonomy
status:
type: string
title: Status
next_run_at:
anyOf:
- type: string
format: date-time
- type: 'null'
title: Next Run At
config:
anyOf:
- type: object
- type: 'null'
title: Config
created_at:
type: string
format: date-time
title: Created At
updated_at:
type: string
format: date-time
title: Updated At
type: object
required:
- id
- brand_id
- name
- mode
- cadence
- autonomy
- status
- next_run_at
- config
- created_at
- updated_at
title: CampaignRead
description: Campaign details for API responses.
CampaignUpdate:
properties:
name:
anyOf:
- type: string
- type: 'null'
title: Name
mode:
anyOf:
- type: integer
maximum: 3.0
minimum: 1.0
- type: 'null'
title: Mode
autonomy:
anyOf:
- type: string
- type: 'null'
title: Autonomy
cadence:
anyOf:
- type: object
- type: 'null'
title: Cadence
config:
anyOf:
- type: object
- type: 'null'
title: Config
status:
anyOf:
- type: string
- type: 'null'
title: Status
type: object
title: CampaignUpdate
description: Schema for updating an existing campaign.
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
CampaignListResponse:
properties:
campaigns:
items:
$ref: '#/components/schemas/CampaignRead'
type: array
title: Campaigns
total:
type: integer
title: Total
limit:
type: integer
title: Limit
offset:
type: integer
title: Offset
type: object
required:
- campaigns
- total
- limit
- offset
title: CampaignListResponse
description: Paginated list response for campaigns.
securitySchemes:
HTTPBearer:
type: http
scheme: bearer