Cadenzova API

The same tools your AI uses through MCP, over plain HTTPS. OpenAPI: https://mcp.cadenzova.com/v1/openapi.json

Authentication

Create an API key in Cadenzova under More → AI agents → API keys, then send it as a Bearer token. A key has its own permission level and brands. On “Draft and approve”, posts you create wait for approval in Cadenzova.

curl -X POST https://mcp.cadenzova.com/v1/tools/get_started \
  -H "Authorization: Bearer cdz_sk_…" -H "Content-Type: application/json" -d '{}'

Errors

Errors return JSON with error and message: 401 bad key, 402 plan limit (with upgrade_url), 403 permission level, 404 not found, 429 rate or daily credit limit.

Webhooks

Add endpoints under AI agents → Webhooks. Events: post.held, post.approved, post.rejected, post.published, post.failed. Each POST carries X-Cadenzova-Signature: t=<unix>,v1=<hex>, where v1 is HMAC-SHA256 of "<t>.<raw body>" with your signing secret. Failed deliveries are retried after 1 minute, 10 minutes and 1 hour.

import hmac, hashlib, time
def verify(secret, body: bytes, header: str) -> bool:
    parts = dict(p.split("=", 1) for p in header.split(","))
    if abs(time.time() - int(parts["t"])) > 300:
        return False
    mac = hmac.new(secret.encode(), f"{parts['t']}.".encode() + body, hashlib.sha256).hexdigest()
    return hmac.compare_digest(mac, parts["v1"])

Tools

GET/POST /v1/tools/get_started

Returns this connection's permission level and what it may do, the brands it can see,and for each brand its connected channels, product count and open to-do items, plus theplan's usage.

Arguments
{
  "properties": {},
  "title": "get_startedArguments",
  "type": "object"
}

GET/POST /v1/tools/list_brands

The brands this connection can work on, with their brand_ids.

Arguments
{
  "properties": {},
  "title": "list_brandsArguments",
  "type": "object"
}

GET/POST /v1/tools/get_brand_brief

The brand's profile: description, niche, voice, audience and personas, content focus,the owner's standing instructions, colours, the learned writing style when one exists,and up to 10 competitors.

Arguments
{
  "properties": {
    "brand_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Brand id from list_brands. Leave out when the connection has one brand.",
      "title": "Brand Id"
    }
  },
  "title": "get_brand_briefArguments",
  "type": "object"
}

GET/POST /v1/tools/list_products

The brand's products: name, description, price, link, status and tags, with product_id.product_id links posts and results back to a product.

Arguments
{
  "properties": {
    "brand_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Brand id from list_brands. Leave out when the connection has one brand.",
      "title": "Brand Id"
    },
    "limit": {
      "default": 50,
      "maximum": 200,
      "minimum": 1,
      "title": "Limit",
      "type": "integer"
    },
    "offset": {
      "default": 0,
      "minimum": 0,
      "title": "Offset",
      "type": "integer"
    }
  },
  "title": "list_productsArguments",
  "type": "object"
}

GET/POST /v1/tools/list_channels

Each platform the brand can post to: connection status, caption, title and hashtaglimits, accepted media, and whether media is required. Includes the plan's usage and aconnect link.

Arguments
{
  "properties": {
    "brand_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Brand id from list_brands. Leave out when the connection has one brand.",
      "title": "Brand Id"
    }
  },
  "title": "list_channelsArguments",
  "type": "object"
}

GET/POST /v1/tools/get_calendar

The brand's posts that are scheduled, held for approval, publishing, failed orpublished, soonest first. Posts without a post_id were created elsewhere in Cadenzovaand are read-only through this connection.

Arguments
{
  "properties": {
    "brand_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Brand id from list_brands. Leave out when the connection has one brand.",
      "title": "Brand Id"
    }
  },
  "title": "get_calendarArguments",
  "type": "object"
}

GET/POST /v1/tools/get_performance

Results across platforms for the last N days, compared with the N days before: posts,engagement and impressions per platform, best hours and days, top content types and topposts. 'measured' counts the posts that have results.

Arguments
{
  "properties": {
    "brand_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Brand id from list_brands. Leave out when the connection has one brand.",
      "title": "Brand Id"
    },
    "days": {
      "default": 30,
      "maximum": 90,
      "minimum": 1,
      "title": "Days",
      "type": "integer"
    }
  },
  "title": "get_performanceArguments",
  "type": "object"
}

GET/POST /v1/tools/get_playbook

For one platform: Cadenzova's playbook (what the platform rewards, formats and hooks)and this brand's own results: best content types, timing, product promotion balance andsuggested next content.

Arguments
{
  "properties": {
    "platform": {
      "description": "pinterest, instagram, tiktok, youtube, facebook, x, bluesky, linkedin or threads",
      "title": "Platform",
      "type": "string"
    },
    "brand_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Brand id from list_brands. Leave out when the connection has one brand.",
      "title": "Brand Id"
    }
  },
  "required": [
    "platform"
  ],
  "title": "get_playbookArguments",
  "type": "object"
}

GET/POST /v1/tools/get_best_times

The next suggested posting slot for a platform. 'learned' is true when it comes fromthis brand's results and false when it is a general default.

Arguments
{
  "properties": {
    "platform": {
      "title": "Platform",
      "type": "string"
    },
    "brand_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Brand id from list_brands. Leave out when the connection has one brand.",
      "title": "Brand Id"
    }
  },
  "required": [
    "platform"
  ],
  "title": "get_best_timesArguments",
  "type": "object"
}

GET/POST /v1/tools/search_media

The brand's media library, newest first, for source uploads, products or generated.Returns asset_ids for posts and short-lived preview links.

Arguments
{
  "properties": {
    "brand_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Brand id from list_brands. Leave out when the connection has one brand.",
      "title": "Brand Id"
    },
    "source": {
      "default": "uploads",
      "description": "uploads, products or generated",
      "title": "Source",
      "type": "string"
    }
  },
  "title": "search_mediaArguments",
  "type": "object"
}

GET/POST /v1/tools/get_notes

Notes saved for this brand by any assistant connected to the account: strategy,decisions and results. Each note has a key, body and last-updated time.

Arguments
{
  "properties": {
    "brand_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Brand id from list_brands. Leave out when the connection has one brand.",
      "title": "Brand Id"
    }
  },
  "title": "get_notesArguments",
  "type": "object"
}

POST /v1/tools/save_note

Saves a note for this brand under a key, shared with every assistant connected to theaccount. Saving an existing key replaces it; an empty body deletes the note. Up to 100notes per brand, 8,000 characters each. Text only.

Arguments
{
  "properties": {
    "key": {
      "description": "Short topic name, e.g. 'strategy' or 'q4-campaign'",
      "maxLength": 80,
      "minLength": 1,
      "title": "Key",
      "type": "string"
    },
    "body": {
      "maxLength": 8000,
      "title": "Body",
      "type": "string"
    },
    "brand_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Brand id from list_brands. Leave out when the connection has one brand.",
      "title": "Brand Id"
    }
  },
  "required": [
    "key",
    "body"
  ],
  "title": "save_noteArguments",
  "type": "object"
}

GET/POST /v1/tools/get_usage

The account's plan, posts used this month against the limit, connected channels, AIcredits left, calls made today, and the upgrade link.

Arguments
{
  "properties": {},
  "title": "get_usageArguments",
  "type": "object"
}

GET/POST /v1/tools/validate_post

Dry run. Checks a post against each platform's rules (length, media, required fields,connection) and flags wording that reads as AI-written, near-repeats of recent posts andweak openings. Writes nothing.

Arguments
{
  "$defs": {
    "Pinterest": {
      "properties": {
        "board": {
          "description": "Board name, from list_boards",
          "title": "Board",
          "type": "string"
        },
        "title": {
          "anyOf": [
            {
              "maxLength": 100,
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Title"
        },
        "link": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "https:// link the pin opens",
          "title": "Link"
        }
      },
      "required": [
        "board"
      ],
      "title": "Pinterest",
      "type": "object"
    },
    "Post": {
      "description": "One piece of content and every place it goes.",
      "properties": {
        "platforms": {
          "description": "Connected platform ids from list_channels",
          "items": {
            "type": "string"
          },
          "minItems": 1,
          "title": "Platforms",
          "type": "array"
        },
        "caption": {
          "default": "",
          "description": "Caption for every platform, hashtags included",
          "title": "Caption",
          "type": "string"
        },
        "captions": {
          "anyOf": [
            {
              "additionalProperties": {
                "type": "string"
              },
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Per-platform captions that replace `caption`, e.g. {'x': '\u2026'}",
          "title": "Captions"
        },
        "image_asset_ids": {
          "description": "From search_media or the media tools",
          "items": {
            "type": "string"
          },
          "title": "Image Asset Ids",
          "type": "array"
        },
        "video_asset_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Video Asset Id"
        },
        "cover_asset_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Cover image; required for a Pinterest video pin",
          "title": "Cover Asset Id"
        },
        "scheduled_at": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "ISO 8601 with a timezone, e.g. 2026-12-01T09:30:00+00:00",
          "title": "Scheduled At"
        },
        "product_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "The product this post promotes, from list_products",
          "title": "Product Id"
        },
        "campaign_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "The campaign it belongs to, from list_campaigns",
          "title": "Campaign Id"
        },
        "pinterest": {
          "anyOf": [
            {
              "$ref": "#/$defs/Pinterest"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "youtube_title": {
          "anyOf": [
            {
              "maxLength": 100,
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Youtube Title"
        },
        "tiktok": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "TikTok needs {privacy_level, allow_comment, allow_duet, allow_stitch}",
          "title": "Tiktok"
        },
        "first_comment": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Instagram first comment",
          "title": "First Comment"
        },
        "alt_text": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Image description (Bluesky and Pinterest)",
          "title": "Alt Text"
        }
      },
      "required": [
        "platforms"
      ],
      "title": "Post",
      "type": "object"
    }
  },
  "properties": {
    "post": {
      "$ref": "#/$defs/Post"
    },
    "brand_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Brand id from list_brands. Leave out when the connection has one brand.",
      "title": "Brand Id"
    }
  },
  "required": [
    "post"
  ],
  "title": "validate_postArguments",
  "type": "object"
}

POST /v1/tools/create_post

Creates one post for one or more platforms. when: 'queue' = the brand's next freeposting time, 'schedule' = at scheduled_at, 'now' = publish immediately, 'draft' = savedwithout publishing. On a 'Draft and approve' connection the post is held until the userapproves it, and the result includes approve_url. One post counts once against themonthly limit however many platforms it goes to. Retrying the same content does notwrite it twice.

Arguments
{
  "$defs": {
    "Pinterest": {
      "properties": {
        "board": {
          "description": "Board name, from list_boards",
          "title": "Board",
          "type": "string"
        },
        "title": {
          "anyOf": [
            {
              "maxLength": 100,
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Title"
        },
        "link": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "https:// link the pin opens",
          "title": "Link"
        }
      },
      "required": [
        "board"
      ],
      "title": "Pinterest",
      "type": "object"
    },
    "Post": {
      "description": "One piece of content and every place it goes.",
      "properties": {
        "platforms": {
          "description": "Connected platform ids from list_channels",
          "items": {
            "type": "string"
          },
          "minItems": 1,
          "title": "Platforms",
          "type": "array"
        },
        "caption": {
          "default": "",
          "description": "Caption for every platform, hashtags included",
          "title": "Caption",
          "type": "string"
        },
        "captions": {
          "anyOf": [
            {
              "additionalProperties": {
                "type": "string"
              },
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Per-platform captions that replace `caption`, e.g. {'x': '\u2026'}",
          "title": "Captions"
        },
        "image_asset_ids": {
          "description": "From search_media or the media tools",
          "items": {
            "type": "string"
          },
          "title": "Image Asset Ids",
          "type": "array"
        },
        "video_asset_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Video Asset Id"
        },
        "cover_asset_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Cover image; required for a Pinterest video pin",
          "title": "Cover Asset Id"
        },
        "scheduled_at": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "ISO 8601 with a timezone, e.g. 2026-12-01T09:30:00+00:00",
          "title": "Scheduled At"
        },
        "product_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "The product this post promotes, from list_products",
          "title": "Product Id"
        },
        "campaign_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "The campaign it belongs to, from list_campaigns",
          "title": "Campaign Id"
        },
        "pinterest": {
          "anyOf": [
            {
              "$ref": "#/$defs/Pinterest"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "youtube_title": {
          "anyOf": [
            {
              "maxLength": 100,
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Youtube Title"
        },
        "tiktok": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "TikTok needs {privacy_level, allow_comment, allow_duet, allow_stitch}",
          "title": "Tiktok"
        },
        "first_comment": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Instagram first comment",
          "title": "First Comment"
        },
        "alt_text": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Image description (Bluesky and Pinterest)",
          "title": "Alt Text"
        }
      },
      "required": [
        "platforms"
      ],
      "title": "Post",
      "type": "object"
    }
  },
  "properties": {
    "post": {
      "$ref": "#/$defs/Post"
    },
    "when": {
      "anyOf": [
        {
          "enum": [
            "draft",
            "queue",
            "schedule",
            "now"
          ],
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "When"
    },
    "brand_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Brand id from list_brands. Leave out when the connection has one brand.",
      "title": "Brand Id"
    },
    "idempotency_key": {
      "anyOf": [
        {
          "pattern": "^[A-Za-z0-9_-]{8,64}$",
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Idempotency Key"
    }
  },
  "required": [
    "post"
  ],
  "title": "create_postArguments",
  "type": "object"
}

POST /v1/tools/create_posts

Creates up to 30 posts in one call, each with its own scheduled_at. All or nothing: ifone post is invalid, none are written and the error names it. On 'Draft and approve'connections all of them are held for approval. The free plan allows 5 per call.

Arguments
{
  "$defs": {
    "Pinterest": {
      "properties": {
        "board": {
          "description": "Board name, from list_boards",
          "title": "Board",
          "type": "string"
        },
        "title": {
          "anyOf": [
            {
              "maxLength": 100,
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Title"
        },
        "link": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "https:// link the pin opens",
          "title": "Link"
        }
      },
      "required": [
        "board"
      ],
      "title": "Pinterest",
      "type": "object"
    },
    "Post": {
      "description": "One piece of content and every place it goes.",
      "properties": {
        "platforms": {
          "description": "Connected platform ids from list_channels",
          "items": {
            "type": "string"
          },
          "minItems": 1,
          "title": "Platforms",
          "type": "array"
        },
        "caption": {
          "default": "",
          "description": "Caption for every platform, hashtags included",
          "title": "Caption",
          "type": "string"
        },
        "captions": {
          "anyOf": [
            {
              "additionalProperties": {
                "type": "string"
              },
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Per-platform captions that replace `caption`, e.g. {'x': '\u2026'}",
          "title": "Captions"
        },
        "image_asset_ids": {
          "description": "From search_media or the media tools",
          "items": {
            "type": "string"
          },
          "title": "Image Asset Ids",
          "type": "array"
        },
        "video_asset_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Video Asset Id"
        },
        "cover_asset_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Cover image; required for a Pinterest video pin",
          "title": "Cover Asset Id"
        },
        "scheduled_at": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "ISO 8601 with a timezone, e.g. 2026-12-01T09:30:00+00:00",
          "title": "Scheduled At"
        },
        "product_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "The product this post promotes, from list_products",
          "title": "Product Id"
        },
        "campaign_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "The campaign it belongs to, from list_campaigns",
          "title": "Campaign Id"
        },
        "pinterest": {
          "anyOf": [
            {
              "$ref": "#/$defs/Pinterest"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "youtube_title": {
          "anyOf": [
            {
              "maxLength": 100,
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Youtube Title"
        },
        "tiktok": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "TikTok needs {privacy_level, allow_comment, allow_duet, allow_stitch}",
          "title": "Tiktok"
        },
        "first_comment": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Instagram first comment",
          "title": "First Comment"
        },
        "alt_text": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Image description (Bluesky and Pinterest)",
          "title": "Alt Text"
        }
      },
      "required": [
        "platforms"
      ],
      "title": "Post",
      "type": "object"
    }
  },
  "properties": {
    "posts": {
      "items": {
        "$ref": "#/$defs/Post"
      },
      "maxItems": 30,
      "minItems": 1,
      "title": "Posts",
      "type": "array"
    },
    "brand_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Brand id from list_brands. Leave out when the connection has one brand.",
      "title": "Brand Id"
    },
    "idempotency_key": {
      "anyOf": [
        {
          "pattern": "^[A-Za-z0-9_-]{8,64}$",
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Idempotency Key"
    }
  },
  "required": [
    "posts"
  ],
  "title": "create_postsArguments",
  "type": "object"
}

GET/POST /v1/tools/get_post

The current state of one post on each platform: held, scheduled, publishing, published(with its link) or failed (with the reason).

Arguments
{
  "properties": {
    "post_id": {
      "description": "post_id from create_post, create_posts or get_calendar",
      "title": "Post Id",
      "type": "string"
    }
  },
  "required": [
    "post_id"
  ],
  "title": "get_postArguments",
  "type": "object"
}

POST /v1/tools/update_post

Changes the caption of a post that has not gone out yet, waiting for approval or alreadyapproved and scheduled: caption for every platform, or captions per platform. The Pinteresttitle and link can also change.

Arguments
{
  "properties": {
    "post_id": {
      "description": "post_id from create_post, create_posts or get_calendar",
      "title": "Post Id",
      "type": "string"
    },
    "caption": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Caption"
    },
    "captions": {
      "anyOf": [
        {
          "additionalProperties": {
            "type": "string"
          },
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Captions"
    },
    "pinterest_title": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Pinterest Title"
    },
    "pinterest_link": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Pinterest Link"
    }
  },
  "required": [
    "post_id"
  ],
  "title": "update_postArguments",
  "type": "object"
}

POST /v1/tools/move_post

Changes when a post goes out, including a post already approved and scheduled. A post stillwaiting for approval stays waiting at the new time.

Arguments
{
  "properties": {
    "post_id": {
      "description": "post_id from create_post, create_posts or get_calendar",
      "title": "Post Id",
      "type": "string"
    },
    "scheduled_at": {
      "description": "ISO 8601 with a timezone, in the future",
      "title": "Scheduled At",
      "type": "string"
    }
  },
  "required": [
    "post_id",
    "scheduled_at"
  ],
  "title": "move_postArguments",
  "type": "object"
}

POST /v1/tools/delete_post

Cancels a post that has not gone out yet, waiting for approval or already approved andscheduled, and removes it from every platform it was going to. Cannot be undone.

Arguments
{
  "properties": {
    "post_id": {
      "description": "post_id from create_post, create_posts or get_calendar",
      "title": "Post Id",
      "type": "string"
    }
  },
  "required": [
    "post_id"
  ],
  "title": "delete_postArguments",
  "type": "object"
}

GET/POST /v1/tools/list_boards

The Pinterest boards this brand can pin to. A pin must name one.

Arguments
{
  "properties": {
    "brand_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Brand id from list_brands. Leave out when the connection has one brand.",
      "title": "Brand Id"
    }
  },
  "title": "list_boardsArguments",
  "type": "object"
}

POST /v1/tools/import_media

Adds one image to the brand's library from a public https link and returns its asset_id.For an image made in this chat use upload_image; for a file on disk or a video usecreate_upload_link.

Arguments
{
  "properties": {
    "url": {
      "title": "Url",
      "type": "string"
    },
    "brand_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Brand id from list_brands. Leave out when the connection has one brand.",
      "title": "Brand Id"
    }
  },
  "required": [
    "url"
  ],
  "title": "import_mediaArguments",
  "type": "object"
}

GET/POST /v1/tools/list_pin_templates

The free Pinterest pin layouts render_pin_template can make, with what each needs.

Arguments
{
  "properties": {},
  "title": "list_pin_templatesArguments",
  "type": "object"
}

POST /v1/tools/render_pin_template

Lays out a Pinterest pin (1000×1500) from the brand's photos, a title, and an optionalsubtitle and footer, in the brand's colours. Free. Returns an image asset_id.

Arguments
{
  "properties": {
    "template": {
      "title": "Template",
      "type": "string"
    },
    "title": {
      "title": "Title",
      "type": "string"
    },
    "image_asset_ids": {
      "default": [],
      "items": {
        "type": "string"
      },
      "maxItems": 4,
      "title": "Image Asset Ids",
      "type": "array"
    },
    "subtitle": {
      "default": "",
      "title": "Subtitle",
      "type": "string"
    },
    "footer": {
      "default": "",
      "title": "Footer",
      "type": "string"
    },
    "brand_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Brand id from list_brands. Leave out when the connection has one brand.",
      "title": "Brand Id"
    }
  },
  "required": [
    "template",
    "title"
  ],
  "title": "render_pin_templateArguments",
  "type": "object"
}

POST /v1/tools/create_video

Renders a vertical video from the brand's material. style 'slideshow': up to 10 photos with optional text per photo. style 'kinetic': up to 8 lines of animated text. Costs 10 credits. Returns a job_id: poll get_job until it is done, then use result.video_asset_id (and cover_asset_id) in a post.

Arguments
{
  "properties": {
    "style": {
      "enum": [
        "slideshow",
        "kinetic"
      ],
      "title": "Style",
      "type": "string"
    },
    "texts": {
      "default": [],
      "items": {
        "type": "string"
      },
      "title": "Texts",
      "type": "array"
    },
    "image_asset_ids": {
      "default": [],
      "items": {
        "type": "string"
      },
      "maxItems": 10,
      "title": "Image Asset Ids",
      "type": "array"
    },
    "seconds_per_slide": {
      "default": 2.5,
      "maximum": 8,
      "minimum": 1,
      "title": "Seconds Per Slide",
      "type": "number"
    },
    "with_music": {
      "default": true,
      "title": "With Music",
      "type": "boolean"
    },
    "brand_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Brand id from list_brands. Leave out when the connection has one brand.",
      "title": "Brand Id"
    }
  },
  "required": [
    "style"
  ],
  "title": "create_videoArguments",
  "type": "object"
}

POST /v1/tools/generate_image

Makes one new photographic, text-free image from a description, in the brand's visual style, and adds it to the library. Costs 21 credits. Returns a job_id: poll get_job until it is done, then use result.asset_id in a post. For words on an image, use render_pin_template. Brand photos from search_media cost nothing to use.

Arguments
{
  "properties": {
    "prompt": {
      "maxLength": 1500,
      "minLength": 10,
      "title": "Prompt",
      "type": "string"
    },
    "orientation": {
      "default": "square",
      "enum": [
        "square",
        "portrait",
        "story"
      ],
      "title": "Orientation",
      "type": "string"
    },
    "style": {
      "anyOf": [
        {
          "maxLength": 400,
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Replaces the brand's saved image style",
      "title": "Style"
    },
    "brand_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Brand id from list_brands. Leave out when the connection has one brand.",
      "title": "Brand Id"
    }
  },
  "required": [
    "prompt"
  ],
  "title": "generate_imageArguments",
  "type": "object"
}

GET/POST /v1/tools/get_job

Progress of a job started by another tool (video render, publishing). status is queued,running, done or failed; result holds the output when done.

Arguments
{
  "properties": {
    "job_id": {
      "title": "Job Id",
      "type": "string"
    }
  },
  "required": [
    "job_id"
  ],
  "title": "get_jobArguments",
  "type": "object"
}

POST /v1/tools/suggest_captions

Writes one caption per platform in the brand's voice, from a draft, an image and/or a product. product_id (from list_products) grounds it in that product's facts; 'auto' lets Cadenzova pick the product most due a post (returned as product_key; pass it as the post's product_id). Costs 3 credits. Writing captions yourself costs nothing.

Arguments
{
  "properties": {
    "platforms": {
      "items": {
        "type": "string"
      },
      "title": "Platforms",
      "type": "array"
    },
    "draft": {
      "default": "",
      "title": "Draft",
      "type": "string"
    },
    "image_asset_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Image Asset Id"
    },
    "product_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Product Id"
    },
    "brand_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Brand id from list_brands. Leave out when the connection has one brand.",
      "title": "Brand Id"
    }
  },
  "required": [
    "platforms"
  ],
  "title": "suggest_captionsArguments",
  "type": "object"
}

POST /v1/tools/ask_strategist

Asks Cadenzova's strategist a question about this brand's results or what to post next. It answers from the brand's data. Costs 3 credits. Its answer is advice, not a decision.

Arguments
{
  "properties": {
    "question": {
      "maxLength": 2000,
      "minLength": 3,
      "title": "Question",
      "type": "string"
    },
    "brand_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Brand id from list_brands. Leave out when the connection has one brand.",
      "title": "Brand Id"
    }
  },
  "required": [
    "question"
  ],
  "title": "ask_strategistArguments",
  "type": "object"
}

GET/POST /v1/tools/get_product

Everything stored about one product: description, price, link, sale, call to action,reviews and photos (asset_ids in order; the first is the main photo).

Arguments
{
  "properties": {
    "product_id": {
      "description": "product_id from list_products",
      "title": "Product Id",
      "type": "string"
    },
    "brand_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Brand id from list_brands. Leave out when the connection has one brand.",
      "title": "Brand Id"
    }
  },
  "required": [
    "product_id"
  ],
  "title": "get_productArguments",
  "type": "object"
}

POST /v1/tools/create_product

Adds a product by hand. product_id is made from the name unless one is given. Photos areadded with add_product_images. To copy a product from its web page, use import_product.

Arguments
{
  "$defs": {
    "ProductFields": {
      "description": "Product fields. Leave a field out to keep it as it is.",
      "properties": {
        "name": {
          "anyOf": [
            {
              "maxLength": 200,
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Name"
        },
        "description": {
          "anyOf": [
            {
              "maxLength": 10000,
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Plain text or simple HTML (p, ul, li, strong, em)",
          "title": "Description"
        },
        "price": {
          "anyOf": [
            {
              "maxLength": 40,
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "As shown to buyers, e.g. '\u00a324.00'",
          "title": "Price"
        },
        "url": {
          "anyOf": [
            {
              "maxLength": 1000,
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "The product page",
          "title": "Url"
        },
        "product_type": {
          "anyOf": [
            {
              "enum": [
                "product",
                "saas",
                "blog",
                "affiliate_link",
                "book"
              ],
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Product Type"
        },
        "status": {
          "anyOf": [
            {
              "enum": [
                "live",
                "draft"
              ],
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "'draft' keeps it out of every plan and post until set live",
          "title": "Status"
        },
        "priority": {
          "anyOf": [
            {
              "enum": [
                "pillar",
                "high",
                "medium",
                "low"
              ],
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "How often the planner features it",
          "title": "Priority"
        },
        "cta_text": {
          "anyOf": [
            {
              "maxLength": 280,
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Call to action used in captions",
          "title": "Cta Text"
        },
        "include_url_in_captions": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Include Url In Captions"
        },
        "tags": {
          "anyOf": [
            {
              "items": {
                "type": "string"
              },
              "maxItems": 30,
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Tags"
        },
        "sale": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "A running sale: {sale_type: store_wide|discount_code|product_only, discount_kind: percent|amount, discount_value, code, ends_at}. Send null to clear it.",
          "title": "Sale"
        }
      },
      "title": "ProductFields",
      "type": "object"
    }
  },
  "properties": {
    "product": {
      "$ref": "#/$defs/ProductFields"
    },
    "product_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "lowercase-with-hyphens id; made from the name if left out",
      "title": "Product Id"
    },
    "brand_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Brand id from list_brands. Leave out when the connection has one brand.",
      "title": "Brand Id"
    }
  },
  "required": [
    "product"
  ],
  "title": "create_productArguments",
  "type": "object"
}

POST /v1/tools/import_product

Creates a product from its public web page (Shopify, WooCommerce and most shops): name,price, description and up to 5 photos. Free. Marketplaces that block bots (Amazon, Etsy)fail; use create_product for those.

Arguments
{
  "properties": {
    "url": {
      "title": "Url",
      "type": "string"
    },
    "brand_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Brand id from list_brands. Leave out when the connection has one brand.",
      "title": "Brand Id"
    }
  },
  "required": [
    "url"
  ],
  "title": "import_productArguments",
  "type": "object"
}

POST /v1/tools/update_product

Changes a product's name, description, price, link, status, priority, call to action,tags or sale. Only the fields sent change.

Arguments
{
  "$defs": {
    "ProductFields": {
      "description": "Product fields. Leave a field out to keep it as it is.",
      "properties": {
        "name": {
          "anyOf": [
            {
              "maxLength": 200,
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Name"
        },
        "description": {
          "anyOf": [
            {
              "maxLength": 10000,
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Plain text or simple HTML (p, ul, li, strong, em)",
          "title": "Description"
        },
        "price": {
          "anyOf": [
            {
              "maxLength": 40,
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "As shown to buyers, e.g. '\u00a324.00'",
          "title": "Price"
        },
        "url": {
          "anyOf": [
            {
              "maxLength": 1000,
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "The product page",
          "title": "Url"
        },
        "product_type": {
          "anyOf": [
            {
              "enum": [
                "product",
                "saas",
                "blog",
                "affiliate_link",
                "book"
              ],
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Product Type"
        },
        "status": {
          "anyOf": [
            {
              "enum": [
                "live",
                "draft"
              ],
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "'draft' keeps it out of every plan and post until set live",
          "title": "Status"
        },
        "priority": {
          "anyOf": [
            {
              "enum": [
                "pillar",
                "high",
                "medium",
                "low"
              ],
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "How often the planner features it",
          "title": "Priority"
        },
        "cta_text": {
          "anyOf": [
            {
              "maxLength": 280,
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Call to action used in captions",
          "title": "Cta Text"
        },
        "include_url_in_captions": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Include Url In Captions"
        },
        "tags": {
          "anyOf": [
            {
              "items": {
                "type": "string"
              },
              "maxItems": 30,
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Tags"
        },
        "sale": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "A running sale: {sale_type: store_wide|discount_code|product_only, discount_kind: percent|amount, discount_value, code, ends_at}. Send null to clear it.",
          "title": "Sale"
        }
      },
      "title": "ProductFields",
      "type": "object"
    }
  },
  "properties": {
    "product_id": {
      "description": "product_id from list_products",
      "title": "Product Id",
      "type": "string"
    },
    "changes": {
      "$ref": "#/$defs/ProductFields"
    },
    "brand_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Brand id from list_brands. Leave out when the connection has one brand.",
      "title": "Brand Id"
    }
  },
  "required": [
    "product_id",
    "changes"
  ],
  "title": "update_productArguments",
  "type": "object"
}

POST /v1/tools/delete_product

Removes a product and stops promoting it. Requires an Autopilot connection. On 'Draftand approve' connections, set status to 'draft' with update_product instead. Past postsand results remain.

Arguments
{
  "properties": {
    "product_id": {
      "description": "product_id from list_products",
      "title": "Product Id",
      "type": "string"
    },
    "brand_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Brand id from list_brands. Leave out when the connection has one brand.",
      "title": "Brand Id"
    }
  },
  "required": [
    "product_id"
  ],
  "title": "delete_productArguments",
  "type": "object"
}

POST /v1/tools/add_product_images

Adds library images (from upload_image, import_media, generate_image or search_media) asproduct photos. Up to 5 per product (40 for software). To replace a photo, add the newone, then remove_product_image the old one. order_product_images sets the main photo.

Arguments
{
  "properties": {
    "product_id": {
      "description": "product_id from list_products",
      "title": "Product Id",
      "type": "string"
    },
    "asset_ids": {
      "items": {
        "type": "string"
      },
      "maxItems": 10,
      "minItems": 1,
      "title": "Asset Ids",
      "type": "array"
    },
    "brand_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Brand id from list_brands. Leave out when the connection has one brand.",
      "title": "Brand Id"
    }
  },
  "required": [
    "product_id",
    "asset_ids"
  ],
  "title": "add_product_imagesArguments",
  "type": "object"
}

POST /v1/tools/order_product_images

Sets the order of a product's photos; the first is the main photo. Photos left out keeptheir place after the ones named.

Arguments
{
  "properties": {
    "product_id": {
      "description": "product_id from list_products",
      "title": "Product Id",
      "type": "string"
    },
    "asset_ids": {
      "items": {
        "type": "string"
      },
      "maxItems": 40,
      "minItems": 1,
      "title": "Asset Ids",
      "type": "array"
    },
    "brand_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Brand id from list_brands. Leave out when the connection has one brand.",
      "title": "Brand Id"
    }
  },
  "required": [
    "product_id",
    "asset_ids"
  ],
  "title": "order_product_imagesArguments",
  "type": "object"
}

POST /v1/tools/tag_product_image

Labels one product photo (e.g. 'lifestyle', 'packaging', 'blue') so posts about thattopic pick it. Replaces the photo's tags.

Arguments
{
  "properties": {
    "product_id": {
      "description": "product_id from list_products",
      "title": "Product Id",
      "type": "string"
    },
    "asset_id": {
      "title": "Asset Id",
      "type": "string"
    },
    "tags": {
      "items": {
        "type": "string"
      },
      "maxItems": 12,
      "title": "Tags",
      "type": "array"
    },
    "brand_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Brand id from list_brands. Leave out when the connection has one brand.",
      "title": "Brand Id"
    }
  },
  "required": [
    "product_id",
    "asset_id",
    "tags"
  ],
  "title": "tag_product_imageArguments",
  "type": "object"
}

POST /v1/tools/remove_product_image

Removes one photo from a product. Refused while a scheduled post still uses it.

Arguments
{
  "properties": {
    "product_id": {
      "description": "product_id from list_products",
      "title": "Product Id",
      "type": "string"
    },
    "asset_id": {
      "title": "Asset Id",
      "type": "string"
    },
    "brand_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Brand id from list_brands. Leave out when the connection has one brand.",
      "title": "Brand Id"
    }
  },
  "required": [
    "product_id",
    "asset_id"
  ],
  "title": "remove_product_imageArguments",
  "type": "object"
}

POST /v1/tools/upload_image

Adds an image made or received in this chat to the brand's library and returns itsasset_id, for posts, carousels (several image_asset_ids) or product photos. Send ONE of:file (a file from this chat), data_base64 (image bytes, up to 8 MB), or url (a publichttps link). An optional product_id also makes it a product photo. For large files orcode, use create_upload_link.

Arguments
{
  "$defs": {
    "FileRef": {
      "description": "A file the AI app hands over (ChatGPT passes generated or uploaded files this way).",
      "properties": {
        "download_url": {
          "title": "Download Url",
          "type": "string"
        },
        "file_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "File Id"
        }
      },
      "required": [
        "download_url"
      ],
      "title": "FileRef",
      "type": "object"
    }
  },
  "properties": {
    "file": {
      "anyOf": [
        {
          "$ref": "#/$defs/FileRef"
        },
        {
          "type": "null"
        }
      ],
      "default": null
    },
    "data_base64": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Base64 image bytes (JPG, PNG, WebP or GIF); a data: URL also works",
      "title": "Data Base64"
    },
    "url": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Url"
    },
    "filename": {
      "anyOf": [
        {
          "maxLength": 200,
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Filename"
    },
    "product_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Also add it to this product's photos",
      "title": "Product Id"
    },
    "brand_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Brand id from list_brands. Leave out when the connection has one brand.",
      "title": "Brand Id"
    }
  },
  "title": "upload_imageArguments",
  "type": "object"
}

For a file on the user's machine or in a sandbox (images up to 20 MB, videos up to 500MB): returns a one-time https upload_url. PUT the file's bytes to it with the file'sContent-Type, then call finish_upload with the upload_id to get the asset_id.

Arguments
{
  "properties": {
    "content_type": {
      "description": "image/jpeg, image/png, image/webp, video/mp4 or video/quicktime",
      "title": "Content Type",
      "type": "string"
    },
    "size_bytes": {
      "default": 1,
      "minimum": 1,
      "title": "Size Bytes",
      "type": "integer"
    },
    "brand_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Brand id from list_brands. Leave out when the connection has one brand.",
      "title": "Brand Id"
    }
  },
  "required": [
    "content_type"
  ],
  "title": "create_upload_linkArguments",
  "type": "object"
}

POST /v1/tools/finish_upload

Checks a file uploaded through create_upload_link and adds it to the library. Returnsthe asset_id (image_asset_ids or video_asset_id in a post).

Arguments
{
  "properties": {
    "upload_id": {
      "title": "Upload Id",
      "type": "string"
    },
    "filename": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Filename"
    },
    "product_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Also add the image to this product's photos",
      "title": "Product Id"
    },
    "brand_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Brand id from list_brands. Leave out when the connection has one brand.",
      "title": "Brand Id"
    }
  },
  "required": [
    "upload_id"
  ],
  "title": "finish_uploadArguments",
  "type": "object"
}

POST /v1/tools/update_brand_settings

Changes the brand's profile: name, website, description, niche, voice, audience,personas, content focus, growth goal, language, timezone, colours, image style andstanding instructions. Only the fields sent change. Everything generated afterwardsfollows them.

Arguments
{
  "properties": {
    "name": {
      "anyOf": [
        {
          "maxLength": 120,
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Name"
    },
    "website": {
      "anyOf": [
        {
          "maxLength": 500,
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Website"
    },
    "description": {
      "anyOf": [
        {
          "maxLength": 4000,
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Description"
    },
    "niche": {
      "anyOf": [
        {
          "maxLength": 200,
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Niche"
    },
    "voice": {
      "anyOf": [
        {
          "maxLength": 2000,
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "How the brand sounds",
      "title": "Voice"
    },
    "audience": {
      "anyOf": [
        {
          "maxLength": 2000,
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Audience"
    },
    "audience_personas": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "maxItems": 12,
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Audience Personas"
    },
    "content_focus": {
      "anyOf": [
        {
          "maxLength": 2000,
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Content Focus"
    },
    "growth_goal": {
      "anyOf": [
        {
          "maxLength": 500,
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Growth Goal"
    },
    "locale": {
      "anyOf": [
        {
          "maxLength": 20,
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "e.g. en-GB",
      "title": "Locale"
    },
    "audience_timezone": {
      "anyOf": [
        {
          "maxLength": 60,
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "IANA, e.g. Europe/London",
      "title": "Audience Timezone"
    },
    "colors": {
      "anyOf": [
        {
          "additionalProperties": {
            "type": "string"
          },
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Hex colours: {primary, accent, secondary, text}",
      "title": "Colors"
    },
    "image_style": {
      "anyOf": [
        {
          "maxLength": 400,
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "How generated images should look",
      "title": "Image Style"
    },
    "custom_instructions": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "maxItems": 50,
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "The owner's standing rules, e.g. 'Never use emojis'",
      "title": "Custom Instructions"
    },
    "instructions_mode": {
      "default": "add",
      "enum": [
        "add",
        "replace"
      ],
      "title": "Instructions Mode",
      "type": "string"
    },
    "brand_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Brand id from list_brands. Leave out when the connection has one brand.",
      "title": "Brand Id"
    }
  },
  "title": "update_brand_settingsArguments",
  "type": "object"
}

GET/POST /v1/tools/list_campaigns

The brand's campaigns: name, objective, products, platforms, dates and status. Acampaign_id can be passed to create_post or create_posts to make a post part of acampaign.

Arguments
{
  "properties": {
    "brand_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Brand id from list_brands. Leave out when the connection has one brand.",
      "title": "Brand Id"
    }
  },
  "title": "list_campaignsArguments",
  "type": "object"
}

POST /v1/tools/create_campaign

Starts a campaign (a launch, a sale or a season): name, objective, products, platforms and dates. Posts join it through campaign_id, and results come from get_campaign_results. objective is one of: awareness, traffic, engagement, sales, launch, followers.

Arguments
{
  "properties": {
    "name": {
      "maxLength": 80,
      "title": "Name",
      "type": "string"
    },
    "objective": {
      "default": "awareness",
      "title": "Objective",
      "type": "string"
    },
    "product_ids": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Product Ids"
    },
    "platforms": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Platforms"
    },
    "starts_on": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "YYYY-MM-DD",
      "title": "Starts On"
    },
    "ends_on": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "YYYY-MM-DD",
      "title": "Ends On"
    },
    "goal": {
      "anyOf": [
        {
          "maxLength": 200,
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "The target, e.g. '40 orders' or '2,000 clicks'",
      "title": "Goal"
    },
    "brief": {
      "anyOf": [
        {
          "maxLength": 1000,
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Brief"
    },
    "brand_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Brand id from list_brands. Leave out when the connection has one brand.",
      "title": "Brand Id"
    }
  },
  "required": [
    "name"
  ],
  "title": "create_campaignArguments",
  "type": "object"
}

POST /v1/tools/update_campaign

Changes a campaign's name, objective, products, platforms, dates, goal or brief, or setsits status to paused or ended. remove=true deletes the campaign record; its postsremain.

Arguments
{
  "properties": {
    "campaign_id": {
      "title": "Campaign Id",
      "type": "string"
    },
    "name": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Name"
    },
    "objective": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Objective"
    },
    "product_ids": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Product Ids"
    },
    "platforms": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Platforms"
    },
    "starts_on": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Starts On"
    },
    "ends_on": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Ends On"
    },
    "goal": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Goal"
    },
    "brief": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Brief"
    },
    "status": {
      "anyOf": [
        {
          "enum": [
            "active",
            "paused",
            "ended"
          ],
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Status"
    },
    "remove": {
      "default": false,
      "title": "Remove",
      "type": "boolean"
    },
    "brand_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Brand id from list_brands. Leave out when the connection has one brand.",
      "title": "Brand Id"
    }
  },
  "required": [
    "campaign_id"
  ],
  "title": "update_campaignArguments",
  "type": "object"
}

GET/POST /v1/tools/get_campaign_results

How a campaign did over its dates: published posts, reach, saves, clicks, likes, comments and engagement in total and per platform, its best posts, revenue attributed to its posts and the orders of its products.

Arguments
{
  "properties": {
    "campaign_id": {
      "title": "Campaign Id",
      "type": "string"
    },
    "brand_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Brand id from list_brands. Leave out when the connection has one brand.",
      "title": "Brand Id"
    }
  },
  "required": [
    "campaign_id"
  ],
  "title": "get_campaign_resultsArguments",
  "type": "object"
}

GET/POST /v1/tools/get_post_results

Every post published in the last N days on each platform, with reach, saves, clicks,likes, comments, engagement, the product it promoted and its link. Filter by platform orproduct; sort by a figure. 'measured' false means the platform has not reported numbersyet.

Arguments
{
  "properties": {
    "days": {
      "default": 30,
      "maximum": 365,
      "minimum": 1,
      "title": "Days",
      "type": "integer"
    },
    "platform": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Platform"
    },
    "product_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Product Id"
    },
    "sort": {
      "default": "recent",
      "enum": [
        "recent",
        "reach",
        "saves",
        "clicks",
        "likes",
        "comments",
        "engagement"
      ],
      "title": "Sort",
      "type": "string"
    },
    "limit": {
      "default": 50,
      "maximum": 200,
      "minimum": 1,
      "title": "Limit",
      "type": "integer"
    },
    "brand_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Brand id from list_brands. Leave out when the connection has one brand.",
      "title": "Brand Id"
    }
  },
  "title": "get_post_resultsArguments",
  "type": "object"
}

GET/POST /v1/tools/get_product_results

Products ranked by revenue and by what their posts did in the last N days: posts, reach,saves, clicks, engagement, orders and revenue, plus live products that were neverpromoted.

Arguments
{
  "properties": {
    "days": {
      "default": 30,
      "maximum": 365,
      "minimum": 7,
      "title": "Days",
      "type": "integer"
    },
    "brand_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Brand id from list_brands. Leave out when the connection has one brand.",
      "title": "Brand Id"
    }
  },
  "title": "get_product_resultsArguments",
  "type": "object"
}

GET/POST /v1/tools/get_audience

Follower counts over time per platform (weekly snapshots, about six months) with the trend and the next milestone forecast.

Arguments
{
  "properties": {
    "brand_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Brand id from list_brands. Leave out when the connection has one brand.",
      "title": "Brand Id"
    }
  },
  "title": "get_audienceArguments",
  "type": "object"
}

POST /v1/tools/subscribe_webhook

Registers a URL that Cadenzova POSTs to when a post is held, approved, rejected, published or fails (events: post.held, post.approved, post.rejected, post.published, post.failed; empty = all). Returns the webhook id and its signing secret, shown only once: each delivery carries X-Cadenzova-Signature: t=<unix>,v1=HMAC-SHA256(secret, "<t>.<body>"). Up to 10 per account. Paid plans and the trial.

Arguments
{
  "properties": {
    "url": {
      "title": "Url",
      "type": "string"
    },
    "events": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "event names; empty or left out = every event",
      "title": "Events"
    },
    "description": {
      "default": "",
      "title": "Description",
      "type": "string"
    }
  },
  "required": [
    "url"
  ],
  "title": "subscribe_webhookArguments",
  "type": "object"
}

POST /v1/tools/unsubscribe_webhook

Deletes a webhook made with subscribe_webhook (or on the AI agents page), by id.

Arguments
{
  "properties": {
    "webhook_id": {
      "title": "Webhook Id",
      "type": "string"
    }
  },
  "required": [
    "webhook_id"
  ],
  "title": "unsubscribe_webhookArguments",
  "type": "object"
}