All documentation
Documentation
A briefing template is a named campaign briefing that belongs to your agency. Save the briefing once, then apply it to one campaign or to many at once. Applying saves the template text as a new briefing version on each campaign.
Changing or deleting a template changes no campaign. To update the campaigns,
apply the template again. A deleted template leaves the briefing on its
campaigns as it was; their templateId becomes null.
The text follows the same format and limits as a campaign briefing: up to 100,000 characters, tables up to 8 columns and 100 rows. Names are unique in your agency, ignoring case, and have up to 120 characters.
All requests require X-Application-Id and X-Api-Key. Reading requires the
campaigns:read scope; creating, changing, deleting and applying require
campaigns:write.
GET /sdk/v1/briefing-templates
List the templates, sorted by name, without their text.
{
"success": true,
"data": {
"templates": [
{
"templateId": "CBT_9Kd..._1795540000",
"name": "Philippines (PH)",
"characters": 4210,
"version": 3,
"campaignCount": 12,
"createdAt": "2026-11-26T23:50:00.000Z",
"updatedAt": "2026-11-27T08:10:00.000Z"
}
]
}
}
campaignCount is the number of campaigns whose current briefing was applied
from the template.
POST /sdk/v1/briefing-templates
Create a template. Answers 201 with the template.
curl -sS "$BASE_URL/sdk/v1/briefing-templates" \
-X POST \
-H "Content-Type: application/json" \
-H "X-Application-Id: $APP_ID" \
-H "X-Api-Key: $API_KEY" \
-d '{ "name": "Philippines (PH)", "markdown": "# Philippines\n\nPost **two** videos a week." }'
name string body requiredThe template name, unique in your agency.
markdown string body requiredThe briefing text in Markdown. It cannot be empty.
GET /sdk/v1/briefing-templates/:templateId
Read one template with its text.
{
"success": true,
"data": {
"templateId": "CBT_9Kd..._1795540000",
"name": "Philippines (PH)",
"characters": 41,
"version": 1,
"createdAt": "2026-11-26T23:50:00.000Z",
"updatedAt": "2026-11-26T23:50:00.000Z",
"markdown": "# Philippines\n\nPost **two** videos a week.",
"blocks": [{ "type": "heading", "level": 1, "content": [{ "type": "text", "text": "Philippines", "bold": false, "italic": false }] }],
"bodySha256": "8f3c..."
}
}
blocks has the same shape as in the campaign briefing.
PATCH /sdk/v1/briefing-templates/:templateId
Change the name, the text or both.
name string bodyThe new name.
markdown string bodyThe new text.
baseVersion integer bodyOptional. The version you read before editing. If someone changed the
template since, the change is refused with 409 TEMPLATE_CHANGED. Omit it and
the last write wins.
Each change adds 1 to version. Sending the same name and text changes nothing.
DELETE /sdk/v1/briefing-templates/:templateId
Delete the template. Answers { "templateId": "...", "deleted": true }.
POST /sdk/v1/briefing-templates/:templateId/apply
Put the template on campaigns.
curl -sS "$BASE_URL/sdk/v1/briefing-templates/CBT_9Kd..._1795540000/apply" \
-X POST \
-H "Content-Type: application/json" \
-H "X-Application-Id: $APP_ID" \
-H "X-Api-Key: $API_KEY" \
-d '{ "campaignIds": ["CMP_PH", "CMP_PH_LOCAL"] }'
campaignIds string[] body requiredFrom 1 to 500 campaign IDs, without repeats.
{
"success": true,
"data": {
"templateId": "CBT_9Kd..._1795540000",
"changedCount": 1,
"results": [
{ "campaignId": "CMP_PH", "revisionId": "CBR_1aB..._1795541000", "changed": true },
{ "campaignId": "CMP_PH_LOCAL", "revisionId": "CBR_7Qx..._1795503414", "changed": false }
]
}
}
- The campaigns are saved together: if one is not found, was deleted or belongs to another agency, nothing is saved.
- A campaign whose briefing already has this exact text keeps it
(
changed: false), so a retried apply is safe. - Applying never emails creators and never changes the campaign terms or the terms creators signed. Creators who already signed are asked in the creator portal to read and accept the new Campaign Brief.
Errors
Errors answer { "success": false, "code": "...", "message": "..." }, with
the extra fields below.
| Status | code |
Meaning |
|---|---|---|
400 |
INVALID_REQUEST |
The body is invalid, the name or text is empty, the name is too long, or campaignIds is empty, repeats a campaign or has over 500 |
400 |
BRIEFING_INVALID |
A table is over the limits; problems lists each one |
400 |
The request supplies an agencyId |
|
401 |
Missing or invalid SDK credentials | |
403 |
The API key lacks the scope | |
404 |
TEMPLATE_NOT_FOUND |
The template does not exist, was deleted, or belongs to another agency |
404 |
CAMPAIGN_NOT_FOUND |
A campaign of campaignIds was not found; campaignIds lists them |
409 |
TEMPLATE_NAME_TAKEN |
Another template of your agency has this name |
409 |
TEMPLATE_CHANGED |
baseVersion is not the current version; currentVersion has it |
413 |
BRIEFING_TOO_LONG |
The text is over 100,000 characters; problems lists every problem found |
