{"openapi":"3.1.0","info":{"title":"Cadenzova API","version":"1.0.0","description":"Plan, create, schedule and measure a brand's social media. Same tools as the Cadenzova MCP server. Authenticate with an API key from Cadenzova → AI agents."},"servers":[{"url":"https://mcp.cadenzova.com"}],"components":{"schemas":{"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': '…'}","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":"#/components/schemas/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"},"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. '£24.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"},"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"}},"securitySchemes":{"apiKey":{"type":"http","scheme":"bearer"}}},"security":[{"apiKey":[]}],"paths":{"/v1/tools/get_started":{"post":{"operationId":"get_started","summary":"Get started","description":"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.","requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{},"title":"get_startedArguments","type":"object"}}}},"responses":{"200":{"description":"The tool's result"},"400":{"description":"Invalid request"},"401":{"description":"Missing or invalid key"},"402":{"description":"Plan limit reached (see upgrade_url)"},"403":{"description":"This key's permission level does not allow it"},"429":{"description":"Rate or credit limit reached"}}}},"/v1/tools/list_brands":{"post":{"operationId":"list_brands","summary":"List brands","description":"The brands this connection can work on, with their brand_ids.","requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{},"title":"list_brandsArguments","type":"object"}}}},"responses":{"200":{"description":"The tool's result"},"400":{"description":"Invalid request"},"401":{"description":"Missing or invalid key"},"402":{"description":"Plan limit reached (see upgrade_url)"},"403":{"description":"This key's permission level does not allow it"},"429":{"description":"Rate or credit limit reached"}}}},"/v1/tools/get_brand_brief":{"post":{"operationId":"get_brand_brief","summary":"Brand brief","description":"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.","requestBody":{"required":true,"content":{"application/json":{"schema":{"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"}}}},"responses":{"200":{"description":"The tool's result"},"400":{"description":"Invalid request"},"401":{"description":"Missing or invalid key"},"402":{"description":"Plan limit reached (see upgrade_url)"},"403":{"description":"This key's permission level does not allow it"},"429":{"description":"Rate or credit limit reached"}}}},"/v1/tools/list_products":{"post":{"operationId":"list_products","summary":"List products","description":"The brand's products: name, description, price, link, status and tags, with product_id.product_id links posts and results back to a product.","requestBody":{"required":true,"content":{"application/json":{"schema":{"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"}}}},"responses":{"200":{"description":"The tool's result"},"400":{"description":"Invalid request"},"401":{"description":"Missing or invalid key"},"402":{"description":"Plan limit reached (see upgrade_url)"},"403":{"description":"This key's permission level does not allow it"},"429":{"description":"Rate or credit limit reached"}}}},"/v1/tools/list_channels":{"post":{"operationId":"list_channels","summary":"List channels","description":"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.","requestBody":{"required":true,"content":{"application/json":{"schema":{"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"}}}},"responses":{"200":{"description":"The tool's result"},"400":{"description":"Invalid request"},"401":{"description":"Missing or invalid key"},"402":{"description":"Plan limit reached (see upgrade_url)"},"403":{"description":"This key's permission level does not allow it"},"429":{"description":"Rate or credit limit reached"}}}},"/v1/tools/get_calendar":{"post":{"operationId":"get_calendar","summary":"Calendar","description":"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.","requestBody":{"required":true,"content":{"application/json":{"schema":{"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"}}}},"responses":{"200":{"description":"The tool's result"},"400":{"description":"Invalid request"},"401":{"description":"Missing or invalid key"},"402":{"description":"Plan limit reached (see upgrade_url)"},"403":{"description":"This key's permission level does not allow it"},"429":{"description":"Rate or credit limit reached"}}}},"/v1/tools/get_performance":{"post":{"operationId":"get_performance","summary":"Performance","description":"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.","requestBody":{"required":true,"content":{"application/json":{"schema":{"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"}}}},"responses":{"200":{"description":"The tool's result"},"400":{"description":"Invalid request"},"401":{"description":"Missing or invalid key"},"402":{"description":"Plan limit reached (see upgrade_url)"},"403":{"description":"This key's permission level does not allow it"},"429":{"description":"Rate or credit limit reached"}}}},"/v1/tools/get_playbook":{"post":{"operationId":"get_playbook","summary":"Platform playbook","description":"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.","requestBody":{"required":true,"content":{"application/json":{"schema":{"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"}}}},"responses":{"200":{"description":"The tool's result"},"400":{"description":"Invalid request"},"401":{"description":"Missing or invalid key"},"402":{"description":"Plan limit reached (see upgrade_url)"},"403":{"description":"This key's permission level does not allow it"},"429":{"description":"Rate or credit limit reached"}}}},"/v1/tools/get_best_times":{"post":{"operationId":"get_best_times","summary":"Best time to post","description":"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.","requestBody":{"required":true,"content":{"application/json":{"schema":{"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"}}}},"responses":{"200":{"description":"The tool's result"},"400":{"description":"Invalid request"},"401":{"description":"Missing or invalid key"},"402":{"description":"Plan limit reached (see upgrade_url)"},"403":{"description":"This key's permission level does not allow it"},"429":{"description":"Rate or credit limit reached"}}}},"/v1/tools/search_media":{"post":{"operationId":"search_media","summary":"Search media","description":"The brand's media library, newest first, for source uploads, products or generated.Returns asset_ids for posts and short-lived preview links.","requestBody":{"required":true,"content":{"application/json":{"schema":{"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"}}}},"responses":{"200":{"description":"The tool's result"},"400":{"description":"Invalid request"},"401":{"description":"Missing or invalid key"},"402":{"description":"Plan limit reached (see upgrade_url)"},"403":{"description":"This key's permission level does not allow it"},"429":{"description":"Rate or credit limit reached"}}}},"/v1/tools/get_notes":{"post":{"operationId":"get_notes","summary":"Read notes","description":"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.","requestBody":{"required":true,"content":{"application/json":{"schema":{"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"}}}},"responses":{"200":{"description":"The tool's result"},"400":{"description":"Invalid request"},"401":{"description":"Missing or invalid key"},"402":{"description":"Plan limit reached (see upgrade_url)"},"403":{"description":"This key's permission level does not allow it"},"429":{"description":"Rate or credit limit reached"}}}},"/v1/tools/save_note":{"post":{"operationId":"save_note","summary":"Save a note","description":"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.","requestBody":{"required":true,"content":{"application/json":{"schema":{"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"}}}},"responses":{"200":{"description":"The tool's result"},"400":{"description":"Invalid request"},"401":{"description":"Missing or invalid key"},"402":{"description":"Plan limit reached (see upgrade_url)"},"403":{"description":"This key's permission level does not allow it"},"429":{"description":"Rate or credit limit reached"}}}},"/v1/tools/get_usage":{"post":{"operationId":"get_usage","summary":"Plan and usage","description":"The account's plan, posts used this month against the limit, connected channels, AIcredits left, calls made today, and the upgrade link.","requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{},"title":"get_usageArguments","type":"object"}}}},"responses":{"200":{"description":"The tool's result"},"400":{"description":"Invalid request"},"401":{"description":"Missing or invalid key"},"402":{"description":"Plan limit reached (see upgrade_url)"},"403":{"description":"This key's permission level does not allow it"},"429":{"description":"Rate or credit limit reached"}}}},"/v1/tools/validate_post":{"post":{"operationId":"validate_post","summary":"Check a post","description":"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.","requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"post":{"$ref":"#/components/schemas/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"}}}},"responses":{"200":{"description":"The tool's result"},"400":{"description":"Invalid request"},"401":{"description":"Missing or invalid key"},"402":{"description":"Plan limit reached (see upgrade_url)"},"403":{"description":"This key's permission level does not allow it"},"429":{"description":"Rate or credit limit reached"}}}},"/v1/tools/create_post":{"post":{"operationId":"create_post","summary":"Create a post","description":"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.","requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"post":{"$ref":"#/components/schemas/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"}}}},"responses":{"200":{"description":"The tool's result"},"400":{"description":"Invalid request"},"401":{"description":"Missing or invalid key"},"402":{"description":"Plan limit reached (see upgrade_url)"},"403":{"description":"This key's permission level does not allow it"},"429":{"description":"Rate or credit limit reached"}}}},"/v1/tools/create_posts":{"post":{"operationId":"create_posts","summary":"Create several posts","description":"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.","requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"posts":{"items":{"$ref":"#/components/schemas/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"}}}},"responses":{"200":{"description":"The tool's result"},"400":{"description":"Invalid request"},"401":{"description":"Missing or invalid key"},"402":{"description":"Plan limit reached (see upgrade_url)"},"403":{"description":"This key's permission level does not allow it"},"429":{"description":"Rate or credit limit reached"}}}},"/v1/tools/get_post":{"post":{"operationId":"get_post","summary":"Look at a post","description":"The current state of one post on each platform: held, scheduled, publishing, published(with its link) or failed (with the reason).","requestBody":{"required":true,"content":{"application/json":{"schema":{"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"}}}},"responses":{"200":{"description":"The tool's result"},"400":{"description":"Invalid request"},"401":{"description":"Missing or invalid key"},"402":{"description":"Plan limit reached (see upgrade_url)"},"403":{"description":"This key's permission level does not allow it"},"429":{"description":"Rate or credit limit reached"}}}},"/v1/tools/update_post":{"post":{"operationId":"update_post","summary":"Edit a post","description":"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.","requestBody":{"required":true,"content":{"application/json":{"schema":{"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"}}}},"responses":{"200":{"description":"The tool's result"},"400":{"description":"Invalid request"},"401":{"description":"Missing or invalid key"},"402":{"description":"Plan limit reached (see upgrade_url)"},"403":{"description":"This key's permission level does not allow it"},"429":{"description":"Rate or credit limit reached"}}}},"/v1/tools/move_post":{"post":{"operationId":"move_post","summary":"Move a post","description":"Changes when a post goes out, including a post already approved and scheduled. A post stillwaiting for approval stays waiting at the new time.","requestBody":{"required":true,"content":{"application/json":{"schema":{"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"}}}},"responses":{"200":{"description":"The tool's result"},"400":{"description":"Invalid request"},"401":{"description":"Missing or invalid key"},"402":{"description":"Plan limit reached (see upgrade_url)"},"403":{"description":"This key's permission level does not allow it"},"429":{"description":"Rate or credit limit reached"}}}},"/v1/tools/delete_post":{"post":{"operationId":"delete_post","summary":"Delete a post","description":"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.","requestBody":{"required":true,"content":{"application/json":{"schema":{"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"}}}},"responses":{"200":{"description":"The tool's result"},"400":{"description":"Invalid request"},"401":{"description":"Missing or invalid key"},"402":{"description":"Plan limit reached (see upgrade_url)"},"403":{"description":"This key's permission level does not allow it"},"429":{"description":"Rate or credit limit reached"}}}},"/v1/tools/list_boards":{"post":{"operationId":"list_boards","summary":"Pinterest boards","description":"The Pinterest boards this brand can pin to. A pin must name one.","requestBody":{"required":true,"content":{"application/json":{"schema":{"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"}}}},"responses":{"200":{"description":"The tool's result"},"400":{"description":"Invalid request"},"401":{"description":"Missing or invalid key"},"402":{"description":"Plan limit reached (see upgrade_url)"},"403":{"description":"This key's permission level does not allow it"},"429":{"description":"Rate or credit limit reached"}}}},"/v1/tools/import_media":{"post":{"operationId":"import_media","summary":"Import an image","description":"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.","requestBody":{"required":true,"content":{"application/json":{"schema":{"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"}}}},"responses":{"200":{"description":"The tool's result"},"400":{"description":"Invalid request"},"401":{"description":"Missing or invalid key"},"402":{"description":"Plan limit reached (see upgrade_url)"},"403":{"description":"This key's permission level does not allow it"},"429":{"description":"Rate or credit limit reached"}}}},"/v1/tools/list_pin_templates":{"post":{"operationId":"list_pin_templates","summary":"Pin templates","description":"The free Pinterest pin layouts render_pin_template can make, with what each needs.","requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{},"title":"list_pin_templatesArguments","type":"object"}}}},"responses":{"200":{"description":"The tool's result"},"400":{"description":"Invalid request"},"401":{"description":"Missing or invalid key"},"402":{"description":"Plan limit reached (see upgrade_url)"},"403":{"description":"This key's permission level does not allow it"},"429":{"description":"Rate or credit limit reached"}}}},"/v1/tools/render_pin_template":{"post":{"operationId":"render_pin_template","summary":"Make a pin image","description":"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.","requestBody":{"required":true,"content":{"application/json":{"schema":{"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"}}}},"responses":{"200":{"description":"The tool's result"},"400":{"description":"Invalid request"},"401":{"description":"Missing or invalid key"},"402":{"description":"Plan limit reached (see upgrade_url)"},"403":{"description":"This key's permission level does not allow it"},"429":{"description":"Rate or credit limit reached"}}}},"/v1/tools/create_video":{"post":{"operationId":"create_video","summary":"Make a short video","description":"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.","requestBody":{"required":true,"content":{"application/json":{"schema":{"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"}}}},"responses":{"200":{"description":"The tool's result"},"400":{"description":"Invalid request"},"401":{"description":"Missing or invalid key"},"402":{"description":"Plan limit reached (see upgrade_url)"},"403":{"description":"This key's permission level does not allow it"},"429":{"description":"Rate or credit limit reached"}}}},"/v1/tools/generate_image":{"post":{"operationId":"generate_image","summary":"Generate an image","description":"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.","requestBody":{"required":true,"content":{"application/json":{"schema":{"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"}}}},"responses":{"200":{"description":"The tool's result"},"400":{"description":"Invalid request"},"401":{"description":"Missing or invalid key"},"402":{"description":"Plan limit reached (see upgrade_url)"},"403":{"description":"This key's permission level does not allow it"},"429":{"description":"Rate or credit limit reached"}}}},"/v1/tools/get_job":{"post":{"operationId":"get_job","summary":"Job status","description":"Progress of a job started by another tool (video render, publishing). status is queued,running, done or failed; result holds the output when done.","requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"job_id":{"title":"Job Id","type":"string"}},"required":["job_id"],"title":"get_jobArguments","type":"object"}}}},"responses":{"200":{"description":"The tool's result"},"400":{"description":"Invalid request"},"401":{"description":"Missing or invalid key"},"402":{"description":"Plan limit reached (see upgrade_url)"},"403":{"description":"This key's permission level does not allow it"},"429":{"description":"Rate or credit limit reached"}}}},"/v1/tools/suggest_captions":{"post":{"operationId":"suggest_captions","summary":"Caption suggestions","description":"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.","requestBody":{"required":true,"content":{"application/json":{"schema":{"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"}}}},"responses":{"200":{"description":"The tool's result"},"400":{"description":"Invalid request"},"401":{"description":"Missing or invalid key"},"402":{"description":"Plan limit reached (see upgrade_url)"},"403":{"description":"This key's permission level does not allow it"},"429":{"description":"Rate or credit limit reached"}}}},"/v1/tools/ask_strategist":{"post":{"operationId":"ask_strategist","summary":"Ask Cadenzova's strategist","description":"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.","requestBody":{"required":true,"content":{"application/json":{"schema":{"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"}}}},"responses":{"200":{"description":"The tool's result"},"400":{"description":"Invalid request"},"401":{"description":"Missing or invalid key"},"402":{"description":"Plan limit reached (see upgrade_url)"},"403":{"description":"This key's permission level does not allow it"},"429":{"description":"Rate or credit limit reached"}}}},"/v1/tools/get_product":{"post":{"operationId":"get_product","summary":"Product details","description":"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).","requestBody":{"required":true,"content":{"application/json":{"schema":{"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"}}}},"responses":{"200":{"description":"The tool's result"},"400":{"description":"Invalid request"},"401":{"description":"Missing or invalid key"},"402":{"description":"Plan limit reached (see upgrade_url)"},"403":{"description":"This key's permission level does not allow it"},"429":{"description":"Rate or credit limit reached"}}}},"/v1/tools/create_product":{"post":{"operationId":"create_product","summary":"Add a product","description":"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.","requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"product":{"$ref":"#/components/schemas/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"}}}},"responses":{"200":{"description":"The tool's result"},"400":{"description":"Invalid request"},"401":{"description":"Missing or invalid key"},"402":{"description":"Plan limit reached (see upgrade_url)"},"403":{"description":"This key's permission level does not allow it"},"429":{"description":"Rate or credit limit reached"}}}},"/v1/tools/import_product":{"post":{"operationId":"import_product","summary":"Import a product from its page","description":"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.","requestBody":{"required":true,"content":{"application/json":{"schema":{"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"}}}},"responses":{"200":{"description":"The tool's result"},"400":{"description":"Invalid request"},"401":{"description":"Missing or invalid key"},"402":{"description":"Plan limit reached (see upgrade_url)"},"403":{"description":"This key's permission level does not allow it"},"429":{"description":"Rate or credit limit reached"}}}},"/v1/tools/update_product":{"post":{"operationId":"update_product","summary":"Update a product","description":"Changes a product's name, description, price, link, status, priority, call to action,tags or sale. Only the fields sent change.","requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"product_id":{"description":"product_id from list_products","title":"Product Id","type":"string"},"changes":{"$ref":"#/components/schemas/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"}}}},"responses":{"200":{"description":"The tool's result"},"400":{"description":"Invalid request"},"401":{"description":"Missing or invalid key"},"402":{"description":"Plan limit reached (see upgrade_url)"},"403":{"description":"This key's permission level does not allow it"},"429":{"description":"Rate or credit limit reached"}}}},"/v1/tools/delete_product":{"post":{"operationId":"delete_product","summary":"Delete a product","description":"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.","requestBody":{"required":true,"content":{"application/json":{"schema":{"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"}}}},"responses":{"200":{"description":"The tool's result"},"400":{"description":"Invalid request"},"401":{"description":"Missing or invalid key"},"402":{"description":"Plan limit reached (see upgrade_url)"},"403":{"description":"This key's permission level does not allow it"},"429":{"description":"Rate or credit limit reached"}}}},"/v1/tools/add_product_images":{"post":{"operationId":"add_product_images","summary":"Add product photos","description":"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.","requestBody":{"required":true,"content":{"application/json":{"schema":{"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"}}}},"responses":{"200":{"description":"The tool's result"},"400":{"description":"Invalid request"},"401":{"description":"Missing or invalid key"},"402":{"description":"Plan limit reached (see upgrade_url)"},"403":{"description":"This key's permission level does not allow it"},"429":{"description":"Rate or credit limit reached"}}}},"/v1/tools/order_product_images":{"post":{"operationId":"order_product_images","summary":"Order product photos","description":"Sets the order of a product's photos; the first is the main photo. Photos left out keeptheir place after the ones named.","requestBody":{"required":true,"content":{"application/json":{"schema":{"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"}}}},"responses":{"200":{"description":"The tool's result"},"400":{"description":"Invalid request"},"401":{"description":"Missing or invalid key"},"402":{"description":"Plan limit reached (see upgrade_url)"},"403":{"description":"This key's permission level does not allow it"},"429":{"description":"Rate or credit limit reached"}}}},"/v1/tools/tag_product_image":{"post":{"operationId":"tag_product_image","summary":"Tag a product photo","description":"Labels one product photo (e.g. 'lifestyle', 'packaging', 'blue') so posts about thattopic pick it. Replaces the photo's tags.","requestBody":{"required":true,"content":{"application/json":{"schema":{"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"}}}},"responses":{"200":{"description":"The tool's result"},"400":{"description":"Invalid request"},"401":{"description":"Missing or invalid key"},"402":{"description":"Plan limit reached (see upgrade_url)"},"403":{"description":"This key's permission level does not allow it"},"429":{"description":"Rate or credit limit reached"}}}},"/v1/tools/remove_product_image":{"post":{"operationId":"remove_product_image","summary":"Remove a product photo","description":"Removes one photo from a product. Refused while a scheduled post still uses it.","requestBody":{"required":true,"content":{"application/json":{"schema":{"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"}}}},"responses":{"200":{"description":"The tool's result"},"400":{"description":"Invalid request"},"401":{"description":"Missing or invalid key"},"402":{"description":"Plan limit reached (see upgrade_url)"},"403":{"description":"This key's permission level does not allow it"},"429":{"description":"Rate or credit limit reached"}}}},"/v1/tools/upload_image":{"post":{"operationId":"upload_image","summary":"Upload an image","description":"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.","requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"file":{"anyOf":[{"$ref":"#/components/schemas/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"}}}},"responses":{"200":{"description":"The tool's result"},"400":{"description":"Invalid request"},"401":{"description":"Missing or invalid key"},"402":{"description":"Plan limit reached (see upgrade_url)"},"403":{"description":"This key's permission level does not allow it"},"429":{"description":"Rate or credit limit reached"}}}},"/v1/tools/create_upload_link":{"post":{"operationId":"create_upload_link","summary":"Get an upload link","description":"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.","requestBody":{"required":true,"content":{"application/json":{"schema":{"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"}}}},"responses":{"200":{"description":"The tool's result"},"400":{"description":"Invalid request"},"401":{"description":"Missing or invalid key"},"402":{"description":"Plan limit reached (see upgrade_url)"},"403":{"description":"This key's permission level does not allow it"},"429":{"description":"Rate or credit limit reached"}}}},"/v1/tools/finish_upload":{"post":{"operationId":"finish_upload","summary":"Finish an upload","description":"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).","requestBody":{"required":true,"content":{"application/json":{"schema":{"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"}}}},"responses":{"200":{"description":"The tool's result"},"400":{"description":"Invalid request"},"401":{"description":"Missing or invalid key"},"402":{"description":"Plan limit reached (see upgrade_url)"},"403":{"description":"This key's permission level does not allow it"},"429":{"description":"Rate or credit limit reached"}}}},"/v1/tools/update_brand_settings":{"post":{"operationId":"update_brand_settings","summary":"Update brand settings","description":"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.","requestBody":{"required":true,"content":{"application/json":{"schema":{"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"}}}},"responses":{"200":{"description":"The tool's result"},"400":{"description":"Invalid request"},"401":{"description":"Missing or invalid key"},"402":{"description":"Plan limit reached (see upgrade_url)"},"403":{"description":"This key's permission level does not allow it"},"429":{"description":"Rate or credit limit reached"}}}},"/v1/tools/list_campaigns":{"post":{"operationId":"list_campaigns","summary":"List campaigns","description":"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.","requestBody":{"required":true,"content":{"application/json":{"schema":{"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"}}}},"responses":{"200":{"description":"The tool's result"},"400":{"description":"Invalid request"},"401":{"description":"Missing or invalid key"},"402":{"description":"Plan limit reached (see upgrade_url)"},"403":{"description":"This key's permission level does not allow it"},"429":{"description":"Rate or credit limit reached"}}}},"/v1/tools/create_campaign":{"post":{"operationId":"create_campaign","summary":"Create a campaign","description":"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.","requestBody":{"required":true,"content":{"application/json":{"schema":{"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"}}}},"responses":{"200":{"description":"The tool's result"},"400":{"description":"Invalid request"},"401":{"description":"Missing or invalid key"},"402":{"description":"Plan limit reached (see upgrade_url)"},"403":{"description":"This key's permission level does not allow it"},"429":{"description":"Rate or credit limit reached"}}}},"/v1/tools/update_campaign":{"post":{"operationId":"update_campaign","summary":"Update a campaign","description":"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.","requestBody":{"required":true,"content":{"application/json":{"schema":{"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"}}}},"responses":{"200":{"description":"The tool's result"},"400":{"description":"Invalid request"},"401":{"description":"Missing or invalid key"},"402":{"description":"Plan limit reached (see upgrade_url)"},"403":{"description":"This key's permission level does not allow it"},"429":{"description":"Rate or credit limit reached"}}}},"/v1/tools/get_campaign_results":{"post":{"operationId":"get_campaign_results","summary":"Campaign results","description":"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.","requestBody":{"required":true,"content":{"application/json":{"schema":{"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"}}}},"responses":{"200":{"description":"The tool's result"},"400":{"description":"Invalid request"},"401":{"description":"Missing or invalid key"},"402":{"description":"Plan limit reached (see upgrade_url)"},"403":{"description":"This key's permission level does not allow it"},"429":{"description":"Rate or credit limit reached"}}}},"/v1/tools/get_post_results":{"post":{"operationId":"get_post_results","summary":"Post results","description":"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.","requestBody":{"required":true,"content":{"application/json":{"schema":{"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"}}}},"responses":{"200":{"description":"The tool's result"},"400":{"description":"Invalid request"},"401":{"description":"Missing or invalid key"},"402":{"description":"Plan limit reached (see upgrade_url)"},"403":{"description":"This key's permission level does not allow it"},"429":{"description":"Rate or credit limit reached"}}}},"/v1/tools/get_product_results":{"post":{"operationId":"get_product_results","summary":"Product results","description":"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.","requestBody":{"required":true,"content":{"application/json":{"schema":{"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"}}}},"responses":{"200":{"description":"The tool's result"},"400":{"description":"Invalid request"},"401":{"description":"Missing or invalid key"},"402":{"description":"Plan limit reached (see upgrade_url)"},"403":{"description":"This key's permission level does not allow it"},"429":{"description":"Rate or credit limit reached"}}}},"/v1/tools/get_audience":{"post":{"operationId":"get_audience","summary":"Audience growth","description":"Follower counts over time per platform (weekly snapshots, about six months) with the trend and the next milestone forecast.","requestBody":{"required":true,"content":{"application/json":{"schema":{"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"}}}},"responses":{"200":{"description":"The tool's result"},"400":{"description":"Invalid request"},"401":{"description":"Missing or invalid key"},"402":{"description":"Plan limit reached (see upgrade_url)"},"403":{"description":"This key's permission level does not allow it"},"429":{"description":"Rate or credit limit reached"}}}},"/v1/tools/subscribe_webhook":{"post":{"operationId":"subscribe_webhook","summary":"Subscribe a webhook","description":"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.","requestBody":{"required":true,"content":{"application/json":{"schema":{"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"}}}},"responses":{"200":{"description":"The tool's result"},"400":{"description":"Invalid request"},"401":{"description":"Missing or invalid key"},"402":{"description":"Plan limit reached (see upgrade_url)"},"403":{"description":"This key's permission level does not allow it"},"429":{"description":"Rate or credit limit reached"}}}},"/v1/tools/unsubscribe_webhook":{"post":{"operationId":"unsubscribe_webhook","summary":"Remove a webhook","description":"Deletes a webhook made with subscribe_webhook (or on the AI agents page), by id.","requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"webhook_id":{"title":"Webhook Id","type":"string"}},"required":["webhook_id"],"title":"unsubscribe_webhookArguments","type":"object"}}}},"responses":{"200":{"description":"The tool's result"},"400":{"description":"Invalid request"},"401":{"description":"Missing or invalid key"},"402":{"description":"Plan limit reached (see upgrade_url)"},"403":{"description":"This key's permission level does not allow it"},"429":{"description":"Rate or credit limit reached"}}}}}}