Your API key. Create one in Ocoya. Authorization: Bearer <key> works too.
API Reference
List campaigns
Returns a brand's AI campaigns, newest first, with each one's status and generation progress. Read one with its posts with GET /campaigns/{campaignId}.
List campaigns
curl --request GET \
--url https://www.app.ocoya.com/api/_public/v1/campaigns \
--header 'X-API-Key: <api-key>'{
"total": 12,
"page": 0,
"perPage": 20,
"data": [
{
"id": "cmayxcmpn00087aps2m7hjs9z",
"type": "social",
"name": "Summer launch campaign",
"prompt": "Summer launch campaign for our ecommerce analytics dashboard.",
"goal": "launch",
"status": "GENERATED",
"duration": 7,
"startDate": "2026-11-02",
"postsPerDay": 1,
"plannedPostCount": 7,
"postCount": 7,
"postLength": "medium",
"channelIds": [
"clh49poxf008x8kov4ncbjty9"
],
"generation": {
"status": "GENERATING",
"phase": "posts",
"current": 3,
"total": 7,
"completed": 2,
"failed": 0,
"error": "<string>",
"startedAt": "2024-01-01T00:00:00Z",
"updatedAt": "2024-01-01T00:00:00Z",
"completedAt": "2024-01-01T00:00:00Z"
},
"createdAt": "2024-01-01T00:00:00Z",
"updatedAt": "2024-01-01T00:00:00Z"
}
]
}Authorizations
Query Parameters
Was this page helpful?