/sites/{siteId}/banner/wordingChange the banner's words
Saves and publishes the heading, the explanation, the three button labels and, optionally, each purpose's name and description.
Auth header
Authorization: Bearer tsk_live_…The key needsbanner:write
Parameters
siteIdstringin pathrequiredThe site id, from GET /v1/sites.
Request body
titlestringrequiredbodystringrequiredacceptAllstringrequiredrejectAllstringrequiredmanagestringrequiredcategoryCopymap of objectoptionalPer purpose. Only purposes the site already has are honoured; an omitted one keeps its copy.
categoryCopy{}.namestringoptionalcategoryCopy{}.descriptionstringoptional
Example request
curl -X PUT "https://app.tagsentry.ai/api/v1/sites/3f6c1b8e-2d4a-4c7e-9a51-0b8f2e6d7c10/banner/wording" \ -H "Authorization: Bearer tsk_live_…" \ -H "Content-Type: application/json" \ -d '{"title":"…","body":"…","acceptAll":"…","rejectAll":"…","manage":"…","categoryCopy":{"key":{"name":"_ga","description":"…"}}}'Response 200
savedbooleanrequiredAlways
truechangestringrequiredOne of
design,wording,linksbannerobjectrequiredbanner.titlestringrequiredbanner.bodystringrequiredbanner.acceptAllstringrequiredbanner.rejectAllstringrequiredbanner.managestringrequiredbanner.thememap of string | nullrequiredbanner.presentationmap of any | nullrequiredbanner.policyLinksmap of string | nullrequireddesignModestring | nullrequiredartifactWarningstring | nullrequiredSet when the save stored but the copy visitors fetch did not refresh yet. It retries; the save stands.
Example response
{ "saved": true, "change": "design", "banner": { "title": "…", "body": "…", "acceptAll": "…", "rejectAll": "…", "manage": "…", "theme": { "key": "…" }, "presentation": { "key": null }, "policyLinks": { "key": "…" } }, "designMode": "…", "artifactWarning": "…"}More about this endpoint
All five texts are required; to change some of them, PATCH the same path. Colours and placement are carried from the stored banner. Blank text is refused: a visitor would see an unlabelled control.
Consent records made after this save quote the new words; records made before keep the words they were given.
Errors400 · 401 · 403 · 404 · 409 · 429 · 500
400The request did not validate against this operation's schema.401Missing, malformed, unknown, revoked or expired API key. These are deliberately indistinguishable in the response -- distinguishing them would confirm to a caller that a token was once real.403The key authenticated but does not carry the scope(s) this operation requires, or (`domain_not_verified`) the site's domain is not verified, so its consent records are not released.404No such resource on this account. A site id belonging to a DIFFERENT account answers 404, never 403 -- a 403 would confirm the id exists somewhere.409The request conflicts with existing state.429A rate limit or quota was exceeded. The body names WHICH one.500Something failed on our side. The requestId in the body is what to quote.
Every error has the same body: { error: { code, message, requestId } }.
From the OpenAPI document, version 2026-08-26. Raw OpenAPI