Skip to content
Docs menu

API reference

Catalog

Ad formats and caption templates, with plan and workspace availability applied. Create and publish your own templates.

GET/v1/formats

List ad formats

Every ad format with its effective availability for this workspace after platform, plan and workspace controls. can_launch is false for draft_only and disabled formats.

Scopetemplates:readMCP toollist_formats
Query parameters
platform
"instagram"Filter by platform
Request
curl "https://sqa.coboost.ai/api/v1/formats" \
  -H "Authorization: Bearer $COBOOST_API_KEY"
Response · 200
{
  "object": "list",
  "data": [
    {
      "key": "ig_reel",
      "object": "format",
      "platform": "instagram",
      "name": "Reel",
      "description": "Vertical video up to 90s",
      "specs": {
        "mediaTypes": [
          "video"
        ],
        "aspectRatios": [
          "9:16"
        ]
      },
      "availability": "enabled",
      "can_launch": true,
      "restricted_by": null,
      "reason": null
    }
  ],
  "has_more": false,
  "next_cursor": null
}
GET/v1/templates

List templates

Platform and workspace templates visible to this workspace, each with its effective availability. Hidden templates are omitted; platform templates locked for this workspace (availability: disabled) return a short preview as their content.

Scopetemplates:readMCP toollist_templates
Query parameters
format
stringFilter by format key, e.g. ig_reel
source
"platform" | "workspace"Only platform or only workspace templates
category
stringFilter by content type key (see GET /v1/reference/content_type), e.g. product_launch
search
stringCase-insensitive match on name and description
Request
curl "https://sqa.coboost.ai/api/v1/templates" \
  -H "Authorization: Bearer $COBOOST_API_KEY"
Response · 200
{
  "object": "list",
  "data": [
    {
      "id": "cmf0tpl001",
      "object": "template",
      "source": "platform",
      "platform": "instagram",
      "format": "ig_carousel",
      "name": "Product launch carousel",
      "description": "Five-slide launch story",
      "category": "product_launch",
      "status": "published",
      "min_plan": null,
      "content": {
        "captionTemplate": "Meet {{product}}…",
        "hashtags": [
          "#launch"
        ]
      },
      "thumbnail_url": null,
      "tags": [],
      "version": 3,
      "availability": "enabled",
      "reason": null,
      "updated_at": "2026-10-01T09:00:00.000Z"
    }
  ],
  "has_more": false,
  "next_cursor": null
}
GET/v1/templates/{id}

Get a template

One platform or workspace template with its availability. editable is true for the workspace's own templates. A platform template locked for this workspace (availability: disabled) returns a short preview as its content. availability: draft_only is a label on templates: it doesn't limit launching.

Scopetemplates:readMCP toolget_template
Path parameters
idrequired
stringTemplate ID
Request
curl "https://sqa.coboost.ai/api/v1/templates/id_123" \
  -H "Authorization: Bearer $COBOOST_API_KEY"
Response · 200
{
  "id": "cmf0tpl009",
  "object": "template",
  "source": "workspace",
  "platform": "instagram",
  "format": "ig_carousel",
  "name": "Launch carousel",
  "description": "Five slides: hook, problem, product, proof, offer",
  "category": "product_launch",
  "status": "draft",
  "min_plan": null,
  "content": {
    "captionTemplate": "Meet {{product}}. {{benefit}}",
    "hashtags": [
      "launch"
    ],
    "cta": "Shop now",
    "variables": [
      {
        "key": "product",
        "label": "Product",
        "default": ""
      },
      {
        "key": "benefit",
        "label": "Benefit",
        "default": ""
      }
    ]
  },
  "thumbnail_url": null,
  "tags": [
    "launch"
  ],
  "version": 1,
  "availability": "draft_only",
  "reason": null,
  "updated_at": "2026-11-01T10:00:00.000Z",
  "editable": true
}
POST/v1/templates

Create a template

Creates a workspace caption template as a draft (or published right away). Counts toward the plan's template limit. Use {{variables}} in the caption; POST /v1/creatives/render-template fills them.

Scopetemplates:writeMCP toolcreate_template
Body
namerequired
string
description
string | null
formatrequired
stringFormat key, e.g. ig_carousel (see GET /v1/formats)
category
string | nullcontent_type reference key
tags
string[]
contentrequired
objectCaption structure, hashtags, CTA and media guidance
status
"draft" | "published"
Request
curl -X POST "https://sqa.coboost.ai/api/v1/templates" \
  -H "Authorization: Bearer $COBOOST_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name":"Launch carousel","format":"ig_carousel","category":"product_launch","content":{"caption_template":"Meet {{product}}. {{benefit}}","hashtags":["launch"],"cta":"Shop now"}}'
Response · 201
{
  "id": "cmf0tpl009",
  "object": "template",
  "source": "workspace",
  "platform": "instagram",
  "format": "ig_carousel",
  "name": "Launch carousel",
  "description": "Five slides: hook, problem, product, proof, offer",
  "category": "product_launch",
  "status": "draft",
  "min_plan": null,
  "content": {
    "captionTemplate": "Meet {{product}}. {{benefit}}",
    "hashtags": [
      "launch"
    ],
    "cta": "Shop now",
    "variables": [
      {
        "key": "product",
        "label": "Product",
        "default": ""
      },
      {
        "key": "benefit",
        "label": "Benefit",
        "default": ""
      }
    ]
  },
  "thumbnail_url": null,
  "tags": [
    "launch"
  ],
  "version": 1,
  "availability": "draft_only",
  "reason": null,
  "updated_at": "2026-11-01T10:00:00.000Z",
  "editable": true
}
PATCH/v1/templates/{id}

Update a template

Edit a workspace template; omitted fields keep their values, including the keys left out of content and the slide or scene structure set in the app. Content changes create a new version. Platform templates are read-only: duplicate one in the app to edit it.

Scopetemplates:writeMCP toolupdate_template
Path parameters
idrequired
stringTemplate ID
Body
name
string
description
string | null
format
stringFormat key, e.g. ig_carousel (see GET /v1/formats)
category
string | nullcontent_type reference key
tags
string[]
content
objectCaption structure, hashtags, CTA and media guidance. Only the keys you send change; the rest keep their values, and so does the slide or scene structure set in the app
Request
curl -X PATCH "https://sqa.coboost.ai/api/v1/templates/id_123" \
  -H "Authorization: Bearer $COBOOST_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name":"Launch carousel v2","content":{"caption_template":"{{product}} is here. {{benefit}}"}}'
Response · 200
{
  "id": "cmf0tpl009",
  "object": "template",
  "source": "workspace",
  "platform": "instagram",
  "format": "ig_carousel",
  "name": "Launch carousel",
  "description": "Five slides: hook, problem, product, proof, offer",
  "category": "product_launch",
  "status": "draft",
  "min_plan": null,
  "content": {
    "captionTemplate": "Meet {{product}}. {{benefit}}",
    "hashtags": [
      "launch"
    ],
    "cta": "Shop now",
    "variables": [
      {
        "key": "product",
        "label": "Product",
        "default": ""
      },
      {
        "key": "benefit",
        "label": "Benefit",
        "default": ""
      }
    ]
  },
  "thumbnail_url": null,
  "tags": [
    "launch"
  ],
  "version": 2,
  "availability": "draft_only",
  "reason": null,
  "updated_at": "2026-11-01T10:00:00.000Z",
  "editable": true
}
POST/v1/templates/{id}/publish

Publish a template

Makes a workspace template available for creatives (from draft, or restores an archived one). The format must be enabled for the workspace.

Scopetemplates:writeMCP toolpublish_template
Path parameters
idrequired
stringTemplate ID
Request
curl -X POST "https://sqa.coboost.ai/api/v1/templates/id_123/publish" \
  -H "Authorization: Bearer $COBOOST_API_KEY"
Response · 200
{
  "id": "cmf0tpl009",
  "object": "template",
  "source": "workspace",
  "platform": "instagram",
  "format": "ig_carousel",
  "name": "Launch carousel",
  "description": "Five slides: hook, problem, product, proof, offer",
  "category": "product_launch",
  "status": "published",
  "min_plan": null,
  "content": {
    "captionTemplate": "Meet {{product}}. {{benefit}}",
    "hashtags": [
      "launch"
    ],
    "cta": "Shop now",
    "variables": [
      {
        "key": "product",
        "label": "Product",
        "default": ""
      },
      {
        "key": "benefit",
        "label": "Benefit",
        "default": ""
      }
    ]
  },
  "thumbnail_url": null,
  "tags": [
    "launch"
  ],
  "version": 1,
  "availability": "enabled",
  "reason": null,
  "updated_at": "2026-11-01T10:00:00.000Z",
  "editable": true
}
POST/v1/templates/{id}/unpublish

Move a template back to draft

Turns a published or archived workspace template back into a draft.

Scopetemplates:writeMCP toolunpublish_template
Path parameters
idrequired
stringTemplate ID
Request
curl -X POST "https://sqa.coboost.ai/api/v1/templates/id_123/unpublish" \
  -H "Authorization: Bearer $COBOOST_API_KEY"
Response · 200
{
  "id": "cmf0tpl009",
  "object": "template",
  "source": "workspace",
  "platform": "instagram",
  "format": "ig_carousel",
  "name": "Launch carousel",
  "description": "Five slides: hook, problem, product, proof, offer",
  "category": "product_launch",
  "status": "draft",
  "min_plan": null,
  "content": {
    "captionTemplate": "Meet {{product}}. {{benefit}}",
    "hashtags": [
      "launch"
    ],
    "cta": "Shop now",
    "variables": [
      {
        "key": "product",
        "label": "Product",
        "default": ""
      },
      {
        "key": "benefit",
        "label": "Benefit",
        "default": ""
      }
    ]
  },
  "thumbnail_url": null,
  "tags": [
    "launch"
  ],
  "version": 1,
  "availability": "draft_only",
  "reason": null,
  "updated_at": "2026-11-01T10:00:00.000Z",
  "editable": true
}
POST/v1/templates/{id}/archive

Archive a template

Hides a workspace template from pickers. Creatives that used it keep their content. Archived templates can be published again or deleted.

Scopetemplates:writeMCP toolarchive_template
Path parameters
idrequired
stringTemplate ID
Request
curl -X POST "https://sqa.coboost.ai/api/v1/templates/id_123/archive" \
  -H "Authorization: Bearer $COBOOST_API_KEY"
Response · 200
{
  "id": "cmf0tpl009",
  "object": "template",
  "source": "workspace",
  "platform": "instagram",
  "format": "ig_carousel",
  "name": "Launch carousel",
  "description": "Five slides: hook, problem, product, proof, offer",
  "category": "product_launch",
  "status": "archived",
  "min_plan": null,
  "content": {
    "captionTemplate": "Meet {{product}}. {{benefit}}",
    "hashtags": [
      "launch"
    ],
    "cta": "Shop now",
    "variables": [
      {
        "key": "product",
        "label": "Product",
        "default": ""
      },
      {
        "key": "benefit",
        "label": "Benefit",
        "default": ""
      }
    ]
  },
  "thumbnail_url": null,
  "tags": [
    "launch"
  ],
  "version": 1,
  "availability": "hidden",
  "reason": null,
  "updated_at": "2026-11-01T10:00:00.000Z",
  "editable": true
}
DELETE/v1/templates/{id}

Delete a template

Permanently deletes an archived workspace template and its versions.

Scopetemplates:writeMCP tooldelete_template
Path parameters
idrequired
stringTemplate ID
Request
curl -X DELETE "https://sqa.coboost.ai/api/v1/templates/id_123" \
  -H "Authorization: Bearer $COBOOST_API_KEY"
Response · 200
{
  "id": "cmf0tpl009",
  "object": "template",
  "deleted": true
}