Parameters

NameTypeRequiredDescription
brandIdstringYesBrand ID from ocoya_list_brands.
statusstringNoOnly campaigns with this status: GENERATING, GENERATED, SCHEDULED or ERROR.
pagenumberNoZero-based page number. Defaults to 0.
perPagenumberNoCampaigns per page, up to 100. Defaults to 20.

Request example

{
  "name": "ocoya_list_campaigns",
  "arguments": {
    "brandId": "cmayvq3hk00017apshay5qezu",
    "status": "GENERATED",
    "page": 0,
    "perPage": 20
  }
}

Returns

Returns total, page, perPage and data, the campaigns on this page. Each campaign has:

FieldDescription
idCampaign ID. Pass it to ocoya_get_campaign.
typesocial or blog.
name, promptThe brief the campaign was generated from. The app shows it as the campaign’s name.
goalCampaign objective, when one was set.
statusGENERATING while posts are being written, GENERATED when they are ready to review, SCHEDULED once the campaign runs (shown as Running in Ocoya), ERROR when generation failed.
duration, startDate, postsPerDayThe campaign’s schedule.
plannedPostCount, postCountPosts asked for, and posts generated so far.
channelIdsChannels the campaign posts to.
generationProgress while generating: phase, current, total, completed, failed, and error when it failed.
createdAt, updatedAtTimestamps.

This tool only reads: it changes nothing in Ocoya. It needs the posts:read scope.