Skip to content
Docs menu

API reference

Unique posts

Per-creator variants: with unique posts on, every creator gets a post with its own angle, caption and design. Review, edit, rewrite or approve them.

GET/v1/campaigns/{id}/variants

List a campaign's unique posts

Every variant written for the campaign's creators with its placement, angle, design and uniqueness score, plus counts by variant_status and the placements whose post is still being written (writing).

Scopecampaigns:readMCP toollist_campaign_variants
Path parameters
idrequired
stringCampaign ID
Request
curl "https://sqa.coboost.ai/api/v1/campaigns/id_123/variants" \
  -H "Authorization: Bearer $COBOOST_API_KEY"
Response · 200
{
  "object": "variant_list",
  "campaign_id": "cmf0cmp001",
  "enabled": true,
  "config": {
    "angles": [
      "tutorial",
      "routine"
    ],
    "design_template_ids": [
      "cmf0dt0002"
    ],
    "caption_template_ids": [],
    "brief": "Glow serum: 10% niacinamide, fragrance-free, $34.",
    "must_include": {
      "hashtags": [
        "ad"
      ],
      "mentions": [],
      "cta": null,
      "claims": []
    },
    "avoid": [],
    "tailor_to_creator": true,
    "review": "review",
    "fallback_to_base": true,
    "slide_count": 5
  },
  "counts": {
    "awaiting_review": 1,
    "approved": 4,
    "writing": 2
  },
  "writing": [
    {
      "placement_id": "cmf0plc007",
      "account": {
        "id": "cmf0acc007",
        "username": "techbyleo",
        "avatar_url": null
      }
    }
  ],
  "data": [
    {
      "id": "cmf0crt101",
      "object": "variant",
      "name": "Serum carousel for @maya.creates",
      "campaign_id": "cmf0cmp001",
      "template_id": null,
      "persona_id": null,
      "format": "ig_carousel",
      "caption": "I swapped my evening serum for two weeks. Here's what changed (and what didn't). Fragrance-free, which my skin needed. #ad #lumenglow @lumen.skincare",
      "hashtags": [
        "ad",
        "lumenglow",
        "skincareroutine"
      ],
      "cta": "Shop the launch",
      "link_url": "https://lumen.example/serum",
      "media": [
        {
          "asset_id": "cmf0med101",
          "url": "https://coboost.ai/uploads/ws/slide-1.png",
          "type": "image",
          "width": 1080,
          "height": 1350
        }
      ],
      "status": "ready",
      "ai_generated": true,
      "version": 1,
      "kind": "variant",
      "parent_id": "cmf0crt001",
      "variant_for_account_id": "cmf0acc001",
      "angle": "routine",
      "design_template_id": "cmf0dt0002",
      "caption_template_id": null,
      "variant_status": "awaiting_review",
      "design_id": "cmf0dsn101",
      "created_at": "2026-11-01T09:00:00.000Z",
      "updated_at": "2026-11-01T09:00:00.000Z",
      "placement": {
        "id": "cmf0plc001",
        "status": "drafting",
        "origin": "matched",
        "price_cents": 45000,
        "account": {
          "id": "cmf0acc001",
          "username": "maya.creates",
          "avatar_url": null,
          "followers": 48200
        }
      },
      "design": {
        "id": "cmf0dsn101",
        "name": "Autumn glow launch · @maya.creates",
        "thumbnail_url": null
      },
      "generation": {
        "similarity": 0.12,
        "threshold": 0.35,
        "attempts": 1,
        "credits": 12,
        "model": "claude-opus-5-5",
        "hook": "I swapped my evening serum for two weeks",
        "error": null,
        "design_error": null,
        "render_error": null,
        "render_warnings": []
      }
    }
  ]
}
POST/v1/campaigns/{id}/variants/approve

Approve all waiting posts

Approves every variant of the campaign that is awaiting_review, skipping any that can't go yet (skipped), such as a post with banned words on its slides. Posts with a design get their images first; each placement then continues to the creator (or is scheduled for accepted open-campaign slots).

Scopecampaigns:writeMCP toolapprove_all_variants
Path parameters
idrequired
stringCampaign ID
Request
curl -X POST "https://sqa.coboost.ai/api/v1/campaigns/id_123/variants/approve" \
  -H "Authorization: Bearer $COBOOST_API_KEY"
Response · 200
{
  "object": "variant_approval",
  "campaign_id": "cmf0cmp001",
  "approved": 6
}
POST/v1/variants/{id}/approve

Approve a unique post

Approves a variant that is awaiting_review (or a hand-fixed failed one). A post with a design moves to rendering: its design is frozen and its images made, then creative.variant_rendered fires. Its placement then continues to the creator's review, is scheduled for an accepted open-campaign slot, or goes back to a creator who asked for changes. Slides using a banned word are refused until the design is edited.

Scopecampaigns:writeMCP toolapprove_variant
Path parameters
idrequired
stringVariant (creative) ID
Request
curl -X POST "https://sqa.coboost.ai/api/v1/variants/id_123/approve" \
  -H "Authorization: Bearer $COBOOST_API_KEY"
Response · 200
{
  "id": "cmf0crt101",
  "object": "variant",
  "name": "Serum carousel for @maya.creates",
  "campaign_id": "cmf0cmp001",
  "template_id": null,
  "persona_id": null,
  "format": "ig_carousel",
  "caption": "I swapped my evening serum for two weeks. Here's what changed (and what didn't). Fragrance-free, which my skin needed. #ad #lumenglow @lumen.skincare",
  "hashtags": [
    "ad",
    "lumenglow",
    "skincareroutine"
  ],
  "cta": "Shop the launch",
  "link_url": "https://lumen.example/serum",
  "media": [
    {
      "asset_id": "cmf0med101",
      "url": "https://coboost.ai/uploads/ws/slide-1.png",
      "type": "image",
      "width": 1080,
      "height": 1350
    }
  ],
  "status": "ready",
  "ai_generated": true,
  "version": 1,
  "kind": "variant",
  "parent_id": "cmf0crt001",
  "variant_for_account_id": "cmf0acc001",
  "angle": "routine",
  "design_template_id": "cmf0dt0002",
  "caption_template_id": null,
  "variant_status": "approved",
  "design_id": "cmf0dsn101",
  "created_at": "2026-11-01T09:00:00.000Z",
  "updated_at": "2026-11-01T09:00:00.000Z"
}
PATCH/v1/variants/{id}

Edit a unique post

Hand-edit a variant's caption, hashtags and CTA while it's awaiting review, failed, or when the creator requested changes. The caption must still pass the format's specs; the uniqueness score is recomputed. A failed variant moves back to awaiting_review.

Scopecampaigns:writeMCP toolupdate_variant
Path parameters
idrequired
stringVariant (creative) ID
Body
captionrequired
string
hashtagsrequired
string[]With or without the leading #
cta
string | null
Request
curl -X PATCH "https://sqa.coboost.ai/api/v1/variants/id_123" \
  -H "Authorization: Bearer $COBOOST_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"caption":"Two weeks with the Glow serum: my honest notes. #ad @lumen.skincare","hashtags":["ad","lumenglow"],"cta":"Shop the launch"}'
Response · 200
{
  "id": "cmf0crt101",
  "object": "variant",
  "name": "Serum carousel for @maya.creates",
  "campaign_id": "cmf0cmp001",
  "template_id": null,
  "persona_id": null,
  "format": "ig_carousel",
  "caption": "I swapped my evening serum for two weeks. Here's what changed (and what didn't). Fragrance-free, which my skin needed. #ad #lumenglow @lumen.skincare",
  "hashtags": [
    "ad",
    "lumenglow",
    "skincareroutine"
  ],
  "cta": "Shop the launch",
  "link_url": "https://lumen.example/serum",
  "media": [
    {
      "asset_id": "cmf0med101",
      "url": "https://coboost.ai/uploads/ws/slide-1.png",
      "type": "image",
      "width": 1080,
      "height": 1350
    }
  ],
  "status": "ready",
  "ai_generated": true,
  "version": 2,
  "kind": "variant",
  "parent_id": "cmf0crt001",
  "variant_for_account_id": "cmf0acc001",
  "angle": "routine",
  "design_template_id": "cmf0dt0002",
  "caption_template_id": null,
  "variant_status": "awaiting_review",
  "design_id": "cmf0dsn101",
  "created_at": "2026-11-01T09:00:00.000Z",
  "updated_at": "2026-11-01T09:00:00.000Z"
}
POST/v1/variants/{id}/regenerate

Rewrite a unique post

Queues a rewrite, optionally with another angle, design template or revision notes (the creator's change request is used when you send none). The current version is replaced when the new one is ready (creative.variant_ready); if the rewrite fails the current version is kept. Up to 5 rewrites per post per hour. Uses AI credits.

Scopecampaigns:writeMCP toolregenerate_variant
Path parameters
idrequired
stringVariant (creative) ID
Body
angle
string | nullcreative_angle key
design_template_id
string | nullDesign template for the visuals; null = keep the base creative's media
instructions
string | nullRevision notes for the AI
Request
curl -X POST "https://sqa.coboost.ai/api/v1/variants/id_123/regenerate" \
  -H "Authorization: Bearer $COBOOST_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"angle":"review","instructions":"Shorter, and mention it's fragrance-free."}'
Response · 202
{
  "object": "variant_regeneration",
  "id": "cmf0crt101",
  "variant_status": "generating",
  "queued": true
}
POST/v1/variants/{id}/use-base

Send the base creative instead

Skips a variant that's waiting for review: the placement gets the campaign's base creative and continues to the creator. The variant is archived (variant_status: replaced).

Scopecampaigns:writeMCP tooluse_base_creative
Path parameters
idrequired
stringVariant (creative) ID
Request
curl -X POST "https://sqa.coboost.ai/api/v1/variants/id_123/use-base" \
  -H "Authorization: Bearer $COBOOST_API_KEY"
Response · 200
{
  "id": "cmf0crt101",
  "object": "variant",
  "name": "Serum carousel for @maya.creates",
  "campaign_id": "cmf0cmp001",
  "template_id": null,
  "persona_id": null,
  "format": "ig_carousel",
  "caption": "I swapped my evening serum for two weeks. Here's what changed (and what didn't). Fragrance-free, which my skin needed. #ad #lumenglow @lumen.skincare",
  "hashtags": [
    "ad",
    "lumenglow",
    "skincareroutine"
  ],
  "cta": "Shop the launch",
  "link_url": "https://lumen.example/serum",
  "media": [
    {
      "asset_id": "cmf0med101",
      "url": "https://coboost.ai/uploads/ws/slide-1.png",
      "type": "image",
      "width": 1080,
      "height": 1350
    }
  ],
  "status": "archived",
  "ai_generated": true,
  "version": 1,
  "kind": "variant",
  "parent_id": "cmf0crt001",
  "variant_for_account_id": "cmf0acc001",
  "angle": "routine",
  "design_template_id": "cmf0dt0002",
  "caption_template_id": null,
  "variant_status": "replaced",
  "design_id": "cmf0dsn101",
  "created_at": "2026-11-01T09:00:00.000Z",
  "updated_at": "2026-11-01T09:00:00.000Z"
}