All documentation
Documentation
The briefing tells creators what the campaign is and how to take part: what to post, examples, posting rules, how to get started and the tier table. Each campaign has one briefing, and every creator in the campaign will read the same one.
Creators read the briefing in the creator portal, next to the Campaign Agreement and the campaign terms, and accept it before they sign.
The briefing sets out the content requirements for the campaign. When you save a new briefing, creators who already signed are asked in the portal to read and accept it again. Grade sends no email for it, the terms they signed stay accepted, and the campaign terms and withdrawals do not change. Clearing the briefing asks creators for nothing. Payment amounts belong in the campaign terms, which the creator signs.
The briefing is shown only to creators of campaigns Grade switched creator
onboarding on for. shownToCreators in every response tells you whether it is
shown to creators of this campaign. You can write a briefing on any campaign of your agency,
for example before Grade switches the campaign on.
Grade keeps every saved version. Saving the same text again adds no version.
All requests require X-Application-Id and X-Api-Key. Reading requires the
campaigns:read scope; saving and clearing require campaigns:write.
Format
The briefing is Markdown. Grade accepts this subset:
| Write | Shows |
|---|---|
# Title, ## Section, ### Subsection |
Headings (3 levels) |
| Text separated by a blank line | Paragraphs |
**bold**, *italic* or _italic_ |
Bold and italic, also nested |
- item or * item |
Bullet list (one level) |
1. item |
Numbered list (one level) |
A pipe table with a header row and a --- separator row |
Table |
[text](https://example.com) or [text](mailto:team@example.com) |
Link |
--- on its own line |
Divider |
Links open only https: and mailto: addresses. A link to anything else, such
as http: or javascript:, stays as plain text. Raw HTML and images also stay
as plain text: nothing in the briefing runs or renders as HTML.
Grade stores the text with line endings turned into \n and the whitespace at
the end removed. bodySha256 is the SHA-256 of that stored text.
Limits
- 50,000 characters.
- Tables up to 8 columns and 100 rows, not counting the header.
A briefing over a limit is refused, never cut. The error lists every problem found.
GET /sdk/v1/campaigns/:campaignId/briefing
Read the latest version.
curl -sS "$BASE_URL/sdk/v1/campaigns/CMP_123/briefing" \
-H "X-Application-Id: $APP_ID" \
-H "X-Api-Key: $API_KEY"
{
"success": true,
"data": {
"campaignId": "CMP_123",
"revisionId": "CBR_7Qx..._1795503414",
"markdown": "# Spring launch\n\nPost **one** video a week.",
"blocks": [
{ "type": "heading", "level": 1, "content": [{ "type": "text", "text": "Spring launch", "bold": false, "italic": false }] },
{
"type": "paragraph",
"content": [
{ "type": "text", "text": "Post ", "bold": false, "italic": false },
{ "type": "text", "text": "one", "bold": true, "italic": false },
{ "type": "text", "text": " video a week.", "bold": false, "italic": false }
]
}
],
"bodySha256": "5b1e...",
"updatedAt": "2026-11-24T09:12:00.000Z",
"source": "sdk",
"shownToCreators": true
}
}
revisionIdisnullonly when no briefing was ever saved.markdownandbodySha256arenullwhen no briefing was ever saved or it was cleared.blocksis then[].blocksis the briefing parsed into headings, paragraphs, lists, tables and dividers, the same way Grade shows it. Each block holds text runs (type: "text"withboldanditalic) and links (type: "link"withhrefand its text runs).sourceis where the latest version was saved:v2(the Grade app) orsdk.
PUT /sdk/v1/campaigns/:campaignId/briefing
Save a new version.
curl -sS "$BASE_URL/sdk/v1/campaigns/CMP_123/briefing" \
-X PUT \
-H "Content-Type: application/json" \
-H "X-Application-Id: $APP_ID" \
-H "X-Api-Key: $API_KEY" \
-d '{
"markdown": "# Spring launch\n\n| Tier | Views |\n| --- | --- |\n| 1 | 10k |",
"baseRevisionId": "CBR_7Qx..._1795503414"
}'
markdown string body requiredThe briefing in Markdown. An empty string clears it.
baseRevisionId string | null bodyOptional. The revisionId you read before editing, or null if there was
none. If someone saved a newer version since, the save is refused with
409 BRIEFING_CHANGED, so no edit is silently lost. Omit it and the last
write wins.
The response has the same fields as GET, plus changed: false when the
text equals the latest version, so no version was added. This holds even when
baseRevisionId is older: a retried save that already went through answers
changed: false, not 409.
DELETE /sdk/v1/campaigns/:campaignId/briefing
Clear the briefing. Grade saves an empty version, so the history stays.
changed is false when the briefing was already empty or never saved.
Add ?baseRevisionId=<revisionId> to refuse the clear with
409 BRIEFING_CHANGED if someone saved a newer version since.
The briefing on campaign create and update
POST /sdk/v1/campaigns and PATCH /sdk/v1/campaigns/:campaignId also accept
briefing (string or null). See Campaigns. On create, the
campaign and its briefing are saved together, or neither is, and the same holds
for the other fields of an update. On update, the last write wins; use PUT
above to send a baseRevisionId.
campaignDescription is a separate, internal field for your team. Creators
never see it, and it does not change the briefing.
Errors
Errors answer { "success": false, "code": "...", "message": "..." }, with
the extra fields below.
| Status | code |
Meaning |
|---|---|---|
400 |
INVALID_REQUEST |
The campaign ID, the body or baseRevisionId is invalid |
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 |
CAMPAIGN_NOT_FOUND |
The campaign does not exist, was deleted, or belongs to another agency |
409 |
BRIEFING_CHANGED |
baseRevisionId is not the latest version; currentRevisionId has the latest (or null) |
413 |
BRIEFING_TOO_LONG |
The briefing is over 50,000 characters; problems lists every problem found |
Each entry of problems has code (BRIEFING_TOO_LONG,
BRIEFING_TABLE_TOO_WIDE or BRIEFING_TABLE_TOO_LONG), limit and actual.
Table problems also have line, the line of the table's header row
(counting from 1).
{
"success": false,
"code": "BRIEFING_INVALID",
"message": "A table in the briefing is over the limits: at most 8 columns and 100 rows.",
"problems": [{ "code": "BRIEFING_TABLE_TOO_WIDE", "limit": 8, "actual": 9, "line": 3 }]
}
