The record and change sets
Look up the REST routes for the ground rules, channels, concepts, proof points, facts and change sets, with their fields and who may call them.
The REST routes for the record and change sets, generated with npm run openapi from the schemas Handline validates every request with. Routes are under https://app.handline.io/api/v1 and take Authorization: Bearer <key or token>; the ids in braces are path parameters. The OpenAPI document is at https://app.handline.io/api/v1/openapi.json.
A GET or DELETE takes its fields as query parameters: numbers and true or false are read as such, and a repeated key is a list. Other methods take a JSON body with content-type: application/json.
GET /products/{productId}/ground-rules#
Read the ground rules: audiences (with their source and expected size), the offer, the budget plan, call rules, country rules, writing style and experiment rules. Read these first in every session. Every check and result is measured against them.
Operation: groundRules.get, MCP tool groundRules_get. Who: owners, admins, editors and viewers (record.read); agent keys with read.
| Query | Type | Required | Rules |
|---|---|---|---|
version | integer | No | Above 0. |
GET /products/{productId}/ground-rules/versions#
List every version of the ground rules, newest first.
Operation: groundRules.history, MCP tool groundRules_history. Who: owners, admins, editors and viewers (record.read); agent keys with read.
No query parameters.
GET /products/{productId}/channels#
List the channels Handline knows, which are on for this product, and each one’s formats and limits.
Operation: channels.list, MCP tool channels_list. Who: owners, admins, editors and viewers (record.read); agent keys with read.
No query parameters.
GET /products/{productId}/channels/{channelId}#
Read one channel definition: formats, limits, creative specs, click id, AI label rule and routes.
Operation: channels.get, MCP tool channels_get. Who: owners, admins, editors and viewers (record.read); agent keys with read.
No query parameters.
GET /products/{productId}/concepts#
List concepts, filtered by audience, channel and status.
Operation: concepts.list, MCP tool concepts_list. Who: owners, admins, editors and viewers (record.read); agent keys with read.
| Query | Type | Required | Rules |
|---|---|---|---|
audienceId | string | No | |
channelId | string | No | |
status | string | No | One of draft, approved, live, paused, retired. |
GET /products/{productId}/concepts/{conceptId}#
Read a concept with its copy for every channel (facts filled in), its proof points and its placements.
Operation: concepts.get, MCP tool concepts_get. Who: owners, admins, editors and viewers (record.read); agent keys with read.
No query parameters.
GET /products/{productId}/copy/{copyId}/adapt#
Copy a concept’s copy from one channel into another channel’s format, with every limit that differs and every field that breaks the new limits flagged. Use it to run a concept on a second channel, such as Google Search copy on Microsoft Advertising. Nothing is saved, cut or rewritten. The result holds the copy in the new format (edit), the limits that differ between the two channels, and a flag for each field that must change. Change the flagged fields, then propose edit with changeSets_edit.
Operation: copy.adapt, MCP tool copy_adapt. Who: owners, admins, editors and viewers (record.read); agent keys with read.
| Query | Type | Required | Rules |
|---|---|---|---|
channelId | string | Yes | |
format | string | No |
GET /products/{productId}/proof-points#
List the proof points: the approved sources every claim must cite.
Operation: proofPoints.list, MCP tool proofPoints_list. Who: owners, admins, editors and viewers (record.read); agent keys with read.
| Query | Type | Required | Rules |
|---|---|---|---|
status | string | No | One of draft, approved, retired. |
GET /products/{productId}/proof-points/{proofPointId}#
Read a proof point, where it is used, and its history.
Operation: proofPoints.get, MCP tool proofPoints_get. Who: owners, admins, editors and viewers (record.read); agent keys with read.
No query parameters.
POST /products/{productId}/proof-points/{proofPointId}/approve#
Approve a proof point, so copy, pages and creatives may cite it.
Operation: proofPoints.approve. Who: owners and admins (proofPoints.approve); not agent keys.
| Body | Type | Required | Rules |
|---|---|---|---|
note | string | No | At most 1000 characters. |
POST /products/{productId}/proof-points/{proofPointId}/retire#
Retire a proof point. Returns every use, so live ones can be pulled. Every concept, piece of copy, page and creative that cites it is flagged; live uses become work items.
Operation: proofPoints.retire. Who: owners and admins (proofPoints.approve); not agent keys.
| Body | Type | Required | Rules |
|---|---|---|---|
note | string | No | At most 1000 characters. |
GET /products/{productId}/facts#
List the product facts: prices, plans, limits and feature names.
Operation: facts.list, MCP tool facts_list. Who: owners, admins, editors and viewers (record.read); agent keys with read.
No query parameters.
PUT /products/{productId}/facts/{key}#
Set a product fact. Pages that show it update at once; copy that quoted it is flagged. Called by the client's agent or build pipeline when the product changes. Returns the copy and placements that quoted the old value, because those may be live on platforms Handline can't change.
Operation: facts.set, MCP tool facts_set. Who: owners, admins and editors (facts.update); agent keys with publish.
| Body | Type | Required | Rules |
|---|---|---|---|
label | string | No | 1 to 120 characters. |
value | object | Yes | |
value.type | string | Yes | One of money, number, text, list. |
value.amount | number | No | At least 0. |
value.currency | string | No | Matches ^[A-Z]{3}$. |
value.per | string | No | At most 20 characters. |
value.value | number or string | No | 1 to 500 characters. |
value.unit | string | No | At most 30 characters. |
value.values | string[] | No | 1 to 50 items. |
DELETE /products/{productId}/facts/{key}#
Delete a product fact. Refused while anything refers to it.
Operation: facts.delete, MCP tool facts_delete. Who: owners, admins and editors (facts.update); agent keys with publish.
No query parameters.
GET /products/{productId}/facts/{key}/uses#
List every page, piece of copy, creative and placement that quotes a fact.
Operation: facts.whereUsed, MCP tool facts_whereUsed. Who: owners, admins, editors and viewers (record.read); agent keys with read.
No query parameters.
POST /products/{productId}/concepts/{conceptId}/pause#
Pause a concept: mark its live placements paused and open a work item to pause each one in its tool.
Operation: concepts.pause, MCP tool concepts_pause. Who: owners, admins and editors (placements.record); agent keys with report.
| Body | Type | Required | Rules |
|---|---|---|---|
reason | string | Yes | 3 to 1000 characters. |
POST /products/{productId}/change-sets#
Start a change set: a group of edits that are checked, approved and published together. Give it a title and the reason for the change. Nothing in it is visible outside it until it is published.
Operation: changeSets.start, MCP tool changeSets_start. Who: owners, admins and editors (record.propose); agent keys with propose.
| Body | Type | Required | Rules |
|---|---|---|---|
title | string | Yes | 1 to 120 characters. |
reason | string | Yes | 1 to 2000 characters. |
GET /products/{productId}/change-sets#
List change sets, newest first, optionally by status.
Operation: changeSets.list, MCP tool changeSets_list. Who: owners, admins, editors and viewers (record.read); agent keys with read.
| Query | Type | Required | Rules |
|---|---|---|---|
status | string | No | One of draft, checked, awaiting_approval, published, discarded, reverted. |
limit | integer | No | From 1 to 200. Default 50. |
GET /products/{productId}/change-sets/{changeSetId}#
Read a change set: its edits, the diff against the live record, and its last check.
Operation: changeSets.get, MCP tool changeSets_get. Who: owners, admins, editors and viewers (record.read); agent keys with read.
No query parameters.
POST /products/{productId}/change-sets/{changeSetId}/edits#
Add or change edits in a change set: create, update or delete record items. Send one edit or several. Item types: groundRules (id "current"), proofPoint, fact (id is the key), concept, copy, page, creative, experiment. For update, send patch with only the fields to change, or data to replace. A new item gets an id back; use it in later edits in the same change set. Retiring a concept also retires its copy.
Operation: changeSets.edit, MCP tool changeSets_edit. Who: owners, admins and editors (record.propose); agent keys with propose.
| Body | Type | Required | Rules |
|---|---|---|---|
edits | object[] | Yes | 1 to 50 items. |
edits[].type | string | Yes | One of groundRules, proofPoint, fact, concept, copy, page, creative, experiment, form. |
edits[].id | string | No | 1 to 80 characters. |
edits[].op | string | Yes | One of create, update, delete. |
edits[].data | object | No | Any keys; each value any. |
edits[].patch | object | No | Any keys; each value any. |
The fields of each item type are in record items.
DELETE /products/{productId}/change-sets/{changeSetId}/edits/{type}/{id}#
Drop one item’s edit from a change set.
Operation: changeSets.removeEdit, MCP tool changeSets_removeEdit. Who: owners, admins and editors (record.propose); agent keys with propose.
No query parameters.
POST /products/{productId}/change-sets/{changeSetId}/check#
Check a change set: run every applicable check, and rebase edits on anything that changed underneath. Returns every finding with the item, the field and how to fix it. Blocking findings stop a publish; warnings are recorded. If another change set published over an item you edited, this says what changed, and your edits then apply on top.
Operation: changeSets.check, MCP tool changeSets_check. Who: owners, admins and editors (record.propose); agent keys with propose.
No body.
POST /products/{productId}/change-sets/{changeSetId}/publish#
Publish a checked change set: every edit at once, or none. Waits for a person when the approval rules say so. A change set with a blocking finding is refused. If the product requires approval for these kinds of change, the call leaves the live record unchanged and returns status "awaiting_approval"; a person approves it in the web app.
Operation: changeSets.publish, MCP tool changeSets_publish. Who: owners, admins and editors (record.publish); agent keys with publish.
No body.
POST /products/{productId}/change-sets/{changeSetId}/discard#
Discard a change set that has not been published.
Operation: changeSets.discard, MCP tool changeSets_discard. Who: owners, admins and editors (record.propose); agent keys with propose.
No body.
POST /products/{productId}/change-sets/{changeSetId}/revert#
Revert a published change set: start a new change set that undoes it. Check and publish it like any other.
Operation: changeSets.revert, MCP tool changeSets_revert. Who: owners, admins and editors (record.propose); agent keys with propose.
| Body | Type | Required | Rules |
|---|---|---|---|
reason | string | Yes | 1 to 2000 characters. |
Was this page helpful?