Parameters
| Name | Type | Required | Description |
|---|---|---|---|
brandId | string | Yes | Brand ID from ocoya_list_brands. |
campaignId | string | Yes | Campaign ID from ocoya_list_campaigns or ocoya_create_ai_campaign. |
Request example
{
"name": "ocoya_get_campaign",
"arguments": {
"brandId": "cmayvq3hk00017apshay5qezu",
"campaignId": "cmayxcmpn00087aps2m7hjs9z"
}
}Returns
Returns the same fields as each campaign in ocoya_list_campaigns, plus posts, in order. Each post has:
| Field | Description |
|---|---|
sequence | Position in the campaign, from 1. |
title | Title, for a blog article. |
captionPreview | The caption, cut to 280 characters. |
scheduledAt | When the post is planned or scheduled to publish. |
approved | Whether the post was approved in the campaign review. |
postGroupId | The saved post, once the campaign has saved it. Pass it to ocoya_get_post, ocoya_update_post or ocoya_schedule_post. null until then. |
status | Status of the saved post, such as DRAFT or SCHEDULED. null while it is not saved yet. |
mediaCount | Images or videos on the post. |
Use it to follow a campaign started with ocoya_create_ai_campaign: status stays GENERATING until every post is written, and generation shows how far it got.
A campaign of another brand is not found. This tool only reads: it changes nothing in Ocoya. It needs the posts:read scope.