Skip to content
Docs menu

API reference

Creatives

Ad creatives (caption, hashtags, media) attached to campaigns, the media library, and Unsplash stock photos to add to it.

GET/v1/media

List media

Images and videos in the workspace's media library, newest first. Use an item's id as media[].asset_id and its url in a creative. To show a file, use display_url: for stock photos that's Unsplash's own image URL, as its guidelines require. source says where a file came from (upload, ai for generated images, stock for stock photos); stock photos carry the photographer's credit in attribution, to show wherever you show the photo. Each time you use a stock photo that's already in the library, call POST /v1/stock-photos/{id}/add with its attribution.photo_id so the download is counted.

Scopecreatives:readMCP toollist_media
Query parameters
limit
integerPage size, 1–100 (default 25)
cursor
stringnext_cursor from the previous page
type
"image" | "video"
folder
stringFolder name
search
stringMatch on the file name
Request
curl "https://sqa.coboost.ai/api/v1/media" \
  -H "Authorization: Bearer $COBOOST_API_KEY"
Response · 200
{
  "object": "list",
  "data": [
    {
      "id": "cmf0med001",
      "object": "media",
      "url": "https://coboost.ai/uploads/ws/serum.jpg",
      "display_url": "https://coboost.ai/uploads/ws/serum.jpg",
      "filename": "serum.jpg",
      "type": "image",
      "mime_type": "image/jpeg",
      "size_bytes": 248120,
      "width": 1080,
      "height": 1350,
      "duration_sec": null,
      "folder": "Autumn launch",
      "source": "upload",
      "attribution": null,
      "created_at": "2026-10-20T10:00:00.000Z"
    }
  ],
  "has_more": false,
  "next_cursor": null
}
POST/v1/media

Add media from a URL

Downloads a public https:// image or video into the media library. Files are checked by content (JPEG, PNG, WebP, GIF, MP4, MOV, WebM) and size, and count toward the plan's storage. For videos, pass width, height and duration_sec. Several imports can run at once; each holds room for the file it downloads, and when too many large files are on their way at once it returns 429 rate_limited with a Retry-After header, before or during the download. Nothing is saved then: retry after that many seconds.

Scopecreatives:writeMCP tooladd_media_from_url
Body
urlrequired
stringPublic https:// URL of the file
filename
string
folder
string | null
width
integer
height
integer
duration_sec
number
Request
curl -X POST "https://sqa.coboost.ai/api/v1/media" \
  -H "Authorization: Bearer $COBOOST_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url":"https://cdn.lumen.example/serum.jpg","folder":"Autumn launch"}'
Response · 201
{
  "id": "cmf0med001",
  "object": "media",
  "url": "https://coboost.ai/uploads/ws/serum.jpg",
  "display_url": "https://coboost.ai/uploads/ws/serum.jpg",
  "filename": "serum.jpg",
  "type": "image",
  "mime_type": "image/jpeg",
  "size_bytes": 248120,
  "width": 1080,
  "height": 1350,
  "duration_sec": null,
  "folder": "Autumn launch",
  "source": "upload",
  "attribution": null,
  "created_at": "2026-10-20T10:00:00.000Z"
}
GET/v1/media/{id}

Get media

One file from the media library, in the same shape as GET /v1/media. Use its id as media[].asset_id and its url in a creative.

Scopecreatives:readMCP toolget_media
Path parameters
idrequired
stringMedia ID
Request
curl "https://sqa.coboost.ai/api/v1/media/id_123" \
  -H "Authorization: Bearer $COBOOST_API_KEY"
Response · 200
{
  "id": "cmf0med001",
  "object": "media",
  "url": "https://coboost.ai/uploads/ws/serum.jpg",
  "display_url": "https://coboost.ai/uploads/ws/serum.jpg",
  "filename": "serum.jpg",
  "type": "image",
  "mime_type": "image/jpeg",
  "size_bytes": 248120,
  "width": 1080,
  "height": 1350,
  "duration_sec": null,
  "folder": "Autumn launch",
  "source": "upload",
  "attribution": null,
  "created_at": "2026-10-20T10:00:00.000Z"
}
POST/v1/stock-photos/{id}/add

Add a stock photo

Saves an Unsplash photo (an id from GET /v1/stock-photos) to the media library with the photographer's credit in attribution, and counts the download with Unsplash. A photo the workspace already added is returned again rather than stored twice, and its download is counted again, so call this each time a photo is used. Use the returned id and url in a design or creative. To show the photo, use display_url (Unsplash's own image URL) with attribution.text and its links.

Scopecreatives:writeMCP tooladd_stock_photo
Path parameters
idrequired
stringUnsplash photo ID
Body
folder
string | nullMedia library folder
Request
curl -X POST "https://sqa.coboost.ai/api/v1/stock-photos/id_123/add" \
  -H "Authorization: Bearer $COBOOST_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"folder":"Autumn launch"}'
Response · 201
{
  "id": "cmf0med002",
  "object": "media",
  "url": "https://coboost.ai/uploads/ws/unsplash-annaphoto-Zx81KqL0.jpg",
  "display_url": "https://images.unsplash.com/photo-1600000000000?ixid=abc&w=1080",
  "filename": "unsplash-annaphoto-Zx81KqL0.jpg",
  "type": "image",
  "mime_type": "image/jpeg",
  "size_bytes": 248120,
  "width": 2160,
  "height": 2700,
  "duration_sec": null,
  "folder": null,
  "source": "stock",
  "attribution": {
    "provider": "unsplash",
    "photo_id": "Zx81KqL0",
    "photographer_name": "Anna Lee",
    "photographer_username": "annaphoto",
    "photographer_url": "https://unsplash.com/@annaphoto?utm_source=coboost&utm_medium=referral",
    "photo_url": "https://unsplash.com/photos/Zx81KqL0?utm_source=coboost&utm_medium=referral",
    "source_name": "Unsplash",
    "source_url": "https://unsplash.com/?utm_source=coboost&utm_medium=referral",
    "text": "Photo by Anna Lee on Unsplash"
  },
  "created_at": "2026-10-20T10:00:00.000Z"
}
DELETE/v1/media/{id}

Delete media

Deletes a file from the library. Refused while a ready creative, a design, a design template, a brand kit, the workspace logo or a booked post uses it.

Scopecreatives:writeMCP tooldelete_media
Path parameters
idrequired
stringMedia ID
Request
curl -X DELETE "https://sqa.coboost.ai/api/v1/media/id_123" \
  -H "Authorization: Bearer $COBOOST_API_KEY"
Response · 200
{
  "id": "cmf0med001",
  "object": "media",
  "deleted": true
}
GET/v1/creatives

List creatives

Creatives in the library, most recently updated first. Archived creatives are excluded unless status=archived or status=all. Unique posts written per creator (kind: variant) are only listed with kind=variant or kind=all.

Scopecreatives:readMCP toollist_creatives
Query parameters
limit
integerPage size, 1–100 (default 25)
cursor
stringnext_cursor from the previous page
status
"draft" | "ready" | "archived" | "all"
format
stringFormat key
campaign_id
string
search
stringMatch on name or caption
kind
"standard" | "variant" | "all"standard (default) = your library; variant = unique posts written per creator; all
Request
curl "https://sqa.coboost.ai/api/v1/creatives" \
  -H "Authorization: Bearer $COBOOST_API_KEY"
Response · 200
{
  "object": "list",
  "data": [
    {
      "id": "cmf0crt001",
      "object": "creative",
      "name": "Serum reel",
      "campaign_id": "cmf0cmp001",
      "template_id": null,
      "persona_id": null,
      "format": "ig_reel",
      "caption": "Glow season is here. #ad",
      "hashtags": [
        "ad",
        "skincare"
      ],
      "cta": "Shop now",
      "link_url": "https://lumen.example/serum",
      "media": [
        {
          "asset_id": "cmf0med001",
          "url": "https://coboost.ai/uploads/ws/serum.mp4",
          "display_url": "https://coboost.ai/uploads/ws/serum.mp4",
          "type": "video",
          "width": 1080,
          "height": 1920,
          "duration_sec": 21,
          "source": "upload",
          "attribution": null
        }
      ],
      "status": "ready",
      "ai_generated": false,
      "version": 2,
      "kind": "standard",
      "parent_id": null,
      "variant_for_account_id": null,
      "angle": null,
      "design_template_id": null,
      "caption_template_id": null,
      "variant_status": null,
      "design_id": null,
      "created_at": "2026-10-20T10:00:00.000Z",
      "updated_at": "2026-10-21T09:00:00.000Z",
      "campaign": {
        "id": "cmf0cmp001",
        "name": "Autumn glow launch",
        "status": "draft"
      },
      "persona": null,
      "placement_count": 0
    }
  ],
  "has_more": false,
  "next_cursor": null
}
POST/v1/creatives

Create a creative

Creates a creative in the library, optionally attached to a campaign. Drafts can use draft_only formats; ready creatives must pass the format's caption, hashtag and media specs and can be sent to creators. An ad label that's a hashtag (such as #ad) opens the published caption, so it counts toward the hashtag limit.

Scopecreatives:writeMCP toolcreate_creative
Body
namerequired
string
formatrequired
stringFormat key, e.g. ig_reel (see GET /v1/formats)
caption
string
hashtags
string[]With or without the leading #
cta
string | nullCall to action, e.g. Shop now
link_url
string | null
media
object[]
persona_id
string | null
template_id
string | null
campaign_id
string | nullAttach to a campaign
ai_generated
booleanDisclose AI-generated content (some creators decline it). Creatives saved from an AI-assisted design and per-creator variants are always marked
status
"draft" | "ready"ready validates against the format specs
Request
curl -X POST "https://sqa.coboost.ai/api/v1/creatives" \
  -H "Authorization: Bearer $COBOOST_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name":"Serum reel","format":"ig_reel","caption":"Glow season is here. #ad","hashtags":["skincare"],"cta":"Shop now","link_url":"https://lumen.example/serum","media":[{"url":"https://cdn.example/serum.mp4","type":"video","width":1080,"height":1920,"duration_sec":21}],"campaign_id":"cmf0cmp001","status":"ready"}'
Response · 201
{
  "id": "cmf0crt001",
  "object": "creative",
  "name": "Serum reel",
  "campaign_id": "cmf0cmp001",
  "template_id": null,
  "persona_id": null,
  "format": "ig_reel",
  "caption": "Glow season is here. #ad",
  "hashtags": [
    "ad",
    "skincare"
  ],
  "cta": "Shop now",
  "link_url": "https://lumen.example/serum",
  "media": [
    {
      "asset_id": "cmf0med001",
      "url": "https://coboost.ai/uploads/ws/serum.mp4",
      "display_url": "https://coboost.ai/uploads/ws/serum.mp4",
      "type": "video",
      "width": 1080,
      "height": 1920,
      "duration_sec": 21,
      "source": "upload",
      "attribution": null
    }
  ],
  "status": "ready",
  "ai_generated": false,
  "version": 2,
  "kind": "standard",
  "parent_id": null,
  "variant_for_account_id": null,
  "angle": null,
  "design_template_id": null,
  "caption_template_id": null,
  "variant_status": null,
  "design_id": null,
  "created_at": "2026-10-20T10:00:00.000Z",
  "updated_at": "2026-10-21T09:00:00.000Z",
  "campaign": {
    "id": "cmf0cmp001",
    "name": "Autumn glow launch",
    "status": "draft"
  },
  "persona": null,
  "placement_count": 0
}
GET/v1/creatives/{id}

Get a creative

Retrieve one creative. Each media item's url is the file that publishes. A stock photo from the media library (source: stock) also has display_url, Unsplash's own image, and attribution, the photographer's credit: show the photo from display_url with attribution.text linked to photographer_url and source_url wherever you show it. Both are set from the library file; anything sent for them is ignored.

Scopecreatives:readMCP toolget_creative
Path parameters
idrequired
stringCreative ID
Request
curl "https://sqa.coboost.ai/api/v1/creatives/id_123" \
  -H "Authorization: Bearer $COBOOST_API_KEY"
Response · 200
{
  "id": "cmf0crt001",
  "object": "creative",
  "name": "Serum reel",
  "campaign_id": "cmf0cmp001",
  "template_id": null,
  "persona_id": null,
  "format": "ig_reel",
  "caption": "Glow season is here. #ad",
  "hashtags": [
    "ad",
    "skincare"
  ],
  "cta": "Shop now",
  "link_url": "https://lumen.example/serum",
  "media": [
    {
      "asset_id": "cmf0med001",
      "url": "https://coboost.ai/uploads/ws/serum.mp4",
      "display_url": "https://coboost.ai/uploads/ws/serum.mp4",
      "type": "video",
      "width": 1080,
      "height": 1920,
      "duration_sec": 21,
      "source": "upload",
      "attribution": null
    }
  ],
  "status": "ready",
  "ai_generated": false,
  "version": 2,
  "kind": "standard",
  "parent_id": null,
  "variant_for_account_id": null,
  "angle": null,
  "design_template_id": null,
  "caption_template_id": null,
  "variant_status": null,
  "design_id": null,
  "created_at": "2026-10-20T10:00:00.000Z",
  "updated_at": "2026-10-21T09:00:00.000Z",
  "campaign": {
    "id": "cmf0cmp001",
    "name": "Autumn glow launch",
    "status": "draft"
  },
  "persona": null,
  "placement_count": 0
}
PATCH/v1/creatives/{id}

Update a creative

Update fields; omitted fields keep their values. Content changes bump version. The format can't change once a placement is scheduled or published, and a unique post keeps its campaign and persona. Set status to archived to archive, or back to draft to restore.

Scopecreatives:writeMCP toolupdate_creative
Path parameters
idrequired
stringCreative ID
Body
name
string
format
stringFormat key, e.g. ig_reel (see GET /v1/formats)
caption
string
hashtags
string[]With or without the leading #
cta
string | nullCall to action, e.g. Shop now
link_url
string | null
media
object[]
persona_id
string | null
template_id
string | null
campaign_id
string | nullAttach to a campaign
ai_generated
booleanDisclose AI-generated content (some creators decline it). Creatives saved from an AI-assisted design and per-creator variants are always marked
status
"draft" | "ready" | "archived"ready validates against the format specs; archived hides it
Request
curl -X PATCH "https://sqa.coboost.ai/api/v1/creatives/id_123" \
  -H "Authorization: Bearer $COBOOST_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"caption":"#ad Glow season is here.","status":"ready"}'
Response · 200
{
  "id": "cmf0crt001",
  "object": "creative",
  "name": "Serum reel",
  "campaign_id": "cmf0cmp001",
  "template_id": null,
  "persona_id": null,
  "format": "ig_reel",
  "caption": "Glow season is here. #ad",
  "hashtags": [
    "ad",
    "skincare"
  ],
  "cta": "Shop now",
  "link_url": "https://lumen.example/serum",
  "media": [
    {
      "asset_id": "cmf0med001",
      "url": "https://coboost.ai/uploads/ws/serum.mp4",
      "display_url": "https://coboost.ai/uploads/ws/serum.mp4",
      "type": "video",
      "width": 1080,
      "height": 1920,
      "duration_sec": 21,
      "source": "upload",
      "attribution": null
    }
  ],
  "status": "ready",
  "ai_generated": false,
  "version": 3,
  "kind": "standard",
  "parent_id": null,
  "variant_for_account_id": null,
  "angle": null,
  "design_template_id": null,
  "caption_template_id": null,
  "variant_status": null,
  "design_id": null,
  "created_at": "2026-10-20T10:00:00.000Z",
  "updated_at": "2026-10-21T09:00:00.000Z",
  "campaign": {
    "id": "cmf0cmp001",
    "name": "Autumn glow launch",
    "status": "draft"
  },
  "persona": null,
  "placement_count": 0
}
DELETE/v1/creatives/{id}

Delete a creative

Permanently deletes a creative that has never been used in a placement. Archive it otherwise.

Scopecreatives:writeMCP tooldelete_creative
Path parameters
idrequired
stringCreative ID
Request
curl -X DELETE "https://sqa.coboost.ai/api/v1/creatives/id_123" \
  -H "Authorization: Bearer $COBOOST_API_KEY"
Response · 200
{
  "id": "cmf0crt001",
  "object": "creative",
  "deleted": true
}
POST/v1/creatives/{id}/duplicate

Duplicate a creative

Copies a creative as a new draft, optionally into another campaign.

Scopecreatives:writeMCP toolduplicate_creative
Path parameters
idrequired
stringCreative ID
Body
campaign_id
string | nullCampaign for the copy (defaults to the original's)
Request
curl -X POST "https://sqa.coboost.ai/api/v1/creatives/id_123/duplicate" \
  -H "Authorization: Bearer $COBOOST_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
Response · 201
{
  "id": "cmf0crt002",
  "object": "creative",
  "name": "Serum reel (copy)",
  "campaign_id": "cmf0cmp001",
  "template_id": null,
  "persona_id": null,
  "format": "ig_reel",
  "caption": "Glow season is here. #ad",
  "hashtags": [
    "ad",
    "skincare"
  ],
  "cta": "Shop now",
  "link_url": "https://lumen.example/serum",
  "media": [
    {
      "asset_id": "cmf0med001",
      "url": "https://coboost.ai/uploads/ws/serum.mp4",
      "display_url": "https://coboost.ai/uploads/ws/serum.mp4",
      "type": "video",
      "width": 1080,
      "height": 1920,
      "duration_sec": 21,
      "source": "upload",
      "attribution": null
    }
  ],
  "status": "draft",
  "ai_generated": false,
  "version": 1,
  "kind": "standard",
  "parent_id": null,
  "variant_for_account_id": null,
  "angle": null,
  "design_template_id": null,
  "caption_template_id": null,
  "variant_status": null,
  "design_id": null,
  "created_at": "2026-10-20T10:00:00.000Z",
  "updated_at": "2026-10-21T09:00:00.000Z",
  "campaign": {
    "id": "cmf0cmp001",
    "name": "Autumn glow launch",
    "status": "draft"
  },
  "persona": null,
  "placement_count": 0
}
POST/v1/campaigns/{id}/creatives

Add a creative to a campaign

Attaches a library creative to a campaign. An unassigned creative moves into the campaign and keeps its id. A creative that already belongs to another campaign is **not moved**: a copy with a **new id** is created in this campaign and the original stays where it was, so that campaign keeps its content (the copy stays ready if the original was and still validates). The response is the creative now in the campaign, which may be that copy: use the returned id (not the creative_id you sent) for later calls about this campaign's creative.

Scopecreatives:writeMCP toolattach_creative_to_campaign
Path parameters
idrequired
stringCampaign ID
Body
creative_idrequired
stringCreative to add
Request
curl -X POST "https://sqa.coboost.ai/api/v1/campaigns/id_123/creatives" \
  -H "Authorization: Bearer $COBOOST_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"creative_id":"cmf0crt001"}'
Response · 201
{
  "id": "cmf0crt001",
  "object": "creative",
  "name": "Serum reel",
  "campaign_id": "cmf0cmp001",
  "template_id": null,
  "persona_id": null,
  "format": "ig_reel",
  "caption": "Glow season is here. #ad",
  "hashtags": [
    "ad",
    "skincare"
  ],
  "cta": "Shop now",
  "link_url": "https://lumen.example/serum",
  "media": [
    {
      "asset_id": "cmf0med001",
      "url": "https://coboost.ai/uploads/ws/serum.mp4",
      "display_url": "https://coboost.ai/uploads/ws/serum.mp4",
      "type": "video",
      "width": 1080,
      "height": 1920,
      "duration_sec": 21,
      "source": "upload",
      "attribution": null
    }
  ],
  "status": "ready",
  "ai_generated": false,
  "version": 2,
  "kind": "standard",
  "parent_id": null,
  "variant_for_account_id": null,
  "angle": null,
  "design_template_id": null,
  "caption_template_id": null,
  "variant_status": null,
  "design_id": null,
  "created_at": "2026-10-20T10:00:00.000Z",
  "updated_at": "2026-10-21T09:00:00.000Z",
  "campaign": {
    "id": "cmf0cmp001",
    "name": "Autumn glow launch",
    "status": "draft"
  },
  "persona": null,
  "placement_count": 0
}
DELETE/v1/campaigns/{id}/creatives/{creative_id}

Remove a creative from a campaign

Moves a creative out of the campaign back to the library (it isn't deleted). Refused while the creative has open placements in the campaign.

Scopecreatives:writeMCP tooldetach_creative_from_campaign
Path parameters
idrequired
stringCampaign ID
creative_idrequired
stringCreative ID
Request
curl -X DELETE "https://sqa.coboost.ai/api/v1/campaigns/id_123/creatives/creative_id" \
  -H "Authorization: Bearer $COBOOST_API_KEY"
Response · 200
{
  "id": "cmf0crt001",
  "object": "creative",
  "name": "Serum reel",
  "campaign_id": null,
  "template_id": null,
  "persona_id": null,
  "format": "ig_reel",
  "caption": "Glow season is here. #ad",
  "hashtags": [
    "ad",
    "skincare"
  ],
  "cta": "Shop now",
  "link_url": "https://lumen.example/serum",
  "media": [
    {
      "asset_id": "cmf0med001",
      "url": "https://coboost.ai/uploads/ws/serum.mp4",
      "display_url": "https://coboost.ai/uploads/ws/serum.mp4",
      "type": "video",
      "width": 1080,
      "height": 1920,
      "duration_sec": 21,
      "source": "upload",
      "attribution": null
    }
  ],
  "status": "ready",
  "ai_generated": false,
  "version": 2,
  "kind": "standard",
  "parent_id": null,
  "variant_for_account_id": null,
  "angle": null,
  "design_template_id": null,
  "caption_template_id": null,
  "variant_status": null,
  "design_id": null,
  "created_at": "2026-10-20T10:00:00.000Z",
  "updated_at": "2026-10-21T09:00:00.000Z",
  "campaign": null,
  "persona": null,
  "placement_count": 0
}
POST/v1/creatives/render-template

Render a template

Fills a template's variables and returns the caption, hashtags and CTA to use in a creative. Nothing is saved.

Scopecreatives:writeMCP toolrender_template
Body
template_idrequired
string
values
objectTemplate variable values, e.g. { "product": "Glow serum" }
Request
curl -X POST "https://sqa.coboost.ai/api/v1/creatives/render-template" \
  -H "Authorization: Bearer $COBOOST_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"template_id":"cmf0tpl001","values":{"product":"Glow serum","discount":"20%"}}'
Response · 200
{
  "object": "rendered_template",
  "template_id": "cmf0tpl001",
  "format_key": "ig_carousel",
  "caption": "Meet Glow serum: 20% off this week.",
  "hashtags": [
    "skincare"
  ],
  "cta": "Shop now",
  "media_guidance": "5 square slides, product first"
}