API, MCP server and webhooks

Read your reviews, findings and records from your own systems, send work for review, answer findings, check draft copy before it runs, and get a signed request when something changes. Or connect Claude, ChatGPT or Cursor and do the same from a chat. Either way you see what your team sees in the workspace, and nothing a specialist hasn’t confirmed.

Beta. The API, the MCP server and webhooks are in beta, alongside Cleared’s private beta. We may still make changes, with notice. What that means

Overview

The API lives at https://clearedcommerce.com/api/v1.

  • Reading. Reviews, findings, records, the claims library and proof files, what Watch found, usage and the rulebook. Only what your team sees in the workspace, which means findings a specialist has confirmed and sent to your team: never drafts, never withdrawn findings, and never anything screening raised that a specialist hasn’t checked.
  • Changing things. Send ads, landing pages, emails and text messages for review, answer findings, ask for claims library entries and add proof, confirm pages Watch found, and manage webhook endpoints. Each needs a scope of its own and is done as a person on your team. See Send work and answer findings.
  • Checking a draft. POST /preflight is a machine check of draft copy. It changes nothing your team sees.

The MCP server at https://clearedcommerce.com/mcp offers the same routes as tools to an AI app such as Claude, ChatGPT or Cursor. Anyone on your team can connect one, as themselves, from the app.

Webhooks are the other half: we send a signed POST to an address you choose when a finding is raised, decided or resolved, and when a review ends.

Every response

  • The body is JSON.
  • Ids of reviews, findings and records are UUIDs. Event ids start with evt_ and request ids with req_. Timestamps are ISO 8601 in UTC and end in Z. Enums are lowercase strings.
  • We may add fields at any time. Your client must ignore fields it does not know.
  • These headers are on every response:
    • Cleared-Request-Id: quote it when you contact support.
    • Cleared-Api-Version: v1.
    • Cache-Control: no-store: responses must not be cached.

A machine-readable description of the API is at /api/v1/openapi.json (OpenAPI).

Authentication

Send your API key in the X-Cleared-Key request header.

X-Cleared-Key: clc_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Not Authorization: Bearer. On /api/v1 the Authorization header is not read (our edge replaces it), so a bearer token gets missing_api_key. Use X-Cleared-Key. The MCP server is the exception: it reads Authorization: Bearer.

Keys

  • Workspace admins create and revoke keys in the workspace under Settings, Developers (/app/settings/developers). A workspace can have up to 10 keys.
  • A key is shown exactly once, when it is created. We store only a SHA-256 hash of it, so we cannot show it again.
  • Keys start with clc_live_ in production and clc_test_ in other environments. The last 6 characters are a checksum, so secret scanners can recognize a real key.
  • A key can expire after 30, 90 or 365 days, or never.
  • A key can be revoked at any time. Revoking takes effect immediately.
  • A key acts for the admin who made it. What it changes is recorded in the workspace under the key’s name, and a write is refused with member_access_changed if that admin leaves or loses the role the scope needs. Reading keeps working until someone revokes the key.

Never in the URL

A key is never accepted in the query string. A request that carries one is refused with key_in_query_string. Revoke that key and make a new one: URLs end up in logs.

Scopes

Each key, and each app connected through the MCP server, is limited to the scopes chosen when it was made. Give one only the scopes its job needs. The scopes that change something (reviews:write, findings:write, library:write, watch:write and webhooks:manage) are off when a key is created, until someone turns them on.

Scopes a key or a connected app can have
ScopeWhat it allowsChanges thingsLeast role
reviews:readReviews and assets: where each ad, page, email or text is in the process.NoView only
findings:readFindings your team was sent, and the decisions made on them.NoView only
records:readRecords: the page behind a Cleared tag, and its status.NoView only
preflight:runPre-flight checks of draft copy: a machine check, not a review.NoView only
reviews:writeSend ads, landing pages, emails and text messages for a full review, and upload their files.YesCan decide
findings:writeAnswer findings: use the suggested fix, say the fix is live, ask a question, or dispute.YesCan decide
library:readYour claims library and proof files.NoView only
library:writeAsk for new claims library entries and add proof. Only a specialist decides an entry.YesCan decide
watch:readWhat Watch found running in your brand's name.NoView only
watch:writeConfirm or reject the creators' and affiliates' pages Watch found.YesCan decide
usage:readThis billing period's usage and your plan's limits.NoView only
webhooks:manageAdd, change and remove webhook endpoints. Acts as an admin.YesAdmin

“Least role” is what the person a key or an app acts for needs in the workspace to use that scope. It is checked again on every request that changes something, so someone given a smaller role takes that access with them. An app connected by someone who leaves the workspace stops working altogether.

GET /me, GET /rules and the single rule need no scope: any valid key can call them.

Quick start

  1. Create a key. In the workspace, open Settings, Developers (/app/settings/developers), create a key with the findings:read scope, and copy it. Put it in an environment variable, not in your code.

    export CLEARED_KEY="clc_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
  2. Check the key. GET /me returns the brand and the key you are using.

    curl -H "X-Cleared-Key: $CLEARED_KEY" https://clearedcommerce.com/api/v1/me
    {
      "object": "api_key_context",
      "api_version": "v1",
      "brand": {
        "id": "5b1f0c1e-7a56-4d0e-9f43-2f0d5c1a9b10",
        "name": "Northwind Sleep",
        "slug": "northwind-sleep"
      },
      "key": {
        "id": "6d5c4b3a-2f1e-4d0c-9b8a-7f6e5d4c3b2a",
        "name": "Warehouse sync",
        "prefix": "clc_live_8FjK2mQx",
        "scopes": [
          "reviews:read",
          "findings:read"
        ],
        "expires_at": null,
        "created_at": "2026-11-20T09:00:00Z"
      },
      "rate_limit": {
        "limit": 120,
        "window_seconds": 60
      },
      "credential": "api_key"
    }
  3. List open, high-severity findings.

    curl -H "X-Cleared-Key: $CLEARED_KEY" \
      "https://clearedcommerce.com/api/v1/findings?status=open&severity=high"

    The response, with each finding cut down to a few of its fields. The full finding is under Endpoints.

    {
      "object": "list",
      "data": [
        {
          "object": "finding",
          "id": "7e3d9a10-2c4b-4f6e-a1d8-5b9c0e7f2a41",
          "review_id": "0b9c2f6e-3d1a-4c58-8e7b-6a1f4d2c9e03",
          "severity": "high",
          "status": "open",
          "title": "The countdown restarts every visit",
          "quote": "“Ends tonight”",
          "suggested_fix": "“Spring sale: 20% off this week”"
        }
      ],
      "has_more": false,
      "next_cursor": null
    }

Pagination

List routes take two parameters: limit (default 25, at most 100) and cursor. A list response has this shape:

{ "object": "list", "data": [ … ], "has_more", "next_cursor" }
  • Pass next_cursor back as cursor until has_more is false.
  • Cursors are opaque. Do not build or change one.
  • The order is newest first by creation time. It stays stable while new rows arrive.
  • GET /reviews/{review_id}/findings is not paginated.
  • For an incremental sync, pass updated_since (ISO 8601 with a time zone) on reviews and findings to get only what changed at or after that time.

A loop in Python, standard library only:

import json
import os
import urllib.parse
import urllib.request

BASE = "https://clearedcommerce.com/api/v1"
KEY = os.environ["CLEARED_KEY"]


def list_all(path, **params):
    """Yield every object from a list route, one page at a time."""
    cursor = None
    while True:
        query = dict(params, limit=100)
        if cursor:
            query["cursor"] = cursor
        request = urllib.request.Request(
            BASE + path + "?" + urllib.parse.urlencode(query),
            headers={"X-Cleared-Key": KEY},
        )
        with urllib.request.urlopen(request) as response:
            page = json.load(response)
        yield from page["data"]
        if not page["has_more"]:
            return
        cursor = page["next_cursor"]


if __name__ == "__main__":
    for finding in list_all("/findings", status="open"):
        print(finding["id"], finding["severity"], finding["title"])

Errors

Errors are problem details (RFC 9457) with the content type application/problem+json. The fields are type, title, status, detail, code and request_id.

{
  "type": "https://clearedcommerce.com/developers/#error-invalid_api_key",
  "title": "Invalid API key",
  "status": 401,
  "detail": "This key is not valid. Check that you copied all of it.",
  "code": "invalid_api_key",
  "request_id": "req_2f6c1f0a8f6d4f0e9c8b7a6d5e4f3a2b"
}

Branch on code, not on title or detail: the wording can change, the code will not. type is a link to the matching row below.

Error codes
CodeStatusTitleWhat it means
missing_api_key401API key requiredNo X-Cleared-Key header was sent.
invalid_api_key401Invalid API keyThe key is not one we issued, or was mistyped.
revoked_api_key401API key revokedThe key was revoked in your workspace.
expired_api_key401API key expiredThe key is past the expiry date it was created with.
key_in_query_string401API key sent in the URLA key was sent in the URL. Keys are only read from the header.
insufficient_scope403Missing scopeThe key is valid and does not have the scope this route needs.
not_found404Not foundNo such object in your workspace, or no such route.
invalid_request400Invalid requestA parameter is missing or not valid. detail names it.
invalid_cursor400Invalid cursorThe cursor is not one this route returned.
method_not_allowed405Method not allowedThat method does not work at this address. The Allow header lists the ones that do.
member_access_changed403Member access changedA write is done as the admin who made the key, or the member who connected the app, and they no longer have the role it needs (they left, or were made a viewer).
not_allowed403Not allowedYour workspace does not allow this. detail says why.
conflict409Not possible right nowNot possible in the state the object is in now, for example answering a finding that already has a decision. detail says what to do.
unprocessable422Cannot be processedThe request is well formed but cannot be used: an upload that never arrived, a file type we cannot read, a submission with nothing to review. detail says which.
invalid_idempotency_key400Invalid Idempotency-KeyThe Idempotency-Key header is empty, too long, or has spaces.
idempotency_key_reused422Idempotency-Key reusedThis Idempotency-Key was already used for a different request. Use a new key for a new request.
idempotency_key_in_use409Idempotency-Key in useA request with this Idempotency-Key is still running. Retry shortly.
needs_full_review422Needs a full reviewA pre-flight check reads text only. A page, video or image needs a full review.
preflight_unavailable503Check not runThe pre-flight check could not run in time, so nothing was checked. Retry.
rate_limited429Too many requestsToo many requests, or pre-flight checks, from this key in one minute. See Retry-After.
internal_error500Something went wrongSomething went wrong on our side. Retry with a short delay.

One answer comes from our edge rather than the API: a request body over 1 MB gets 413 with the code invalid_request. Send files with POST /uploads instead.

Rate limits

Each key can make 120 requests in a fixed window of 60 seconds. The limit is per key, not per workspace. An app connected through the MCP server has a limit of its own, the same size. Every request it makes to the server counts as one, whether it lists tools, calls one or reads a resource; an app that uses a key counts against that key.

Every response carries the first three of these headers. A 429 also carries Retry-After.

  • RateLimit-Limit: requests allowed in the window.
  • RateLimit-Remaining: requests left in this window.
  • RateLimit-Reset: seconds until the window ends.
  • Retry-After: only on a 429 (rate_limited).

Pre-flight checks have a second limit of their own: 30 checks a minute for each key, counted over the last 60 seconds. Going over it gets the same 429 with Retry-After.

Send work and answer findings

The routes that change something do what the buttons in the workspace do, as a person on your team: the admin who made the key, or the member who connected the app. Each is recorded in the workspace under the key’s or the app’s name, and your team sees it as it would see that person’s own.

  • Send work for review. POST /reviews takes an ad (its copy, a link, a video or image, or all of them), a landing page, a marketing email or a text message. A specialist replies within one business day. Findings arrive later, as finding.raised, once a specialist has confirmed them.
  • Files. A video, an image, an .eml email or a proof file goes up first: POST /uploads answers with a short-lived URL to PUT the file to and a key to name in the request it belongs to. Request bodies themselves are limited to 1 MB; a larger one is refused with a 413 before it reaches us.
  • Answer a finding. POST /findings/{finding_id}/responses uses the suggested fix, says the fix is live, asks the specialist a question, or disputes the finding with proof. It needs the findings:write scope and a person who can decide.
  • Claims library. POST /claims asks for an entry; a specialist decides what your proof supports and the wording to use. POST /evidence adds a proof file.
  • Watch. POST /watch/pages/{page_id} confirms a page Watch found as one of your creators or affiliates, or rejects it.
  • Webhook endpoints. /webhook-endpoints and the routes under it manage endpoints the way Settings, Developers does. They need webhooks:manage, which only an admin can hold.

None of these can make a finding appear, clear a review or change what a specialist decided. A finding reaches your team only when a specialist has confirmed it and sent it.

A write can be refused because of the person it acts for (member_access_changed), something the workspace does not allow (not_allowed), or the state the object is in (conflict, for example a finding that already has a decision). detail says what to do.

Retrying a request safely

If a POST times out you can’t tell whether it was done. Send an Idempotency-Key header with it, any string of 1 to 255 visible characters (a UUID is a good choice), and send the same request again with the same key:

  • If the first one was done, you get its answer again, with Idempotent-Replayed: true, and nothing is done twice.
  • While the first is still running, the second gets idempotency_key_in_use. Retry shortly.
  • The same key with a different method, path or body gets idempotency_key_reused. A new request needs a new key.
  • Only a successful answer is kept. After a refusal you can correct the request and send it with the same key.
  • Keys are kept for 24 hours, and belong to the key or app that sent them: two keys can use the same value without meeting.
# once for this piece of work, then the same value on every attempt
export IDEMPOTENCY_KEY="$(uuidgen)"

curl -X POST "https://clearedcommerce.com/api/v1/reviews" \
  -H "X-Cleared-Key: $CLEARED_KEY" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
  -H "Content-Type: application/json" \
  -d @draft.json

These routes take it: POST /reviews, POST /preflight, POST /claims, POST /claims/{claim_id}/evidence, POST /evidence, POST /findings/{finding_id}/responses, POST /uploads, POST /watch/pages/{page_id}, POST /webhook-endpoints, POST /webhook-endpoints/{endpoint_id}/roll-secret and POST /webhook-endpoints/{endpoint_id}/test. POST /reviews also takes reference, your own id for the work: sending the same reference again returns the review already made for it.

In a script, make the key once per piece of work and keep it with the work. A new key for each attempt protects nothing.

Check copy before it runs

POST /preflight reads a few lines of draft copy and answers while you wait, usually in a few seconds. It looks for the phrases in your claims library word for word, then runs the automated read a full review starts with, using your workspace’s risk settings.

A machine check, not a review. No specialist reads it. Every answer says so in machine_check, reviewed_by_specialist and label. Show label wherever you show the result. A verdict of no_flags means the check found nothing, not that the ad is cleared.

The label, as it is sent today:

Machine check. No specialist has read this. It catches common problems and the phrases in your claims library; it does not clear an ad.

What you send

  • The platform, the product as your claims library names it (or leave it out to check against every entry), and up to 40 lines: headline, body, caption, on-screen text or transcript, 12,000 characters in all. A transcript line can carry the second it starts.
  • Text only. A landing page, a video or an image needs a full review in the workspace, so a request with landing_url or media_url gets needs_full_review and nothing is checked.
  • We record that a check ran, how many lines it had and its verdict. The record does not keep your copy.

What you get back

  • flags: each line that needs a change, with the rule, a severity, the words in question, why, and a suggested rewrite. found_by says whether your claims library or the automated read raised it.
  • matched: the library entries the copy uses, and whether a qualifier that has to sit next to one is there.
  • If the check can’t finish within 12 seconds you get preflight_unavailable, never an empty result. Try again after Retry-After.
  • Each finished check counts toward your workspace’s usage. A check that could not run does not.

The same check is in the workspace as “Check a line”, under Claims library.

From an AI app

The MCP server offers this check as the tool cleared_preflight_check, along with the rest of the API. Connect Claude, ChatGPT or Cursor to it and the app can check a line while you write.

If you build your own assistant on a model’s tool calling instead, here is the same check as a plain tool definition: a name, a description and a JSON Schema of the input, with no references to resolve. Have your code send what the model passes in as the request body to POST https://clearedcommerce.com/api/v1/preflight. Keep the key in your code, not in the conversation.

Tool definition cleared_preflight_check, without MCP
{
  "name": "cleared_preflight_check",
  "description": "Check draft ad copy against the brand's claims library and common advertising problems before it runs. A machine check, not a review by a person: show the result's label with it. Text only.",
  "input_schema": {
    "additionalProperties": false,
    "description": "Draft copy to check before it runs. Text only: send the words, not a file or a link.",
    "properties": {
      "product": {
        "anyOf": [
          {
            "maxLength": 200,
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "default": null,
        "description": "The product the copy is about, as it is named in your claims library. Leave it out to check against every entry.",
        "title": "Product"
      },
      "platform": {
        "description": "Where the copy will run.",
        "enum": [
          "meta",
          "tiktok",
          "youtube",
          "amazon",
          "site",
          "email",
          "podcast",
          "other"
        ],
        "title": "Platform",
        "type": "string"
      },
      "lines": {
        "items": {
          "additionalProperties": false,
          "properties": {
            "kind": {
              "description": "Where the words appear. transcript is what is said aloud in a video or audio ad.",
              "enum": [
                "headline",
                "body",
                "caption",
                "on_screen",
                "transcript"
              ],
              "title": "Kind",
              "type": "string"
            },
            "text": {
              "description": "The words, exactly as they will run.",
              "maxLength": 2000,
              "minLength": 1,
              "title": "Text",
              "type": "string"
            },
            "start_s": {
              "anyOf": [
                {
                  "maximum": 36000,
                  "minimum": 0,
                  "type": "number"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "description": "transcript and on_screen only: when the line starts, in seconds",
              "title": "Start S"
            },
            "end_s": {
              "anyOf": [
                {
                  "maximum": 36000,
                  "minimum": 0,
                  "type": "number"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "description": "When the line ends, in seconds",
              "title": "End S"
            }
          },
          "required": [
            "kind",
            "text"
          ],
          "title": "PreflightLine",
          "type": "object"
        },
        "maxItems": 40,
        "minItems": 1,
        "title": "Lines",
        "type": "array"
      },
      "reference": {
        "anyOf": [
          {
            "maxLength": 120,
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "default": null,
        "description": "Your own id for this draft. Returned as sent.",
        "title": "Reference"
      }
    },
    "required": [
      "platform",
      "lines"
    ],
    "title": "PreflightRequest",
    "type": "object"
  }
}

The request and response schemas are under the endpoint, and in the OpenAPI document.

MCP server for AI apps

The MCP server lets an AI app use Cleared for you: list the findings waiting on your team, check a line of copy, look up what the claims library lets you say, or send an ad for review. It speaks the Model Context Protocol, so any app that can connect to a remote MCP server can use it.

The MCP server at a glance
Server URLhttps://clearedcommerce.com/mcp
TransportStreamable HTTP. Answers come back as JSON, and there is no session to keep.
Protocol version2026-07-28. Apps on an earlier version can connect too: 2024-11-05, 2025-03-26, 2025-06-18 and 2025-11-25.
Signing inOAuth: the app opens a Cleared page where you choose what it may do. Or a workspace API key, for an app that can’t sign in.
Limits and usageThe same as the API: the rate limit, the scopes, and your plan’s usage.
It acts as you. What the app changes is done in your name and recorded in the workspace under the app’s name. It can do no more than you can in the workspace, and only what you allowed. The server tells the app to ask you before each change; whether it does is up to the app.

Connect an app

Each person connects their own app, as themselves. Nobody needs to be an admin, and no key changes hands.

Claude Code

claude mcp add --transport http cleared https://clearedcommerce.com/mcp

Then type /mcp in Claude Code, choose cleared and sign in in the browser it opens. Add --scope user to use it in every project, or --scope project to share it with your repository in .mcp.json (each person still signs in as themselves).

Claude (claude.ai and the desktop app)

  1. Open Customize, then Connectors.
  2. Choose + Add, then Add custom connector.
  3. Paste https://clearedcommerce.com/mcp and choose Continue.
  4. Leave the sign-in method as OAuth and choose Add.
  5. Choose Connect and allow it on the Cleared page that opens.

On a Claude Team or Enterprise plan, an owner adds the connector once, under Organization settings, Connectors. Then each person opens Customize, Connectors and chooses Connect next to it, and signs in to Cleared as themselves.

ChatGPT

  1. Open Plugins, choose the plus button, then Add custom MCP server.
  2. Give it a name, such as Cleared.
  3. Under Connection, paste https://clearedcommerce.com/mcp.
  4. Choose OAuth for authentication, tick I understand and want to continue, and choose Create as a plugin.
  5. Allow it on the Cleared page that opens.

Which plans may add a server, and who in a workspace may, is ChatGPT’s choice and has changed several times: on a Business plan an admin or owner adds it, and on Pro, ChatGPT offers only the tools that read, so the ones that change something won’t appear. These are the menu names as of December 2026. ChatGPT on mobile can’t add one.

Cursor

Add the server to .cursor/mcp.json in your project, or to ~/.cursor/mcp.json for every project:

{
  "mcpServers": {
    "cleared": {
      "url": "https://clearedcommerce.com/mcp"
    }
  }
}

Cursor asks you to sign in the first time it uses the server.

Other apps

Give the app the URL and choose Streamable HTTP (often called http), not SSE or a command to run. Many apps read a file like this one; the field names vary:

{
  "mcpServers": {
    "cleared": {
      "type": "http",
      "url": "https://clearedcommerce.com/mcp"
    }
  }
}

What signing in looks like

  1. The app opens a Cleared page (/app/connect) in your browser. If you are signed out, you sign in first and come back to it.
  2. The page names the app. If the app publishes who makes it, the page shows that website; if not, it says Cleared can’t confirm who made it. It also shows where it will send you back to.
  3. You choose the workspace, if you are in more than one. The sample workspace can’t be connected.
  4. You choose what it may do. What it can read is ticked; what it can change is not, until you tick it. A scope your role doesn’t allow can’t be ticked.
  5. You choose Allow, or Deny, and go back to the app.

The app stays connected while it is used at least once every 30 days. To end it sooner, open Settings, Developers (/app/settings/developers) and choose Disconnect under Connected AI apps; it stops working straight away. Everyone sees the apps they connected there, and admins see everyone’s. Removing the server inside the app doesn’t always tell us, so disconnect it here to be sure.

With an API key instead

For an app that can’t open a browser to sign in, such as a script, a job on a server or a CI runner, send a workspace API key as Authorization: Bearer clc_… (or in X-Cleared-Key). The app then has the key’s scopes and acts for the admin who made it.

claude mcp add --transport http cleared https://clearedcommerce.com/mcp \
  --header "Authorization: Bearer $CLEARED_KEY"
{
  "mcpServers": {
    "cleared": {
      "url": "https://clearedcommerce.com/mcp",
      "headers": {
        "Authorization": "Bearer ${env:CLEARED_KEY}"
      }
    }
  }
}

The key is then kept in the app’s configuration. Give it only the scopes the app needs, and on your own computer prefer signing in. To see what a key is offered:

curl "https://clearedcommerce.com/mcp" \
  -H "Authorization: Bearer $CLEARED_KEY" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -H "MCP-Protocol-Version: 2026-07-28" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'

Tools

An app sees only the tools its scopes allow. Each tool calls one API route, so it answers with what that route returns and is refused when that route would be. A refusal comes back as a tool result marked as an error, with the reason in words.

Tools the MCP server offers
ToolWhat it doesScopeRouteChanges things
get_workspace Workspace and permissions None GET /me No
check_ad_copy Pre-flight check of draft copy preflight:run POST /preflight No
submit_ad Send an ad for review reviews:write POST /reviews Yes
submit_landing_page Send a landing page for review reviews:write POST /reviews Yes
submit_email Send a marketing email for review reviews:write POST /reviews Yes
submit_text_message Send a text message for review reviews:write POST /reviews Yes
list_reviews List reviews reviews:read GET /reviews No
get_review Get a review reviews:read GET /reviews/{review_id} No
list_findings List findings findings:read GET /findings No
get_finding Get a finding findings:read GET /findings/{finding_id} No
respond_to_finding Answer a finding findings:write POST /findings/{finding_id}/responses Yes
search_claims Search the claims library library:read GET /claims No
request_claim Ask for a claims library entry library:write POST /claims Yes
search_rules Search the rulebook None GET /rules No
get_rule Look up a rule None GET /rules/{rule_id} No
get_watch_summary Watch summary watch:read GET /watch No
list_watch_creatives List creatives Watch found watch:read GET /watch/creatives No

The 6 tools that change something are marked as not read-only, so an app that asks before such calls will ask. The four submit_ tools take words and links, and an email as HTML. To send a video, an image or an .eml file, use the API (POST /uploads, then POST /reviews) or the workspace.

Every tool with its description and input schema
[
  {
    "name": "get_workspace",
    "title": "Workspace and permissions",
    "description": "Which Cleared workspace (brand) this connection is for, what it may do (its scopes) and its rate limit. Call it when you need the brand's name or are unsure whether a tool is allowed.",
    "inputSchema": {
      "additionalProperties": false,
      "properties": {},
      "type": "object"
    }
  },
  {
    "name": "check_ad_copy",
    "title": "Pre-flight check of draft copy",
    "description": "A quick machine check of draft ad copy (a few lines of text) against the brand's claims library and common advertising problems, answered in seconds. It is NOT a review by a person: always show the result's `label` with it, and never call the copy cleared or approved because of it. A verdict of no_flags means the check found nothing, not that the copy is cleared. Text only: for a page, video, image, email or text message, use a submit tool for a full review.",
    "inputSchema": {
      "additionalProperties": false,
      "properties": {
        "product": {
          "anyOf": [
            {
              "maxLength": 200,
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "The product the copy is about, as it is named in your claims library. Leave it out to check against every entry.",
          "title": "Product"
        },
        "platform": {
          "description": "Where the copy will run.",
          "enum": [
            "meta",
            "tiktok",
            "youtube",
            "amazon",
            "site",
            "email",
            "podcast",
            "other"
          ],
          "title": "Platform",
          "type": "string"
        },
        "lines": {
          "items": {
            "additionalProperties": false,
            "properties": {
              "kind": {
                "description": "Where the words appear. transcript is what is said aloud in a video or audio ad.",
                "enum": [
                  "headline",
                  "body",
                  "caption",
                  "on_screen",
                  "transcript"
                ],
                "title": "Kind",
                "type": "string"
              },
              "text": {
                "description": "The words, exactly as they will run.",
                "maxLength": 2000,
                "minLength": 1,
                "title": "Text",
                "type": "string"
              },
              "start_s": {
                "anyOf": [
                  {
                    "maximum": 36000,
                    "minimum": 0,
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "description": "transcript and on_screen only: when the line starts, in seconds",
                "title": "Start S"
              },
              "end_s": {
                "anyOf": [
                  {
                    "maximum": 36000,
                    "minimum": 0,
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "description": "When the line ends, in seconds",
                "title": "End S"
              }
            },
            "required": [
              "kind",
              "text"
            ],
            "title": "PreflightLine",
            "type": "object"
          },
          "maxItems": 40,
          "minItems": 1,
          "title": "Lines",
          "type": "array"
        },
        "reference": {
          "anyOf": [
            {
              "maxLength": 120,
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Your own id for this draft. Returned as sent.",
          "title": "Reference"
        }
      },
      "required": [
        "platform",
        "lines"
      ],
      "type": "object"
    }
  },
  {
    "name": "submit_ad",
    "title": "Send an ad for review",
    "description": "Send an ad to Cleared for a full compliance review by a specialist, who replies within one business day. Give its words (headline, primary_text, cta, copy_text), a link to it (ad_url), or both. Videos and images are uploaded through the API or the workspace, not here. Returns the new review. Findings appear only after a Cleared specialist has confirmed them and sent them to the team, so a new review has none yet: that does not mean it passed. Counts toward the plan's pre-launch reviews. It acts in the user's name and is recorded in their workspace: confirm with the user before you call it.",
    "inputSchema": {
      "additionalProperties": false,
      "properties": {
        "headline": {
          "anyOf": [
            {
              "maxLength": 1000,
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "The headline, exactly as it will run.",
          "title": "Headline"
        },
        "primary_text": {
          "anyOf": [
            {
              "maxLength": 10000,
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "The main text (the caption or body copy).",
          "title": "Primary Text"
        },
        "cta": {
          "anyOf": [
            {
              "maxLength": 200,
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "The call to action, such as Shop now.",
          "title": "Cta"
        },
        "copy_text": {
          "anyOf": [
            {
              "maxLength": 20000,
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Any other words in the ad: on-screen text, a script or a transcript.",
          "title": "Copy Text"
        },
        "ad_url": {
          "anyOf": [
            {
              "maxLength": 2000,
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "A link to the ad (an Ad Library or preview link). A specialist opens it.",
          "title": "Ad Url"
        },
        "landing_url": {
          "anyOf": [
            {
              "maxLength": 2000,
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Where the ad sends people.",
          "title": "Landing Url"
        },
        "platform": {
          "anyOf": [
            {
              "enum": [
                "meta",
                "tiktok",
                "youtube",
                "google",
                "amazon",
                "pinterest",
                "snapchat",
                "x",
                "other"
              ],
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Where it will run.",
          "title": "Platform"
        },
        "placement": {
          "anyOf": [
            {
              "maxLength": 200,
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Such as Instagram Story or TikTok In-Feed.",
          "title": "Placement"
        },
        "live": {
          "default": false,
          "description": "true if the ad is already running.",
          "title": "Live",
          "type": "boolean"
        },
        "launch_date": {
          "anyOf": [
            {
              "format": "date",
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "When it is meant to start running.",
          "title": "Launch Date"
        },
        "name": {
          "anyOf": [
            {
              "maxLength": 300,
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "A name the team will recognize it by.",
          "title": "Name"
        },
        "note": {
          "anyOf": [
            {
              "maxLength": 2000,
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Anything the specialist should know: the launch date, the audience, what changed.",
          "title": "Note"
        },
        "reference": {
          "anyOf": [
            {
              "maxLength": 200,
              "pattern": "^[A-Za-z0-9._:\\-]+$",
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Your own id for this item (letters, digits, . _ : -). Sending the same reference again returns the review already made for it instead of starting a second one.",
          "title": "Reference"
        }
      },
      "type": "object"
    }
  },
  {
    "name": "submit_landing_page",
    "title": "Send a landing page for review",
    "description": "Send a landing page (its https:// address) to Cleared for a full review by a specialist. Cleared captures the page itself. Returns the new review. Findings appear only after a Cleared specialist has confirmed them and sent them to the team, so a new review has none yet: that does not mean it passed. It acts in the user's name and is recorded in their workspace: confirm with the user before you call it.",
    "inputSchema": {
      "additionalProperties": false,
      "properties": {
        "url": {
          "description": "The page's full https:// address.",
          "maxLength": 2000,
          "title": "Url",
          "type": "string"
        },
        "live": {
          "default": true,
          "description": "false if the page is not public yet.",
          "title": "Live",
          "type": "boolean"
        },
        "name": {
          "anyOf": [
            {
              "maxLength": 300,
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "A name the team will recognize it by.",
          "title": "Name"
        },
        "note": {
          "anyOf": [
            {
              "maxLength": 2000,
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Anything the specialist should know: the launch date, the audience, what changed.",
          "title": "Note"
        },
        "reference": {
          "anyOf": [
            {
              "maxLength": 200,
              "pattern": "^[A-Za-z0-9._:\\-]+$",
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Your own id for this item (letters, digits, . _ : -). Sending the same reference again returns the review already made for it instead of starting a second one.",
          "title": "Reference"
        }
      },
      "required": [
        "url"
      ],
      "type": "object"
    }
  },
  {
    "name": "submit_email",
    "title": "Send a marketing email for review",
    "description": "Send a marketing email (its HTML or plain text, with the subject and From line) for a full review, including the CAN-SPAM checks. Nothing in it is fetched or clicked. Returns the new review. Findings appear only after a Cleared specialist has confirmed them and sent them to the team, so a new review has none yet: that does not mean it passed. It acts in the user's name and is recorded in their workspace: confirm with the user before you call it.",
    "inputSchema": {
      "additionalProperties": false,
      "properties": {
        "html": {
          "anyOf": [
            {
              "maxLength": 500000,
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "The email's HTML. Send this or text_version.",
          "title": "Html"
        },
        "text_version": {
          "anyOf": [
            {
              "maxLength": 200000,
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "The plain-text version.",
          "title": "Text Version"
        },
        "subject": {
          "anyOf": [
            {
              "maxLength": 998,
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "The subject line.",
          "title": "Subject"
        },
        "preheader": {
          "anyOf": [
            {
              "maxLength": 500,
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "The preview text shown after the subject.",
          "title": "Preheader"
        },
        "from_header": {
          "anyOf": [
            {
              "maxLength": 998,
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "The From line, such as Brand <hello@brand.com>.",
          "title": "From Header"
        },
        "reply_to": {
          "anyOf": [
            {
              "maxLength": 998,
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "The Reply-To address, if any.",
          "title": "Reply To"
        },
        "name": {
          "anyOf": [
            {
              "maxLength": 300,
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "A name the team will recognize it by.",
          "title": "Name"
        },
        "note": {
          "anyOf": [
            {
              "maxLength": 2000,
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Anything the specialist should know: the launch date, the audience, what changed.",
          "title": "Note"
        },
        "reference": {
          "anyOf": [
            {
              "maxLength": 200,
              "pattern": "^[A-Za-z0-9._:\\-]+$",
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Your own id for this item (letters, digits, . _ : -). Sending the same reference again returns the review already made for it instead of starting a second one.",
          "title": "Reference"
        }
      },
      "type": "object"
    }
  },
  {
    "name": "submit_text_message",
    "title": "Send a text message for review",
    "description": "Send a marketing text message (SMS) for a full review, including the TCPA checks. Say what is known about how it is sent: the kind of number, when, and to which state. Returns the new review. Findings appear only after a Cleared specialist has confirmed them and sent them to the team, so a new review has none yet: that does not mean it passed. It acts in the user's name and is recorded in their workspace: confirm with the user before you call it.",
    "inputSchema": {
      "additionalProperties": false,
      "properties": {
        "text": {
          "description": "The message, exactly as it will be sent.",
          "maxLength": 2000,
          "minLength": 1,
          "title": "Text",
          "type": "string"
        },
        "sender_type": {
          "anyOf": [
            {
              "enum": [
                "short_code",
                "10dlc",
                "toll_free"
              ],
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "The kind of number it is sent from.",
          "title": "Sender Type"
        },
        "sender": {
          "anyOf": [
            {
              "maxLength": 40,
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "The number or short code it is sent from.",
          "title": "Sender"
        },
        "sent_at": {
          "anyOf": [
            {
              "format": "date-time",
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "When it will be (or was) sent, with a time zone.",
          "title": "Sent At"
        },
        "recipient_state": {
          "anyOf": [
            {
              "maxLength": 2,
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Two-letter US state of the recipients, if one.",
          "title": "Recipient State"
        },
        "opt_in_confirmation": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "true if this is the confirmation sent right after someone opts in.",
          "title": "Opt In Confirmation"
        },
        "name": {
          "anyOf": [
            {
              "maxLength": 300,
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "A name the team will recognize it by.",
          "title": "Name"
        },
        "note": {
          "anyOf": [
            {
              "maxLength": 2000,
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Anything the specialist should know: the launch date, the audience, what changed.",
          "title": "Note"
        },
        "reference": {
          "anyOf": [
            {
              "maxLength": 200,
              "pattern": "^[A-Za-z0-9._:\\-]+$",
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Your own id for this item (letters, digits, . _ : -). Sending the same reference again returns the review already made for it instead of starting a second one.",
          "title": "Reference"
        }
      },
      "required": [
        "text"
      ],
      "type": "object"
    }
  },
  {
    "name": "list_reviews",
    "title": "List reviews",
    "description": "The brand's reviews, newest first: each ad, page, email or text, where it is in the process (stage) and how many sent findings are open. stage your_call means findings wait on the team's decision.",
    "inputSchema": {
      "additionalProperties": false,
      "properties": {
        "stage": {
          "anyOf": [
            {
              "enum": [
                "new",
                "screening",
                "specialist",
                "your_call",
                "fix_shipped",
                "second_review",
                "cleared",
                "risk_accepted",
                "no_findings"
              ],
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "your_call: findings are waiting on the team's decision. cleared: done.",
          "title": "Stage"
        },
        "kind": {
          "anyOf": [
            {
              "enum": [
                "ad",
                "page",
                "email",
                "sms"
              ],
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Kind"
        },
        "updated_since": {
          "anyOf": [
            {
              "format": "date-time",
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Only reviews changed at or after this time.",
          "title": "Updated Since"
        },
        "cursor": {
          "anyOf": [
            {
              "maxLength": 400,
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "next_cursor from the previous answer, for the next page.",
          "title": "Cursor"
        },
        "limit": {
          "default": 10,
          "description": "How many to return, 1 to 100.",
          "maximum": 100,
          "minimum": 1,
          "title": "Limit",
          "type": "integer"
        }
      },
      "type": "object"
    }
  },
  {
    "name": "get_review",
    "title": "Get a review",
    "description": "One review: its stage, the asset, the specialist, its open findings count and its record. Findings appear only after a Cleared specialist has confirmed them and sent them to the team, so a new review has none yet: that does not mean it passed.",
    "inputSchema": {
      "additionalProperties": false,
      "properties": {
        "review_id": {
          "description": "The review's id (a UUID).",
          "title": "Review Id",
          "type": "string"
        }
      },
      "required": [
        "review_id"
      ],
      "type": "object"
    }
  },
  {
    "name": "list_findings",
    "title": "List findings",
    "description": "Findings a specialist sent to the team, newest first. Each has the rule, the severity, the exact words in question, why they are a problem, and a suggested fix to use instead. Filter by review_id, status (open: waiting on the team) or severity.",
    "inputSchema": {
      "additionalProperties": false,
      "properties": {
        "review_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Only findings on this review.",
          "title": "Review Id"
        },
        "status": {
          "anyOf": [
            {
              "enum": [
                "open",
                "asked",
                "fix_chosen",
                "fixed",
                "risk_accepted"
              ],
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "open: waiting on the team. asked: waiting on the specialist's answer.",
          "title": "Status"
        },
        "severity": {
          "anyOf": [
            {
              "enum": [
                "high",
                "medium",
                "low"
              ],
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Severity"
        },
        "updated_since": {
          "anyOf": [
            {
              "format": "date-time",
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Updated Since"
        },
        "cursor": {
          "anyOf": [
            {
              "maxLength": 400,
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "next_cursor from the previous answer, for the next page.",
          "title": "Cursor"
        },
        "limit": {
          "default": 10,
          "description": "How many to return, 1 to 100.",
          "maximum": 100,
          "minimum": 1,
          "title": "Limit",
          "type": "integer"
        }
      },
      "type": "object"
    }
  },
  {
    "name": "get_finding",
    "title": "Get a finding",
    "description": "One finding with its suggested fix and the decisions made on it so far.",
    "inputSchema": {
      "additionalProperties": false,
      "properties": {
        "finding_id": {
          "description": "The finding's id (a UUID).",
          "title": "Finding Id",
          "type": "string"
        }
      },
      "required": [
        "finding_id"
      ],
      "type": "object"
    }
  },
  {
    "name": "respond_to_finding",
    "title": "Answer a finding",
    "description": "Answer a finding the way the buttons in the workspace do: use_fix (the team will make the suggested change), fixed_live (after use_fix: the change is running), question (ask the specialist), or dispute (the finding is wrong; give the reason and any proof files). A specialist answers questions and disputes; a dispute never withdraws a finding by itself. It acts in the user's name and is recorded in their workspace: confirm with the user before you call it.",
    "inputSchema": {
      "additionalProperties": false,
      "properties": {
        "finding_id": {
          "description": "The finding's id (a UUID).",
          "title": "Finding Id",
          "type": "string"
        },
        "type": {
          "description": "use_fix: the team will make the suggested change. fixed_live: after use_fix, the change is running now. question: ask the specialist. dispute: the finding is wrong, with the reason in message.",
          "enum": [
            "use_fix",
            "fixed_live",
            "question",
            "dispute"
          ],
          "title": "Type",
          "type": "string"
        },
        "message": {
          "anyOf": [
            {
              "maxLength": 4000,
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Required for question and dispute.",
          "title": "Message"
        },
        "live_url": {
          "anyOf": [
            {
              "maxLength": 2000,
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "fixed_live: where the fixed version runs.",
          "title": "Live Url"
        },
        "evidence_ids": {
          "description": "dispute: proof files from the claims library.",
          "items": {
            "type": "string"
          },
          "maxItems": 10,
          "title": "Evidence Ids",
          "type": "array"
        }
      },
      "required": [
        "finding_id",
        "type"
      ],
      "type": "object"
    }
  },
  {
    "name": "search_claims",
    "title": "Search the claims library",
    "description": "The brand's claims library: what it may say about its products, the exact wording to use, the qualifier that has to go with it, and what to say instead of a claim it may not make. Check it before you write or suggest copy. pending entries are requests a specialist has not decided: don't use them.",
    "inputSchema": {
      "additionalProperties": false,
      "properties": {
        "q": {
          "anyOf": [
            {
              "maxLength": 200,
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Words to look for, such as asleep or clinically.",
          "title": "Q"
        },
        "status": {
          "anyOf": [
            {
              "enum": [
                "pending",
                "approved",
                "approved_qualified",
                "not_allowed",
                "needs_evidence"
              ],
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "approved: say it as worded. approved_qualified: only with the qualifier. not_allowed: don't.",
          "title": "Status"
        },
        "product": {
          "anyOf": [
            {
              "maxLength": 200,
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Only entries that hold for this product.",
          "title": "Product"
        },
        "cursor": {
          "anyOf": [
            {
              "maxLength": 400,
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "next_cursor from the previous answer, for the next page.",
          "title": "Cursor"
        },
        "limit": {
          "default": 10,
          "description": "How many to return, 1 to 100.",
          "maximum": 100,
          "minimum": 1,
          "title": "Limit",
          "type": "integer"
        }
      },
      "type": "object"
    }
  },
  {
    "name": "request_claim",
    "title": "Ask for a claims library entry",
    "description": "Ask for a new claims library entry, for a claim the team wants to make. It stays pending until a specialist decides what the proof supports and the wording to use; until then it may not be used. It acts in the user's name and is recorded in their workspace: confirm with the user before you call it.",
    "inputSchema": {
      "additionalProperties": false,
      "properties": {
        "text": {
          "description": "The claim the team wants to make, in their words.",
          "maxLength": 1000,
          "minLength": 1,
          "title": "Text",
          "type": "string"
        },
        "products": {
          "description": "The products it is about. Empty: all of them.",
          "items": {
            "type": "string"
          },
          "maxItems": 20,
          "title": "Products",
          "type": "array"
        },
        "request_note": {
          "anyOf": [
            {
              "maxLength": 2000,
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Why they want it and what proof they have.",
          "title": "Request Note"
        }
      },
      "required": [
        "text"
      ],
      "type": "object"
    }
  },
  {
    "name": "search_rules",
    "title": "Search the rulebook",
    "description": "The rules every review checks against, in plain words: what each looks for, a bad and a good example, the law behind it and the penalties. General information, not legal advice.",
    "inputSchema": {
      "additionalProperties": false,
      "properties": {
        "q": {
          "anyOf": [
            {
              "maxLength": 200,
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Words to look for, such as price or testimonial.",
          "title": "Q"
        },
        "regulator": {
          "anyOf": [
            {
              "maxLength": 40,
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Only rules this regulator enforces, such as ftc or fda.",
          "title": "Regulator"
        }
      },
      "type": "object"
    }
  },
  {
    "name": "get_rule",
    "title": "Look up a rule",
    "description": "One rule of the rulebook by id, such as the rule_id on a finding.",
    "inputSchema": {
      "additionalProperties": false,
      "properties": {
        "rule_id": {
          "description": "The rule's id, as a finding's rule_id names it.",
          "maxLength": 40,
          "title": "Rule Id",
          "type": "string"
        }
      },
      "required": [
        "rule_id"
      ],
      "type": "object"
    }
  },
  {
    "name": "get_watch_summary",
    "title": "Watch summary",
    "description": "What Watch found running in the brand's name this week: live ads and creatives, creators' and affiliates' pages (pending ones wait for the team to confirm or reject them), and Watch findings a specialist has sent.",
    "inputSchema": {
      "additionalProperties": false,
      "properties": {},
      "type": "object"
    }
  },
  {
    "name": "list_watch_creatives",
    "title": "List creatives Watch found",
    "description": "Creatives running in the brand's name, newest first, with the pages running each. status sent means a specialist sent findings on it; watched means nothing has been sent about it.",
    "inputSchema": {
      "additionalProperties": false,
      "properties": {
        "which": {
          "default": "new",
          "description": "new: first seen this week. live: still running. ended: stopped in the last 30 days.",
          "enum": [
            "all",
            "live",
            "new",
            "ended"
          ],
          "title": "Which",
          "type": "string"
        },
        "cursor": {
          "anyOf": [
            {
              "maxLength": 400,
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "next_cursor from the previous answer, for the next page.",
          "title": "Cursor"
        },
        "limit": {
          "default": 10,
          "description": "How many to return, 1 to 100.",
          "maximum": 100,
          "minimum": 1,
          "title": "Limit",
          "type": "integer"
        }
      },
      "type": "object"
    }
  }
]

Resources

Things an app can read and keep in context, rather than call:

Resources the MCP server offers
URIWhat it isScope
cleared://rulebookEvery rule a Cleared review checks against, with the law behind it. General information, not legal advice.None
cleared://claims-libraryWhat the brand may say about its products and the wording to use: the decided entries, up to 100.library:read
cleared://rules/{rule_id}One rule of the rulebook, by id (a finding's rule_id).None
The instructions the server gives every app
Cleared Commerce is a managed ad-compliance service: specialists review a brand's ads, landing pages, emails and text messages against advertising law, and send the team findings with a suggested fix.

- A pre-flight check (check_ad_copy) is a machine check, not a review. Show its label with its result and never describe copy as cleared or approved because of it.
- A review's findings appear only after a specialist has confirmed and sent them. A review with no findings yet has not passed.
- Writes (submitting work, answering a finding, asking for a claims library entry) are done in the user's name and recorded in their workspace. Confirm with the user before each one.
- Before suggesting copy, check the claims library (search_claims) for the wording the brand may use.
- The rulebook is general information, not legal advice.

For developers of MCP clients

Authorization follows the MCP authorization specification, version 2026-07-28, with Cleared as its own authorization server.

  • Discovery. A request without a token gets 401 with WWW-Authenticate: Bearer resource_metadata="…". The protected resource metadata (RFC 9728) is at /.well-known/oauth-protected-resource/mcp, and the authorization server metadata (RFC 8414) at /.well-known/oauth-authorization-server.
  • Client identity. Client ID metadata documents are supported: use the https URL of your document as client_id. We fetch it without following redirects, read up to 16 KB, and keep it for 24 hours. Dynamic client registration (RFC 7591) at /mcp/oauth/register is kept for clients that need it.
  • Public clients. No client secrets: the token endpoint takes none as its authentication method. PKCE with S256 is required.
  • Redirect URIs. https, or http on a loopback address, where the port may differ from the registered one (RFC 8252).
  • Resource. Send resource=https://clearedcommerce.com/mcp (RFC 8707). Tokens are bound to it and refused anywhere else.
  • The response. The redirect back carries iss (RFC 9207). Check that it is https://clearedcommerce.com.
  • Tokens. Access tokens start with cmcp_at_ and last 60 minutes. Refresh tokens last 30 days and are replaced on every use; using one twice ends the connection. Authorization codes last 5 minutes and work once. We keep only hashes of all three.
  • Scopes. Ask for the scopes you need with scope; without it, the page offers all of them. The person may allow fewer. A call that needs a scope the connection lacks gets 403 with WWW-Authenticate: Bearer error="insufficient_scope", scope="…", so you can ask again for more.
  • Revoking. When the person disconnects in your app, revoke the refresh token at /mcp/oauth/revoke (RFC 7009). That ends the connection; revoking an access token ends only that token.

Endpoints

All paths are under https://clearedcommerce.com/api/v1.

GET /me

The key you are using No scope needed

No parameters.

curl -H "X-Cleared-Key: $CLEARED_KEY" \
  "https://clearedcommerce.com/api/v1/me"
Example response for GET /me
{
  "object": "api_key_context",
  "api_version": "v1",
  "brand": {
    "id": "5b1f0c1e-7a56-4d0e-9f43-2f0d5c1a9b10",
    "name": "Northwind Sleep",
    "slug": "northwind-sleep"
  },
  "key": {
    "id": "6d5c4b3a-2f1e-4d0c-9b8a-7f6e5d4c3b2a",
    "name": "Warehouse sync",
    "prefix": "clc_live_8FjK2mQx",
    "scopes": [
      "reviews:read",
      "findings:read"
    ],
    "expires_at": null,
    "created_at": "2026-11-20T09:00:00Z"
  },
  "rate_limit": {
    "limit": 120,
    "window_seconds": 60
  },
  "credential": "api_key"
}

GET /reviews

List reviews Scope: reviews:read

Newest first. Pass next_cursor back as cursor until has_more is false.

Parameters
NameInTypeDescription
stageOptional query enum Only reviews at this stage. One of new, screening, specialist, your_call, fix_shipped, second_review, cleared, risk_accepted, no_findings.
kindOptional query enum Only reviews of ads, or of pages. One of ad, page, email, sms.
updated_sinceOptional query ISO 8601 date and time Only objects changed at or after this time (ISO 8601 with a time zone).
cursorOptional query string next_cursor from the previous page.
limitOptional query integer How many to return, 1 to 100. Default 25. Maximum 100.
curl -H "X-Cleared-Key: $CLEARED_KEY" \
  "https://clearedcommerce.com/api/v1/reviews?stage=your_call&limit=2"
Example response for GET /reviews
{
  "object": "list",
  "data": [
    {
      "object": "review",
      "id": "0b9c2f6e-3d1a-4c58-8e7b-6a1f4d2c9e03",
      "number": 2039,
      "stage": "your_call",
      "stage_label": "Your call",
      "asset": {
        "id": "c4a1d2e3-9b8f-4a67-b5c4-1e2d3f4a5b6c",
        "kind": "ad",
        "name": "Spring sale: Story 3",
        "platform": "meta",
        "placement": "Instagram Story",
        "external_id": "120212345678900123",
        "url": null,
        "pre_launch": false,
        "live": true
      },
      "findings_total": 2,
      "findings_open": 1,
      "highest_open_severity": "high",
      "specialist": {
        "name": "Jordan Ortiz",
        "title": "Compliance lead"
      },
      "record": null,
      "sent_at": "2026-12-01T15:04:05Z",
      "url": "https://clearedcommerce.com/app/reviews/0b9c2f6e-3d1a-4c58-8e7b-6a1f4d2c9e03",
      "created_at": "2026-12-01T14:20:11Z",
      "updated_at": "2026-12-01T16:42:30Z"
    }
  ],
  "has_more": true,
  "next_cursor": "eyJ0IjoiMjAyNi0xMi0wMVQxNDoyMDoxMVoifQ"
}

POST /reviews

Send an ad, page, email or text for review Scope: reviews:write Changes your workspace

Takes an Idempotency-Key header.

Send work in for a full review by a Cleared specialist: an ad (copy, a video or image from POST /uploads, a link, or all three), a landing page, a marketing email (.eml or HTML) or a text message. The answer is the new review: a specialist replies within one business day, and findings arrive as finding.raised once they have been confirmed and sent. Nothing screening raises reaches your team before a specialist has checked it. Send reference (your own id) to make a retry safe without an Idempotency-Key: the same reference returns the review already made for it.

Send a JSON body. Saved as draft.json:

{
  "kind": "ad",
  "name": "Spring sale: Story 4",
  "headline": "Fall asleep faster*",
  "primary_text": "Our sleep gummies help you wind down.",
  "cta": "Shop now",
  "media_key": "brands/5b1f0c1e-7a56-4d0e-9f43-2f0d5c1a9b10/uploads/8f14e45fceea167a5a36dedd4bea2543/spring-story-3.mp4",
  "landing_url": "https://northwind.example/sleep",
  "platform": "meta",
  "placement": "Instagram Story",
  "launch_date": "2026-12-12",
  "reference": "spring-story-4"
}
curl -X POST "https://clearedcommerce.com/api/v1/reviews" \
  -H "X-Cleared-Key: $CLEARED_KEY" \
  -H "Content-Type: application/json" \
  -d @draft.json
Example response for POST /reviews
{
  "object": "review",
  "id": "4d3c2b1a-0f9e-4d8c-a7b6-5e4d3c2b1a09",
  "number": 2051,
  "stage": "new",
  "stage_label": "Picked up",
  "asset": {
    "id": "a9b8c7d6-e5f4-4a3b-9c2d-1e0f9a8b7c6d",
    "kind": "ad",
    "name": "Spring sale: Story 4",
    "platform": "api",
    "placement": "Instagram Story",
    "external_id": "spring-story-4",
    "url": null,
    "pre_launch": true,
    "live": false
  },
  "findings_total": 0,
  "findings_open": 0,
  "highest_open_severity": null,
  "specialist": {
    "name": "Jordan Ortiz",
    "title": "Compliance lead"
  },
  "record": null,
  "sent_at": null,
  "url": "https://clearedcommerce.com/app/reviews/4d3c2b1a-0f9e-4d8c-a7b6-5e4d3c2b1a09",
  "created_at": "2026-12-05T15:10:00Z",
  "updated_at": "2026-12-05T15:10:00Z"
}
Request schema for POST /reviews (JSON Schema)
{
  "additionalProperties": false,
  "description": "An ad: its copy, its video or image (uploaded first), a link to it, or any of these together.",
  "properties": {
    "name": {
      "anyOf": [
        {
          "maxLength": 300,
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "What your team calls it. Defaults to something taken from the content.",
      "title": "Name"
    },
    "note": {
      "anyOf": [
        {
          "maxLength": 2000,
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Anything the specialist should know. It is not screened as copy.",
      "title": "Note"
    },
    "reference": {
      "anyOf": [
        {
          "maxLength": 120,
          "pattern": "^[A-Za-z0-9._:\\-]+$",
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Your own id for this item. Sending the same reference again returns the review already made for it instead of a second one.",
      "title": "Reference"
    },
    "kind": {
      "const": "ad",
      "title": "Kind",
      "type": "string"
    },
    "headline": {
      "anyOf": [
        {
          "maxLength": 500,
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Headline"
    },
    "primary_text": {
      "anyOf": [
        {
          "maxLength": 5000,
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "The ad's main text.",
      "title": "Primary Text"
    },
    "cta": {
      "anyOf": [
        {
          "maxLength": 120,
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "The call to action, e.g. Shop now.",
      "title": "Cta"
    },
    "copy_text": {
      "anyOf": [
        {
          "maxLength": 10000,
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "All the copy as one block, when it is not split into parts. Blank lines separate paragraphs.",
      "title": "Copy Text"
    },
    "media_key": {
      "anyOf": [
        {
          "maxLength": 600,
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "`key` from POST /uploads with purpose media.",
      "title": "Media Key"
    },
    "ad_url": {
      "anyOf": [
        {
          "maxLength": 2000,
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "A link to the ad or its draft: a preview link or an ad library page. We do not download it; a specialist opens it.",
      "title": "Ad Url"
    },
    "landing_url": {
      "anyOf": [
        {
          "maxLength": 2000,
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Where the ad sends people.",
      "title": "Landing Url"
    },
    "platform": {
      "anyOf": [
        {
          "enum": [
            "meta",
            "tiktok",
            "youtube",
            "google",
            "amazon",
            "pinterest",
            "snapchat",
            "x",
            "other"
          ],
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Platform"
    },
    "placement": {
      "anyOf": [
        {
          "maxLength": 120,
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "For example Instagram Story.",
      "title": "Placement"
    },
    "live": {
      "default": false,
      "description": "True if the ad is already running.",
      "title": "Live",
      "type": "boolean"
    },
    "launch_date": {
      "anyOf": [
        {
          "format": "date",
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "When it is meant to go live, if it is not yet.",
      "title": "Launch Date"
    }
  },
  "required": [
    "kind"
  ],
  "title": "AdSubmission",
  "type": "object"
}
Response schema for POST /reviews (JSON Schema)
{
  "additionalProperties": false,
  "properties": {
    "object": {
      "const": "review",
      "default": "review",
      "title": "Object",
      "type": "string"
    },
    "id": {
      "format": "uuid",
      "title": "Id",
      "type": "string"
    },
    "number": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "The short number your workspace shows, e.g. 2039.",
      "title": "Number"
    },
    "stage": {
      "enum": [
        "new",
        "screening",
        "specialist",
        "your_call",
        "fix_shipped",
        "second_review",
        "cleared",
        "risk_accepted",
        "no_findings"
      ],
      "title": "Stage",
      "type": "string"
    },
    "stage_label": {
      "title": "Stage Label",
      "type": "string"
    },
    "asset": {
      "additionalProperties": false,
      "description": "The ad or page a review is about.",
      "properties": {
        "id": {
          "format": "uuid",
          "title": "Id",
          "type": "string"
        },
        "kind": {
          "enum": [
            "ad",
            "page",
            "email",
            "sms"
          ],
          "title": "Kind",
          "type": "string"
        },
        "name": {
          "title": "Name",
          "type": "string"
        },
        "platform": {
          "description": "Where it runs: meta, shopify, prelaunch or public.",
          "title": "Platform",
          "type": "string"
        },
        "placement": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "For example “Instagram Story”.",
          "title": "Placement"
        },
        "external_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "The platform's own id for the ad.",
          "title": "External Id"
        },
        "url": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Url"
        },
        "pre_launch": {
          "description": "True for a draft your team sent in before it ran.",
          "title": "Pre Launch",
          "type": "boolean"
        },
        "live": {
          "title": "Live",
          "type": "boolean"
        }
      },
      "required": [
        "id",
        "kind",
        "name",
        "platform",
        "pre_launch",
        "live"
      ],
      "title": "Asset",
      "type": "object"
    },
    "findings_total": {
      "description": "Findings sent to your team on this review.",
      "title": "Findings Total",
      "type": "integer"
    },
    "findings_open": {
      "description": "Of those, how many still wait for a decision.",
      "title": "Findings Open",
      "type": "integer"
    },
    "highest_open_severity": {
      "anyOf": [
        {
          "enum": [
            "high",
            "medium",
            "low"
          ],
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Highest Open Severity"
    },
    "specialist": {
      "anyOf": [
        {
          "additionalProperties": false,
          "description": "The Cleared specialist on a review, as your workspace shows them.",
          "properties": {
            "name": {
              "title": "Name",
              "type": "string"
            },
            "title": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Title"
            }
          },
          "required": [
            "name"
          ],
          "title": "Reviewer",
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "default": null
    },
    "record": {
      "anyOf": [
        {
          "additionalProperties": false,
          "properties": {
            "id": {
              "format": "uuid",
              "title": "Id",
              "type": "string"
            },
            "public_id": {
              "examples": [
                "CLR-AD-26-0412"
              ],
              "title": "Public Id",
              "type": "string"
            },
            "status": {
              "enum": [
                "changes_requested",
                "cleared",
                "paused"
              ],
              "title": "Status",
              "type": "string"
            },
            "visibility": {
              "enum": [
                "private",
                "public"
              ],
              "title": "Visibility",
              "type": "string"
            },
            "url": {
              "title": "Url",
              "type": "string"
            },
            "cleared_at": {
              "anyOf": [
                {
                  "format": "date-time",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Cleared At"
            }
          },
          "required": [
            "id",
            "public_id",
            "status",
            "visibility",
            "url"
          ],
          "title": "RecordRef",
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "default": null
    },
    "sent_at": {
      "anyOf": [
        {
          "format": "date-time",
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "When the findings were sent to your team.",
      "title": "Sent At"
    },
    "url": {
      "description": "This review in your workspace.",
      "title": "Url",
      "type": "string"
    },
    "created_at": {
      "format": "date-time",
      "title": "Created At",
      "type": "string"
    },
    "updated_at": {
      "format": "date-time",
      "title": "Updated At",
      "type": "string"
    }
  },
  "required": [
    "id",
    "stage",
    "stage_label",
    "asset",
    "findings_total",
    "findings_open",
    "url",
    "created_at",
    "updated_at"
  ],
  "title": "Review",
  "type": "object"
}

GET /reviews/{review_id}

Get a review Scope: reviews:read

Parameters
NameInTypeDescription
review_idRequired path UUID No further description
curl -H "X-Cleared-Key: $CLEARED_KEY" \
  "https://clearedcommerce.com/api/v1/reviews/0b9c2f6e-3d1a-4c58-8e7b-6a1f4d2c9e03"
Example response for GET /reviews/{review_id}
{
  "object": "review",
  "id": "0b9c2f6e-3d1a-4c58-8e7b-6a1f4d2c9e03",
  "number": 2039,
  "stage": "your_call",
  "stage_label": "Your call",
  "asset": {
    "id": "c4a1d2e3-9b8f-4a67-b5c4-1e2d3f4a5b6c",
    "kind": "ad",
    "name": "Spring sale: Story 3",
    "platform": "meta",
    "placement": "Instagram Story",
    "external_id": "120212345678900123",
    "url": null,
    "pre_launch": false,
    "live": true
  },
  "findings_total": 2,
  "findings_open": 1,
  "highest_open_severity": "high",
  "specialist": {
    "name": "Jordan Ortiz",
    "title": "Compliance lead"
  },
  "record": null,
  "sent_at": "2026-12-01T15:04:05Z",
  "url": "https://clearedcommerce.com/app/reviews/0b9c2f6e-3d1a-4c58-8e7b-6a1f4d2c9e03",
  "created_at": "2026-12-01T14:20:11Z",
  "updated_at": "2026-12-01T16:42:30Z"
}

GET /reviews/{review_id}/findings

List a review's findings Scope: findings:read

Every finding sent to your team on this review, in the order the workspace shows them. Not paginated.

Parameters
NameInTypeDescription
review_idRequired path UUID No further description
curl -H "X-Cleared-Key: $CLEARED_KEY" \
  "https://clearedcommerce.com/api/v1/reviews/0b9c2f6e-3d1a-4c58-8e7b-6a1f4d2c9e03/findings"
Example response for GET /reviews/{review_id}/findings
{
  "object": "list",
  "data": [
    {
      "object": "finding",
      "id": "7e3d9a10-2c4b-4f6e-a1d8-5b9c0e7f2a41",
      "review_id": "0b9c2f6e-3d1a-4c58-8e7b-6a1f4d2c9e03",
      "position": 1,
      "rule_id": "urgency",
      "rule_title": "Deadlines and scarcity have to be real",
      "regulators": [
        "ftc"
      ],
      "type": "urgency",
      "severity": "high",
      "status": "open",
      "title": "The countdown restarts every visit",
      "explanation": "The ad says the sale ends tonight, and the same ad has run for three weeks.",
      "quote": "“Ends tonight”",
      "location": "Caption at 00:04",
      "suggested_fix": "“Spring sale: 20% off this week”",
      "fix_label": "Use a real end date",
      "no_rewrite_reason": null,
      "verified_live_at": null,
      "decisions": [],
      "created_at": "2026-12-01T15:04:05Z",
      "updated_at": "2026-12-01T15:04:05Z"
    }
  ],
  "has_more": false,
  "next_cursor": null
}

GET /findings

List findings Scope: findings:read

Findings a reviewer has confirmed and sent to your team, newest first.

Parameters
NameInTypeDescription
statusOptional query enum Only findings with this status. One of open, asked, fix_chosen, fixed, risk_accepted.
severityOptional query enum Only findings of this severity. One of high, medium, low.
review_idOptional query UUID Only findings on this review.
updated_sinceOptional query ISO 8601 date and time Only objects changed at or after this time (ISO 8601 with a time zone).
cursorOptional query string next_cursor from the previous page.
limitOptional query integer How many to return, 1 to 100. Default 25. Maximum 100.
curl -H "X-Cleared-Key: $CLEARED_KEY" \
  "https://clearedcommerce.com/api/v1/findings?status=open&severity=high"
Example response for GET /findings
{
  "object": "list",
  "data": [
    {
      "object": "finding",
      "id": "7e3d9a10-2c4b-4f6e-a1d8-5b9c0e7f2a41",
      "review_id": "0b9c2f6e-3d1a-4c58-8e7b-6a1f4d2c9e03",
      "position": 1,
      "rule_id": "urgency",
      "rule_title": "Deadlines and scarcity have to be real",
      "regulators": [
        "ftc"
      ],
      "type": "urgency",
      "severity": "high",
      "status": "open",
      "title": "The countdown restarts every visit",
      "explanation": "The ad says the sale ends tonight, and the same ad has run for three weeks.",
      "quote": "“Ends tonight”",
      "location": "Caption at 00:04",
      "suggested_fix": "“Spring sale: 20% off this week”",
      "fix_label": "Use a real end date",
      "no_rewrite_reason": null,
      "verified_live_at": null,
      "decisions": [],
      "created_at": "2026-12-01T15:04:05Z",
      "updated_at": "2026-12-01T15:04:05Z"
    }
  ],
  "has_more": false,
  "next_cursor": null
}

GET /findings/{finding_id}

Get a finding Scope: findings:read

Parameters
NameInTypeDescription
finding_idRequired path UUID No further description
curl -H "X-Cleared-Key: $CLEARED_KEY" \
  "https://clearedcommerce.com/api/v1/findings/7e3d9a10-2c4b-4f6e-a1d8-5b9c0e7f2a41"
Example response for GET /findings/{finding_id}
{
  "object": "finding",
  "id": "7e3d9a10-2c4b-4f6e-a1d8-5b9c0e7f2a41",
  "review_id": "0b9c2f6e-3d1a-4c58-8e7b-6a1f4d2c9e03",
  "position": 1,
  "rule_id": "urgency",
  "rule_title": "Deadlines and scarcity have to be real",
  "regulators": [
    "ftc"
  ],
  "type": "urgency",
  "severity": "high",
  "status": "fix_chosen",
  "title": "The countdown restarts every visit",
  "explanation": "The ad says the sale ends tonight, and the same ad has run for three weeks.",
  "quote": "“Ends tonight”",
  "location": "Caption at 00:04",
  "suggested_fix": "“Spring sale: 20% off this week”",
  "fix_label": "Use a real end date",
  "no_rewrite_reason": null,
  "verified_live_at": null,
  "decisions": [
    {
      "id": "d1e2f3a4-b5c6-4d7e-8f9a-0b1c2d3e4f5a",
      "type": "use_fix",
      "where": "slack",
      "reason": null,
      "decided_by": {
        "id": "9a7c5e3b-1d2f-4b6a-8c0e-3f5d7b9a1c2e",
        "name": "Dana Hall"
      },
      "created_at": "2026-12-01T16:42:30Z"
    }
  ],
  "created_at": "2026-12-01T15:04:05Z",
  "updated_at": "2026-12-01T16:42:30Z"
}

GET /records

List records Scope: records:read

Every record your brand has, private ones included, newest first.

Parameters
NameInTypeDescription
statusOptional query enum Only records with this status. One of changes_requested, cleared, paused.
cursorOptional query string next_cursor from the previous page.
limitOptional query integer How many to return, 1 to 100. Default 25. Maximum 100.
curl -H "X-Cleared-Key: $CLEARED_KEY" \
  "https://clearedcommerce.com/api/v1/records?status=cleared"
Example response for GET /records
{
  "object": "list",
  "data": [
    {
      "object": "record",
      "id": "2f8e4b7a-6c1d-4e3f-9a0b-8d7c6e5f4a3b",
      "public_id": "CLR-AD-26-0412",
      "status": "cleared",
      "visibility": "public",
      "is_public": true,
      "url": "https://clearedcommerce.com/records/CLR-AD-26-0412",
      "seal_url": "https://clearedcommerce.com/seal/CLR-AD-26-0412.svg",
      "asset": {
        "id": "c4a1d2e3-9b8f-4a67-b5c4-1e2d3f4a5b6c",
        "kind": "ad",
        "name": "Spring sale: Story 3",
        "platform": "meta",
        "placement": "Instagram Story",
        "external_id": "120212345678900123",
        "url": null,
        "pre_launch": false,
        "live": true
      },
      "review_id": "0b9c2f6e-3d1a-4c58-8e7b-6a1f4d2c9e03",
      "checklist_version": "1.2",
      "cleared_at": "2026-12-03T10:20:00Z",
      "paused_at": null,
      "paused_reason": null,
      "last_live_check_at": "2026-12-04T09:00:00Z",
      "created_at": "2026-12-01T15:04:05Z"
    }
  ],
  "has_more": false,
  "next_cursor": null
}

GET /records/{record_id}

Get a record Scope: records:read

By id, or by public id such as CLR-AD-26-0412.

The id can be the record’s UUID or its public id, such as CLR-AD-26-0412.

Parameters
NameInTypeDescription
record_idRequired path string No further description
curl -H "X-Cleared-Key: $CLEARED_KEY" \
  "https://clearedcommerce.com/api/v1/records/CLR-AD-26-0412"
Example response for GET /records/{record_id}
{
  "object": "record",
  "id": "2f8e4b7a-6c1d-4e3f-9a0b-8d7c6e5f4a3b",
  "public_id": "CLR-AD-26-0412",
  "status": "cleared",
  "visibility": "public",
  "is_public": true,
  "url": "https://clearedcommerce.com/records/CLR-AD-26-0412",
  "seal_url": "https://clearedcommerce.com/seal/CLR-AD-26-0412.svg",
  "asset": {
    "id": "c4a1d2e3-9b8f-4a67-b5c4-1e2d3f4a5b6c",
    "kind": "ad",
    "name": "Spring sale: Story 3",
    "platform": "meta",
    "placement": "Instagram Story",
    "external_id": "120212345678900123",
    "url": null,
    "pre_launch": false,
    "live": true
  },
  "review_id": "0b9c2f6e-3d1a-4c58-8e7b-6a1f4d2c9e03",
  "checklist_version": "1.2",
  "cleared_at": "2026-12-03T10:20:00Z",
  "paused_at": null,
  "paused_reason": null,
  "last_live_check_at": "2026-12-04T09:00:00Z",
  "created_at": "2026-12-01T15:04:05Z"
}

POST /preflight

Check draft copy before it runs Scope: preflight:run

Takes an Idempotency-Key header.

A machine check of a few lines, in seconds: your claims library word for word, then the automated read a full review starts with. No specialist reads it, and the answer says so in machine_check, reviewed_by_specialist and label. no_flags is not a clearance. Text only, answered while you wait. A landing page, video or image goes through a full review in the workspace. Each key may run 30 checks a minute.

Send a JSON body. Saved as draft.json:

{
  "product": "Sleep gummies",
  "platform": "meta",
  "lines": [
    {
      "kind": "headline",
      "text": "Helps you fall asleep faster.*"
    },
    {
      "kind": "body",
      "text": "Our gummies fix insomnia for good."
    },
    {
      "kind": "caption",
      "text": "*In an 8-week study of 120 adults, compared with a placebo."
    }
  ],
  "reference": "spring-story-3"
}
curl -X POST "https://clearedcommerce.com/api/v1/preflight" \
  -H "X-Cleared-Key: $CLEARED_KEY" \
  -H "Content-Type: application/json" \
  -d @draft.json
Example response for POST /preflight
{
  "object": "preflight_check",
  "id": "f0e1d2c3-b4a5-4968-8776-655443322110",
  "machine_check": true,
  "reviewed_by_specialist": false,
  "label": "Machine check. No specialist has read this. It catches common problems and the phrases in your claims library; it does not clear an ad.",
  "verdict": "flagged",
  "flags": [
    {
      "line_index": 1,
      "line_kind": "body",
      "rule_id": "disease",
      "rule_title": "Disease claim",
      "severity": "high",
      "quote": "fix insomnia for good",
      "explanation": "Your claims library rules this phrase out: insomnia is a medical condition, and a supplement cannot claim to fix it.",
      "suggested_rewrite": "Helps you fall asleep faster.",
      "found_by": "library",
      "entry_id": "1a2b3c4d-5e6f-4a7b-8c9d-0e1f2a3b4c5d",
      "at_s": null
    }
  ],
  "matched": [
    {
      "line_index": 0,
      "entry_id": "8b7a6c5d-4e3f-4a2b-9c1d-0e9f8a7b6c5d",
      "status": "approved_qualified",
      "claim": "Helps you fall asleep faster",
      "wording": "Helps you fall asleep faster.*",
      "qualifier": "*In an 8-week study of 120 adults, compared with a placebo.",
      "qualifier_present": true
    }
  ],
  "product": "Sleep gummies",
  "platform": "meta",
  "reference": "spring-story-3",
  "rulebook_version": "1.2",
  "checked_at": "2026-12-05T15:04:05Z",
  "duration_ms": 2140
}
Request schema for POST /preflight (JSON Schema)
{
  "additionalProperties": false,
  "description": "Draft copy to check before it runs. Text only: send the words, not a file or a link.",
  "properties": {
    "product": {
      "anyOf": [
        {
          "maxLength": 200,
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "The product the copy is about, as it is named in your claims library. Leave it out to check against every entry.",
      "title": "Product"
    },
    "platform": {
      "description": "Where the copy will run.",
      "enum": [
        "meta",
        "tiktok",
        "youtube",
        "amazon",
        "site",
        "email",
        "podcast",
        "other"
      ],
      "title": "Platform",
      "type": "string"
    },
    "lines": {
      "items": {
        "additionalProperties": false,
        "properties": {
          "kind": {
            "description": "Where the words appear. transcript is what is said aloud in a video or audio ad.",
            "enum": [
              "headline",
              "body",
              "caption",
              "on_screen",
              "transcript"
            ],
            "title": "Kind",
            "type": "string"
          },
          "text": {
            "description": "The words, exactly as they will run.",
            "maxLength": 2000,
            "minLength": 1,
            "title": "Text",
            "type": "string"
          },
          "start_s": {
            "anyOf": [
              {
                "maximum": 36000,
                "minimum": 0,
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "transcript and on_screen only: when the line starts, in seconds",
            "title": "Start S"
          },
          "end_s": {
            "anyOf": [
              {
                "maximum": 36000,
                "minimum": 0,
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "When the line ends, in seconds",
            "title": "End S"
          }
        },
        "required": [
          "kind",
          "text"
        ],
        "title": "PreflightLine",
        "type": "object"
      },
      "maxItems": 40,
      "minItems": 1,
      "title": "Lines",
      "type": "array"
    },
    "landing_url": {
      "anyOf": [
        {
          "maxLength": 2000,
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Not read by a pre-flight check. Sending one returns 422 needs_full_review: a page is checked in a full review.",
      "title": "Landing Url"
    },
    "media_url": {
      "anyOf": [
        {
          "maxLength": 2000,
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Not read by a pre-flight check. Sending one returns 422 needs_full_review.",
      "title": "Media Url"
    },
    "reference": {
      "anyOf": [
        {
          "maxLength": 120,
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Your own id for this draft. Returned as sent.",
      "title": "Reference"
    }
  },
  "required": [
    "platform",
    "lines"
  ],
  "title": "PreflightRequest",
  "type": "object"
}
Response schema for POST /preflight (JSON Schema)
{
  "additionalProperties": false,
  "properties": {
    "object": {
      "const": "preflight_check",
      "default": "preflight_check",
      "title": "Object",
      "type": "string"
    },
    "id": {
      "format": "uuid",
      "title": "Id",
      "type": "string"
    },
    "machine_check": {
      "const": true,
      "default": true,
      "title": "Machine Check",
      "type": "boolean"
    },
    "reviewed_by_specialist": {
      "const": false,
      "default": false,
      "title": "Reviewed By Specialist",
      "type": "boolean"
    },
    "label": {
      "default": "Machine check. No specialist has read this. It catches common problems and the phrases in your claims library; it does not clear an ad.",
      "description": "Show this next to the result.",
      "title": "Label",
      "type": "string"
    },
    "verdict": {
      "description": "flagged when any line needs changing. no_flags means this check found nothing; it is not a clearance.",
      "enum": [
        "no_flags",
        "flagged"
      ],
      "title": "Verdict",
      "type": "string"
    },
    "flags": {
      "items": {
        "additionalProperties": false,
        "description": "A line that needs changing before it runs.",
        "properties": {
          "line_index": {
            "description": "Index of the line in the request, from 0.",
            "minimum": 0,
            "title": "Line Index",
            "type": "integer"
          },
          "line_kind": {
            "enum": [
              "headline",
              "body",
              "caption",
              "on_screen",
              "transcript"
            ],
            "title": "Line Kind",
            "type": "string"
          },
          "rule_id": {
            "description": "The rule in the Cleared rulebook, or library for a library entry.",
            "title": "Rule Id",
            "type": "string"
          },
          "rule_title": {
            "title": "Rule Title",
            "type": "string"
          },
          "severity": {
            "enum": [
              "high",
              "medium",
              "low"
            ],
            "title": "Severity",
            "type": "string"
          },
          "quote": {
            "description": "The words that raised the flag, copied from the line.",
            "title": "Quote",
            "type": "string"
          },
          "explanation": {
            "title": "Explanation",
            "type": "string"
          },
          "suggested_rewrite": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Suggested Rewrite"
          },
          "found_by": {
            "description": "library: matched an entry in your claims library. screen: the automated read.",
            "enum": [
              "library",
              "screen"
            ],
            "title": "Found By",
            "type": "string"
          },
          "entry_id": {
            "anyOf": [
              {
                "format": "uuid",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The library entry, for found_by library.",
            "title": "Entry Id"
          },
          "at_s": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "When the line starts, if the request said.",
            "title": "At S"
          }
        },
        "required": [
          "line_index",
          "line_kind",
          "rule_id",
          "rule_title",
          "severity",
          "quote",
          "explanation",
          "found_by"
        ],
        "title": "PreflightFlag",
        "type": "object"
      },
      "title": "Flags",
      "type": "array"
    },
    "matched": {
      "items": {
        "additionalProperties": false,
        "description": "A claims library entry the copy uses.",
        "properties": {
          "line_index": {
            "description": "Index of the line in the request, from 0.",
            "minimum": 0,
            "title": "Line Index",
            "type": "integer"
          },
          "entry_id": {
            "format": "uuid",
            "title": "Entry Id",
            "type": "string"
          },
          "status": {
            "enum": [
              "approved",
              "approved_qualified",
              "not_allowed",
              "needs_evidence"
            ],
            "title": "Status",
            "type": "string"
          },
          "claim": {
            "title": "Claim",
            "type": "string"
          },
          "wording": {
            "description": "The wording cleared for this claim.",
            "title": "Wording",
            "type": "string"
          },
          "qualifier": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "What must appear next to the claim, when the entry has a qualifier.",
            "title": "Qualifier"
          },
          "qualifier_present": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Whether the qualifier appears anywhere in the copy. Null without a qualifier.",
            "title": "Qualifier Present"
          }
        },
        "required": [
          "line_index",
          "entry_id",
          "status",
          "claim",
          "wording"
        ],
        "title": "PreflightMatch",
        "type": "object"
      },
      "title": "Matched",
      "type": "array"
    },
    "product": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Product"
    },
    "platform": {
      "enum": [
        "meta",
        "tiktok",
        "youtube",
        "amazon",
        "site",
        "email",
        "podcast",
        "other"
      ],
      "title": "Platform",
      "type": "string"
    },
    "reference": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Reference"
    },
    "rulebook_version": {
      "title": "Rulebook Version",
      "type": "string"
    },
    "checked_at": {
      "format": "date-time",
      "title": "Checked At",
      "type": "string"
    },
    "duration_ms": {
      "title": "Duration Ms",
      "type": "integer"
    }
  },
  "required": [
    "id",
    "verdict",
    "flags",
    "matched",
    "platform",
    "rulebook_version",
    "checked_at",
    "duration_ms"
  ],
  "title": "PreflightResult",
  "type": "object"
}

GET /assets

List assets Scope: reviews:read

Everything your workspace has reviewed or is reviewing, newest first, each with its latest review.

Parameters
NameInTypeDescription
kindOptional query enum Only ads, pages, emails or text messages. One of ad, page, email, sms.
liveOptional query boolean Only live (true) or not yet live (false).
cursorOptional query string next_cursor from the previous page.
limitOptional query integer How many to return, 1 to 100. Default 25. Maximum 100.
curl -H "X-Cleared-Key: $CLEARED_KEY" \
  "https://clearedcommerce.com/api/v1/assets?kind=ad"
Example response for GET /assets
{
  "object": "list",
  "data": [
    {
      "object": "asset",
      "id": "c4a1d2e3-9b8f-4a67-b5c4-1e2d3f4a5b6c",
      "kind": "ad",
      "name": "Spring sale: Story 3",
      "platform": "meta",
      "placement": "Instagram Story",
      "external_id": "120212345678900123",
      "url": null,
      "pre_launch": false,
      "live": true,
      "latest_review": {
        "id": "0b9c2f6e-3d1a-4c58-8e7b-6a1f4d2c9e03",
        "number": 2039,
        "stage": "your_call",
        "stage_label": "Your call"
      },
      "created_at": "2026-12-01T14:20:00Z"
    }
  ],
  "has_more": false,
  "next_cursor": null
}

GET /assets/{asset_id}

Get an asset Scope: reviews:read

Parameters
NameInTypeDescription
asset_idRequired path UUID No further description
curl -H "X-Cleared-Key: $CLEARED_KEY" \
  "https://clearedcommerce.com/api/v1/assets/c4a1d2e3-9b8f-4a67-b5c4-1e2d3f4a5b6c"
Example response for GET /assets/{asset_id}
{
  "object": "asset",
  "id": "c4a1d2e3-9b8f-4a67-b5c4-1e2d3f4a5b6c",
  "kind": "ad",
  "name": "Spring sale: Story 3",
  "platform": "meta",
  "placement": "Instagram Story",
  "external_id": "120212345678900123",
  "url": null,
  "pre_launch": false,
  "live": true,
  "latest_review": {
    "id": "0b9c2f6e-3d1a-4c58-8e7b-6a1f4d2c9e03",
    "number": 2039,
    "stage": "your_call",
    "stage_label": "Your call"
  },
  "created_at": "2026-12-01T14:20:00Z"
}

GET /claims

List or search the claims library Scope: library:read

Your claims library: what you may say, the wording to use, what not to say, and requests a specialist has not decided yet. Newest first.

Parameters
NameInTypeDescription
qOptional query string Words to look for in the claim, its cleared wording or its products.
statusOptional query enum Only entries with this status. One of pending, approved, approved_qualified, not_allowed, needs_evidence.
productOptional query string Only entries for this product (or every product).
cursorOptional query string next_cursor from the previous page.
limitOptional query integer How many to return, 1 to 100. Default 25. Maximum 100.
curl -H "X-Cleared-Key: $CLEARED_KEY" \
  "https://clearedcommerce.com/api/v1/claims?q=asleep"
Example response for GET /claims
{
  "object": "list",
  "data": [
    {
      "object": "claim",
      "id": "8b7a6c5d-4e3f-4a2b-9c1d-0e9f8a7b6c5d",
      "text": "Helps you fall asleep faster",
      "wording": "Helps you fall asleep faster.*",
      "status": "approved_qualified",
      "status_label": "Use with the qualifier",
      "products": [
        "Sleep gummies"
      ],
      "platforms": [],
      "allowed_wording": "Helps you fall asleep faster.*",
      "qualifier": "*In an 8-week study of 120 adults, compared with a placebo.",
      "say_instead": [
        {
          "say": "Helps you fall asleep faster.*",
          "avoid": "Cures insomnia"
        }
      ],
      "rule_ids": [
        "proof"
      ],
      "note": "Keep the qualifier on the same screen as the claim.",
      "request_note": null,
      "evidence_ids": [
        "e1d2c3b4-a5f6-4e7d-8c9b-0a1f2e3d4c5b"
      ],
      "support": [
        {
          "evidence_id": "e1d2c3b4-a5f6-4e7d-8c9b-0a1f2e3d4c5b",
          "title": "Sleep onset study, 2025",
          "read": true,
          "verdict": "supports",
          "because": "Participants fell asleep 11 minutes faster than with a placebo.",
          "wording_it_supports": "Helps you fall asleep faster",
          "limits": [
            "Adults only",
            "Eight weeks of use"
          ]
        }
      ],
      "requested_by": {
        "id": "9a7c5e3b-1d2f-4b6a-8c0e-3f5d7b9a1c2e",
        "name": "Dana Hall"
      },
      "decided_at": "2026-11-28T17:00:00Z",
      "created_at": "2026-11-25T10:00:00Z",
      "updated_at": "2026-11-28T17:00:00Z"
    }
  ],
  "has_more": false,
  "next_cursor": null
}

POST /claims

Ask for a new claims library entry Scope: library:write Changes your workspace

Takes an Idempotency-Key header.

Ask for an entry. It is pending until a specialist decides what your proof supports and the wording to use; status changes then. Attach proof with evidence_ids, or later with POST /claims/{id}/evidence.

Send a JSON body. Saved as draft.json:

{
  "text": "Non-habit forming",
  "products": [
    "Sleep gummies"
  ],
  "request_note": "Our label says this; we'd like to use it in ads.",
  "evidence_ids": [
    "e1d2c3b4-a5f6-4e7d-8c9b-0a1f2e3d4c5b"
  ]
}
curl -X POST "https://clearedcommerce.com/api/v1/claims" \
  -H "X-Cleared-Key: $CLEARED_KEY" \
  -H "Content-Type: application/json" \
  -d @draft.json
Example response for POST /claims
{
  "object": "claim",
  "id": "5c4b3a29-1807-4f6e-9d5c-4b3a29180706",
  "text": "Non-habit forming",
  "wording": "Non-habit forming",
  "status": "pending",
  "status_label": "Waiting for a specialist",
  "products": [
    "Sleep gummies"
  ],
  "platforms": [],
  "allowed_wording": null,
  "qualifier": null,
  "say_instead": [],
  "rule_ids": [],
  "note": null,
  "request_note": "Our label says this; we'd like to use it in ads.",
  "evidence_ids": [
    "e1d2c3b4-a5f6-4e7d-8c9b-0a1f2e3d4c5b"
  ],
  "support": [
    {
      "evidence_id": "e1d2c3b4-a5f6-4e7d-8c9b-0a1f2e3d4c5b",
      "title": "Sleep onset study, 2025",
      "read": false,
      "verdict": null,
      "because": null,
      "wording_it_supports": null,
      "limits": []
    }
  ],
  "requested_by": {
    "id": "9a7c5e3b-1d2f-4b6a-8c0e-3f5d7b9a1c2e",
    "name": "Dana Hall"
  },
  "decided_at": null,
  "created_at": "2026-12-05T15:20:00Z",
  "updated_at": "2026-12-05T15:20:00Z"
}
Request schema for POST /claims (JSON Schema)
{
  "additionalProperties": false,
  "description": "Ask for a new entry. It stays pending until a specialist decides what your proof supports.",
  "properties": {
    "text": {
      "description": "The claim you want to make.",
      "maxLength": 1000,
      "minLength": 1,
      "title": "Text",
      "type": "string"
    },
    "products": {
      "default": [],
      "description": "Leave empty for every product.",
      "items": {
        "type": "string"
      },
      "maxItems": 20,
      "title": "Products",
      "type": "array"
    },
    "platforms": {
      "default": [],
      "description": "Leave empty for every platform.",
      "items": {
        "enum": [
          "meta",
          "tiktok",
          "youtube",
          "amazon",
          "site",
          "email",
          "podcast"
        ],
        "type": "string"
      },
      "maxItems": 7,
      "title": "Platforms",
      "type": "array"
    },
    "request_note": {
      "anyOf": [
        {
          "maxLength": 2000,
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Why you want it, for the specialist.",
      "title": "Request Note"
    },
    "evidence_ids": {
      "default": [],
      "description": "Proof files already in your library.",
      "items": {
        "format": "uuid",
        "type": "string"
      },
      "maxItems": 20,
      "title": "Evidence Ids",
      "type": "array"
    }
  },
  "required": [
    "text"
  ],
  "title": "ClaimRequest",
  "type": "object"
}
Response schema for POST /claims (JSON Schema)
{
  "additionalProperties": false,
  "description": "One entry in your claims library. Only a specialist moves an entry out of pending.",
  "properties": {
    "object": {
      "const": "claim",
      "default": "claim",
      "title": "Object",
      "type": "string"
    },
    "id": {
      "format": "uuid",
      "title": "Id",
      "type": "string"
    },
    "text": {
      "description": "The claim as your team wrote it.",
      "title": "Text",
      "type": "string"
    },
    "wording": {
      "description": "The words to use: the cleared wording when there is one.",
      "title": "Wording",
      "type": "string"
    },
    "status": {
      "enum": [
        "pending",
        "approved",
        "approved_qualified",
        "not_allowed",
        "needs_evidence"
      ],
      "title": "Status",
      "type": "string"
    },
    "status_label": {
      "title": "Status Label",
      "type": "string"
    },
    "products": {
      "description": "Empty means every product.",
      "items": {
        "type": "string"
      },
      "title": "Products",
      "type": "array"
    },
    "platforms": {
      "description": "Empty means every platform.",
      "items": {
        "type": "string"
      },
      "title": "Platforms",
      "type": "array"
    },
    "allowed_wording": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Allowed Wording"
    },
    "qualifier": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "What must run next to the claim, wherever it runs.",
      "title": "Qualifier"
    },
    "say_instead": {
      "default": [],
      "items": {
        "additionalProperties": false,
        "properties": {
          "say": {
            "title": "Say",
            "type": "string"
          },
          "avoid": {
            "title": "Avoid",
            "type": "string"
          }
        },
        "required": [
          "say",
          "avoid"
        ],
        "title": "SayInstead",
        "type": "object"
      },
      "title": "Say Instead",
      "type": "array"
    },
    "rule_ids": {
      "default": [],
      "items": {
        "type": "string"
      },
      "title": "Rule Ids",
      "type": "array"
    },
    "note": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "The specialist's note to your team.",
      "title": "Note"
    },
    "request_note": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Why your team asked for it.",
      "title": "Request Note"
    },
    "evidence_ids": {
      "default": [],
      "items": {
        "format": "uuid",
        "type": "string"
      },
      "title": "Evidence Ids",
      "type": "array"
    },
    "support": {
      "default": [],
      "items": {
        "additionalProperties": false,
        "description": "What one linked proof file supports for this claim, once someone at Cleared has read it.",
        "properties": {
          "evidence_id": {
            "format": "uuid",
            "title": "Evidence Id",
            "type": "string"
          },
          "title": {
            "title": "Title",
            "type": "string"
          },
          "read": {
            "description": "False until someone at Cleared has read the file.",
            "title": "Read",
            "type": "boolean"
          },
          "verdict": {
            "anyOf": [
              {
                "enum": [
                  "supports",
                  "partly",
                  "does_not_support"
                ],
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Verdict"
          },
          "because": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Because"
          },
          "wording_it_supports": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Wording It Supports"
          },
          "limits": {
            "default": [],
            "items": {
              "type": "string"
            },
            "title": "Limits",
            "type": "array"
          }
        },
        "required": [
          "evidence_id",
          "title",
          "read"
        ],
        "title": "ClaimSupport",
        "type": "object"
      },
      "title": "Support",
      "type": "array"
    },
    "requested_by": {
      "anyOf": [
        {
          "additionalProperties": false,
          "description": "A member of your own workspace.",
          "properties": {
            "id": {
              "format": "uuid",
              "title": "Id",
              "type": "string"
            },
            "name": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Name"
            }
          },
          "required": [
            "id"
          ],
          "title": "Person",
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "default": null
    },
    "decided_at": {
      "anyOf": [
        {
          "format": "date-time",
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Decided At"
    },
    "created_at": {
      "format": "date-time",
      "title": "Created At",
      "type": "string"
    },
    "updated_at": {
      "format": "date-time",
      "title": "Updated At",
      "type": "string"
    }
  },
  "required": [
    "id",
    "text",
    "wording",
    "status",
    "status_label",
    "products",
    "platforms",
    "created_at",
    "updated_at"
  ],
  "title": "Claim",
  "type": "object"
}

GET /claims/{claim_id}

Get a claims library entry Scope: library:read

Parameters
NameInTypeDescription
claim_idRequired path UUID No further description
curl -H "X-Cleared-Key: $CLEARED_KEY" \
  "https://clearedcommerce.com/api/v1/claims/8b7a6c5d-4e3f-4a2b-9c1d-0e9f8a7b6c5d"
Example response for GET /claims/{claim_id}
{
  "object": "claim",
  "id": "8b7a6c5d-4e3f-4a2b-9c1d-0e9f8a7b6c5d",
  "text": "Helps you fall asleep faster",
  "wording": "Helps you fall asleep faster.*",
  "status": "approved_qualified",
  "status_label": "Use with the qualifier",
  "products": [
    "Sleep gummies"
  ],
  "platforms": [],
  "allowed_wording": "Helps you fall asleep faster.*",
  "qualifier": "*In an 8-week study of 120 adults, compared with a placebo.",
  "say_instead": [
    {
      "say": "Helps you fall asleep faster.*",
      "avoid": "Cures insomnia"
    }
  ],
  "rule_ids": [
    "proof"
  ],
  "note": "Keep the qualifier on the same screen as the claim.",
  "request_note": null,
  "evidence_ids": [
    "e1d2c3b4-a5f6-4e7d-8c9b-0a1f2e3d4c5b"
  ],
  "support": [
    {
      "evidence_id": "e1d2c3b4-a5f6-4e7d-8c9b-0a1f2e3d4c5b",
      "title": "Sleep onset study, 2025",
      "read": true,
      "verdict": "supports",
      "because": "Participants fell asleep 11 minutes faster than with a placebo.",
      "wording_it_supports": "Helps you fall asleep faster",
      "limits": [
        "Adults only",
        "Eight weeks of use"
      ]
    }
  ],
  "requested_by": {
    "id": "9a7c5e3b-1d2f-4b6a-8c0e-3f5d7b9a1c2e",
    "name": "Dana Hall"
  },
  "decided_at": "2026-11-28T17:00:00Z",
  "created_at": "2026-11-25T10:00:00Z",
  "updated_at": "2026-11-28T17:00:00Z"
}

POST /claims/{claim_id}/evidence

Link proof files to a claims library entry Scope: library:write Changes your workspace

Takes an Idempotency-Key header.

Add proof to an entry: files already in your proof library (POST /evidence). Linking proof never changes a decision; the specialist sees the new files.

Parameters
NameInTypeDescription
claim_idRequired path UUID No further description

Send a JSON body. Saved as draft.json:

{
  "evidence_ids": [
    "e1d2c3b4-a5f6-4e7d-8c9b-0a1f2e3d4c5b"
  ]
}
curl -X POST "https://clearedcommerce.com/api/v1/claims/8b7a6c5d-4e3f-4a2b-9c1d-0e9f8a7b6c5d/evidence" \
  -H "X-Cleared-Key: $CLEARED_KEY" \
  -H "Content-Type: application/json" \
  -d @draft.json
Example response for POST /claims/{claim_id}/evidence
{
  "object": "claim",
  "id": "8b7a6c5d-4e3f-4a2b-9c1d-0e9f8a7b6c5d",
  "text": "Helps you fall asleep faster",
  "wording": "Helps you fall asleep faster.*",
  "status": "approved_qualified",
  "status_label": "Use with the qualifier",
  "products": [
    "Sleep gummies"
  ],
  "platforms": [],
  "allowed_wording": "Helps you fall asleep faster.*",
  "qualifier": "*In an 8-week study of 120 adults, compared with a placebo.",
  "say_instead": [
    {
      "say": "Helps you fall asleep faster.*",
      "avoid": "Cures insomnia"
    }
  ],
  "rule_ids": [
    "proof"
  ],
  "note": "Keep the qualifier on the same screen as the claim.",
  "request_note": null,
  "evidence_ids": [
    "e1d2c3b4-a5f6-4e7d-8c9b-0a1f2e3d4c5b"
  ],
  "support": [
    {
      "evidence_id": "e1d2c3b4-a5f6-4e7d-8c9b-0a1f2e3d4c5b",
      "title": "Sleep onset study, 2025",
      "read": true,
      "verdict": "supports",
      "because": "Participants fell asleep 11 minutes faster than with a placebo.",
      "wording_it_supports": "Helps you fall asleep faster",
      "limits": [
        "Adults only",
        "Eight weeks of use"
      ]
    }
  ],
  "requested_by": {
    "id": "9a7c5e3b-1d2f-4b6a-8c0e-3f5d7b9a1c2e",
    "name": "Dana Hall"
  },
  "decided_at": "2026-11-28T17:00:00Z",
  "created_at": "2026-11-25T10:00:00Z",
  "updated_at": "2026-11-28T17:00:00Z"
}
Request schema for POST /claims/{claim_id}/evidence (JSON Schema)
{
  "additionalProperties": false,
  "description": "Link proof files to an entry. A decided entry stays decided; the specialist sees the new proof.",
  "properties": {
    "evidence_ids": {
      "items": {
        "format": "uuid",
        "type": "string"
      },
      "maxItems": 20,
      "minItems": 1,
      "title": "Evidence Ids",
      "type": "array"
    }
  },
  "required": [
    "evidence_ids"
  ],
  "title": "ClaimEvidenceRequest",
  "type": "object"
}
Response schema for POST /claims/{claim_id}/evidence (JSON Schema)
{
  "additionalProperties": false,
  "description": "One entry in your claims library. Only a specialist moves an entry out of pending.",
  "properties": {
    "object": {
      "const": "claim",
      "default": "claim",
      "title": "Object",
      "type": "string"
    },
    "id": {
      "format": "uuid",
      "title": "Id",
      "type": "string"
    },
    "text": {
      "description": "The claim as your team wrote it.",
      "title": "Text",
      "type": "string"
    },
    "wording": {
      "description": "The words to use: the cleared wording when there is one.",
      "title": "Wording",
      "type": "string"
    },
    "status": {
      "enum": [
        "pending",
        "approved",
        "approved_qualified",
        "not_allowed",
        "needs_evidence"
      ],
      "title": "Status",
      "type": "string"
    },
    "status_label": {
      "title": "Status Label",
      "type": "string"
    },
    "products": {
      "description": "Empty means every product.",
      "items": {
        "type": "string"
      },
      "title": "Products",
      "type": "array"
    },
    "platforms": {
      "description": "Empty means every platform.",
      "items": {
        "type": "string"
      },
      "title": "Platforms",
      "type": "array"
    },
    "allowed_wording": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Allowed Wording"
    },
    "qualifier": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "What must run next to the claim, wherever it runs.",
      "title": "Qualifier"
    },
    "say_instead": {
      "default": [],
      "items": {
        "additionalProperties": false,
        "properties": {
          "say": {
            "title": "Say",
            "type": "string"
          },
          "avoid": {
            "title": "Avoid",
            "type": "string"
          }
        },
        "required": [
          "say",
          "avoid"
        ],
        "title": "SayInstead",
        "type": "object"
      },
      "title": "Say Instead",
      "type": "array"
    },
    "rule_ids": {
      "default": [],
      "items": {
        "type": "string"
      },
      "title": "Rule Ids",
      "type": "array"
    },
    "note": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "The specialist's note to your team.",
      "title": "Note"
    },
    "request_note": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Why your team asked for it.",
      "title": "Request Note"
    },
    "evidence_ids": {
      "default": [],
      "items": {
        "format": "uuid",
        "type": "string"
      },
      "title": "Evidence Ids",
      "type": "array"
    },
    "support": {
      "default": [],
      "items": {
        "additionalProperties": false,
        "description": "What one linked proof file supports for this claim, once someone at Cleared has read it.",
        "properties": {
          "evidence_id": {
            "format": "uuid",
            "title": "Evidence Id",
            "type": "string"
          },
          "title": {
            "title": "Title",
            "type": "string"
          },
          "read": {
            "description": "False until someone at Cleared has read the file.",
            "title": "Read",
            "type": "boolean"
          },
          "verdict": {
            "anyOf": [
              {
                "enum": [
                  "supports",
                  "partly",
                  "does_not_support"
                ],
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Verdict"
          },
          "because": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Because"
          },
          "wording_it_supports": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Wording It Supports"
          },
          "limits": {
            "default": [],
            "items": {
              "type": "string"
            },
            "title": "Limits",
            "type": "array"
          }
        },
        "required": [
          "evidence_id",
          "title",
          "read"
        ],
        "title": "ClaimSupport",
        "type": "object"
      },
      "title": "Support",
      "type": "array"
    },
    "requested_by": {
      "anyOf": [
        {
          "additionalProperties": false,
          "description": "A member of your own workspace.",
          "properties": {
            "id": {
              "format": "uuid",
              "title": "Id",
              "type": "string"
            },
            "name": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Name"
            }
          },
          "required": [
            "id"
          ],
          "title": "Person",
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "default": null
    },
    "decided_at": {
      "anyOf": [
        {
          "format": "date-time",
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Decided At"
    },
    "created_at": {
      "format": "date-time",
      "title": "Created At",
      "type": "string"
    },
    "updated_at": {
      "format": "date-time",
      "title": "Updated At",
      "type": "string"
    }
  },
  "required": [
    "id",
    "text",
    "wording",
    "status",
    "status_label",
    "products",
    "platforms",
    "created_at",
    "updated_at"
  ],
  "title": "Claim",
  "type": "object"
}

GET /evidence

List proof files Scope: library:read

The files in your proof library, newest first.

Parameters
NameInTypeDescription
cursorOptional query string next_cursor from the previous page.
limitOptional query integer How many to return, 1 to 100. Default 25. Maximum 100.
curl -H "X-Cleared-Key: $CLEARED_KEY" \
  "https://clearedcommerce.com/api/v1/evidence"
Example response for GET /evidence
{
  "object": "list",
  "data": [
    {
      "object": "evidence_file",
      "id": "e1d2c3b4-a5f6-4e7d-8c9b-0a1f2e3d4c5b",
      "title": "Sleep onset study, 2025",
      "kind": "study",
      "file_name": "sleep-onset-study-2025.pdf",
      "summary": "Randomized, placebo-controlled, 120 adults, 8 weeks.",
      "uploaded_by": {
        "id": "9a7c5e3b-1d2f-4b6a-8c0e-3f5d7b9a1c2e",
        "name": "Dana Hall"
      },
      "created_at": "2026-11-25T09:55:00Z"
    }
  ],
  "has_more": false,
  "next_cursor": null
}

POST /evidence

Add a proof file Scope: library:write Changes your workspace

Takes an Idempotency-Key header.

Add a file you uploaded (POST /uploads with purpose evidence) to your proof library. Then link it to an entry, or name it when you dispute a finding.

Send a JSON body. Saved as draft.json:

{
  "title": "Sleep onset study, 2025",
  "kind": "study",
  "upload_key": "brands/5b1f0c1e-7a56-4d0e-9f43-2f0d5c1a9b10/evidence/1f2e3d4c5b6a79880716253443526170/sleep-onset-study-2025.pdf",
  "file_name": "sleep-onset-study-2025.pdf"
}
curl -X POST "https://clearedcommerce.com/api/v1/evidence" \
  -H "X-Cleared-Key: $CLEARED_KEY" \
  -H "Content-Type: application/json" \
  -d @draft.json
Example response for POST /evidence
{
  "object": "evidence_file",
  "id": "e1d2c3b4-a5f6-4e7d-8c9b-0a1f2e3d4c5b",
  "title": "Sleep onset study, 2025",
  "kind": "study",
  "file_name": "sleep-onset-study-2025.pdf",
  "summary": "Randomized, placebo-controlled, 120 adults, 8 weeks.",
  "uploaded_by": {
    "id": "9a7c5e3b-1d2f-4b6a-8c0e-3f5d7b9a1c2e",
    "name": "Dana Hall"
  },
  "created_at": "2026-11-25T09:55:00Z"
}
Request schema for POST /evidence (JSON Schema)
{
  "additionalProperties": false,
  "description": "Add an uploaded file to your proof library (POST /uploads with purpose evidence first).",
  "properties": {
    "title": {
      "maxLength": 300,
      "minLength": 1,
      "title": "Title",
      "type": "string"
    },
    "kind": {
      "default": "other",
      "enum": [
        "study",
        "pricing",
        "certificate",
        "other"
      ],
      "title": "Kind",
      "type": "string"
    },
    "upload_key": {
      "maxLength": 600,
      "minLength": 1,
      "title": "Upload Key",
      "type": "string"
    },
    "file_name": {
      "anyOf": [
        {
          "maxLength": 255,
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "File Name"
    },
    "summary": {
      "anyOf": [
        {
          "maxLength": 4000,
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Summary"
    }
  },
  "required": [
    "title",
    "upload_key"
  ],
  "title": "EvidenceFileRequest",
  "type": "object"
}
Response schema for POST /evidence (JSON Schema)
{
  "additionalProperties": false,
  "properties": {
    "object": {
      "const": "evidence_file",
      "default": "evidence_file",
      "title": "Object",
      "type": "string"
    },
    "id": {
      "format": "uuid",
      "title": "Id",
      "type": "string"
    },
    "title": {
      "title": "Title",
      "type": "string"
    },
    "kind": {
      "title": "Kind",
      "type": "string"
    },
    "file_name": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "File Name"
    },
    "summary": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Summary"
    },
    "uploaded_by": {
      "anyOf": [
        {
          "additionalProperties": false,
          "description": "A member of your own workspace.",
          "properties": {
            "id": {
              "format": "uuid",
              "title": "Id",
              "type": "string"
            },
            "name": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Name"
            }
          },
          "required": [
            "id"
          ],
          "title": "Person",
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "default": null
    },
    "created_at": {
      "format": "date-time",
      "title": "Created At",
      "type": "string"
    }
  },
  "required": [
    "id",
    "title",
    "kind",
    "created_at"
  ],
  "title": "EvidenceFile",
  "type": "object"
}

POST /findings/{finding_id}/responses

Respond to a finding Scope: findings:write Changes your workspace

Takes an Idempotency-Key header.

Answer a finding the way the buttons in the workspace and in Slack do: use the suggested fix, say the fix is live, ask the specialist a question, or dispute the finding with proof. Done as the member your key or app acts for, who needs decision rights.

Parameters
NameInTypeDescription
finding_idRequired path UUID No further description

Send a JSON body. Saved as draft.json:

{
  "type": "dispute",
  "message": "The sale really ends tonight: it started Monday and the end date is on the page.",
  "evidence_ids": [
    "e1d2c3b4-a5f6-4e7d-8c9b-0a1f2e3d4c5b"
  ]
}
curl -X POST "https://clearedcommerce.com/api/v1/findings/7e3d9a10-2c4b-4f6e-a1d8-5b9c0e7f2a41/responses" \
  -H "X-Cleared-Key: $CLEARED_KEY" \
  -H "Content-Type: application/json" \
  -d @draft.json
Example response for POST /findings/{finding_id}/responses
{
  "object": "finding_response",
  "id": "fr_3b8f0c2d9e4a1f6b7c5d8e2a",
  "finding_id": "7e3d9a10-2c4b-4f6e-a1d8-5b9c0e7f2a41",
  "review_id": "0b9c2f6e-3d1a-4c58-8e7b-6a1f4d2c9e03",
  "type": "dispute",
  "status": "queued",
  "duplicate": false,
  "created_at": "2026-12-05T15:30:00Z"
}
Request schema for POST /findings/{finding_id}/responses (JSON Schema)
{
  "additionalProperties": false,
  "description": "Your team's answer to a finding: the same calls as the buttons in the workspace and in Slack.",
  "properties": {
    "type": {
      "description": "use_fix: you will make the suggested change. fixed_live: the change is live (after use_fix); a person checks it. question: ask the specialist. dispute: you disagree. With evidence_ids it says you have proof; without, that the line is allowed as written. Your specialist decides either way.",
      "enum": [
        "use_fix",
        "fixed_live",
        "question",
        "dispute"
      ],
      "title": "Type",
      "type": "string"
    },
    "message": {
      "anyOf": [
        {
          "maxLength": 2000,
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Required for question and dispute: the question, or why you disagree. Optional otherwise.",
      "title": "Message"
    },
    "live_url": {
      "anyOf": [
        {
          "maxLength": 2000,
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "fixed_live: where the fixed version runs.",
      "title": "Live Url"
    },
    "evidence_ids": {
      "default": [],
      "description": "dispute: proof files already in your claims library.",
      "items": {
        "format": "uuid",
        "type": "string"
      },
      "maxItems": 10,
      "title": "Evidence Ids",
      "type": "array"
    }
  },
  "required": [
    "type"
  ],
  "title": "FindingResponseRequest",
  "type": "object"
}
Response schema for POST /findings/{finding_id}/responses (JSON Schema)
{
  "additionalProperties": false,
  "properties": {
    "object": {
      "const": "finding_response",
      "default": "finding_response",
      "title": "Object",
      "type": "string"
    },
    "id": {
      "description": "Stable for the same request: a retry returns the same id.",
      "title": "Id",
      "type": "string"
    },
    "finding_id": {
      "format": "uuid",
      "title": "Finding Id",
      "type": "string"
    },
    "review_id": {
      "format": "uuid",
      "title": "Review Id",
      "type": "string"
    },
    "type": {
      "enum": [
        "use_fix",
        "fixed_live",
        "question",
        "dispute"
      ],
      "title": "Type",
      "type": "string"
    },
    "status": {
      "description": "queued: the decision is applied in a moment, and finding.decided is sent when it is. recorded: written now.",
      "enum": [
        "queued",
        "recorded"
      ],
      "title": "Status",
      "type": "string"
    },
    "duplicate": {
      "description": "True when this repeats a response already made.",
      "title": "Duplicate",
      "type": "boolean"
    },
    "created_at": {
      "format": "date-time",
      "title": "Created At",
      "type": "string"
    }
  },
  "required": [
    "id",
    "finding_id",
    "review_id",
    "type",
    "status",
    "duplicate",
    "created_at"
  ],
  "title": "FindingResponse",
  "type": "object"
}

GET /rules

List or search rules No scope needed

Every rule a review checks against, in rulebook order. Not paginated: the rulebook is short.

Parameters
NameInTypeDescription
qOptional query string Words to look for in a rule.
regulatorOptional query string Only rules this regulator enforces, e.g. ftc.
curl -H "X-Cleared-Key: $CLEARED_KEY" \
  "https://clearedcommerce.com/api/v1/rules?regulator=ftc"
Example response for GET /rules
{
  "object": "list",
  "version": "1.2",
  "notice": "General information, not legal advice.",
  "data": [
    {
      "object": "rule",
      "id": "price",
      "title": "A “was” price has to be a price you really charged",
      "regulators": [
        "ftc",
        "ca"
      ],
      "status": "in_force",
      "effective": null,
      "plain": "If you show a crossed-out or “regular” price, you must have actually offered it, openly and in good faith, for a real stretch of time.",
      "look_for": [
        "Crossed-out, “was” and “regular” prices"
      ],
      "example_bad": "“50% off. Was $64, now $32.” It has always sold for $40.",
      "example_good": "“20% off. $32, usually $40.”",
      "law": [
        {
          "regulator": "ftc",
          "citation": "16 CFR § 233.1",
          "name": "Guides Against Deceptive Pricing: former prices",
          "summary": "A former price has to be one you offered openly and in good faith for a reasonably substantial period."
        }
      ],
      "leads_to": [
        "Demand letters and class actions over reference prices, especially in California"
      ],
      "penalties": [
        {
          "regulator": "ca",
          "amount": "$2,500",
          "per": "per violation",
          "when": null
        }
      ]
    }
  ],
  "has_more": false,
  "next_cursor": null
}

GET /rules/{rule_id}

Get a rule No scope needed

A finding's rule_id names one of these.

Parameters
NameInTypeDescription
rule_idRequired path string No further description
curl -H "X-Cleared-Key: $CLEARED_KEY" \
  "https://clearedcommerce.com/api/v1/rules/price"
Example response for GET /rules/{rule_id}
{
  "object": "rule",
  "id": "price",
  "title": "A “was” price has to be a price you really charged",
  "regulators": [
    "ftc",
    "ca"
  ],
  "status": "in_force",
  "effective": null,
  "plain": "If you show a crossed-out or “regular” price, you must have actually offered it, openly and in good faith, for a real stretch of time.",
  "look_for": [
    "Crossed-out, “was” and “regular” prices"
  ],
  "example_bad": "“50% off. Was $64, now $32.” It has always sold for $40.",
  "example_good": "“20% off. $32, usually $40.”",
  "law": [
    {
      "regulator": "ftc",
      "citation": "16 CFR § 233.1",
      "name": "Guides Against Deceptive Pricing: former prices",
      "summary": "A former price has to be one you offered openly and in good faith for a reasonably substantial period."
    }
  ],
  "leads_to": [
    "Demand letters and class actions over reference prices, especially in California"
  ],
  "penalties": [
    {
      "regulator": "ca",
      "amount": "$2,500",
      "per": "per violation",
      "when": null
    }
  ]
}

POST /uploads

Get an upload URL for a file Scope: reviews:write Changes your workspace

Takes an Idempotency-Key header.

A short-lived URL to PUT one file to: an ad's video or image, an .eml email, a text message's screenshot, or a proof file for your claims library. Name the returned key in the request the file belongs to. media, email and screenshot need reviews:write; evidence needs library:write or findings:write (to dispute a finding with it).

Send a JSON body. Saved as draft.json:

{
  "purpose": "media",
  "file_name": "spring-story-4.mp4",
  "content_type": "video/mp4",
  "size": 18874368
}
curl -X POST "https://clearedcommerce.com/api/v1/uploads" \
  -H "X-Cleared-Key: $CLEARED_KEY" \
  -H "Content-Type: application/json" \
  -d @draft.json
Example response for POST /uploads
{
  "object": "upload",
  "purpose": "media",
  "upload_url": "https://uploads.clearedcommerce.com/…signed…",
  "method": "PUT",
  "headers": {
    "Content-Type": "video/mp4"
  },
  "key": "brands/5b1f0c1e-7a56-4d0e-9f43-2f0d5c1a9b10/uploads/8f14e45fceea167a5a36dedd4bea2543/spring-story-3.mp4",
  "max_bytes": 524288000,
  "expires_at": "2026-12-05T15:25:00Z"
}
Request schema for POST /uploads (JSON Schema)
{
  "additionalProperties": false,
  "description": "Ask where to PUT one file. Then send `key` with the submission or the proof it belongs to.",
  "properties": {
    "purpose": {
      "description": "media: an ad's video or image (MP4, MOV, WebM, JPEG, PNG). email: one .eml file. screenshot: a text message's screenshot (JPEG or PNG). evidence: a file for your claims library (PDF, Word, spreadsheet, image or zip).",
      "enum": [
        "media",
        "email",
        "screenshot",
        "evidence"
      ],
      "title": "Purpose",
      "type": "string"
    },
    "file_name": {
      "maxLength": 255,
      "minLength": 1,
      "title": "File Name",
      "type": "string"
    },
    "content_type": {
      "anyOf": [
        {
          "maxLength": 120,
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Required for media, screenshot and evidence. The PUT must send exactly this type.",
      "title": "Content Type"
    },
    "size": {
      "anyOf": [
        {
          "minimum": 1,
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Bytes, if you know them. Checked against the cap.",
      "title": "Size"
    }
  },
  "required": [
    "purpose",
    "file_name"
  ],
  "title": "UploadRequest",
  "type": "object"
}
Response schema for POST /uploads (JSON Schema)
{
  "additionalProperties": false,
  "properties": {
    "object": {
      "const": "upload",
      "default": "upload",
      "title": "Object",
      "type": "string"
    },
    "purpose": {
      "enum": [
        "media",
        "email",
        "screenshot",
        "evidence"
      ],
      "title": "Purpose",
      "type": "string"
    },
    "upload_url": {
      "description": "PUT the file's bytes here, with `headers`, before `expires_at`.",
      "title": "Upload Url",
      "type": "string"
    },
    "method": {
      "const": "PUT",
      "default": "PUT",
      "title": "Method",
      "type": "string"
    },
    "headers": {
      "additionalProperties": {
        "type": "string"
      },
      "title": "Headers",
      "type": "object"
    },
    "key": {
      "description": "Name this in the submission or the proof file it belongs to.",
      "title": "Key",
      "type": "string"
    },
    "max_bytes": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Max Bytes"
    },
    "expires_at": {
      "format": "date-time",
      "title": "Expires At",
      "type": "string"
    }
  },
  "required": [
    "purpose",
    "upload_url",
    "headers",
    "key",
    "expires_at"
  ],
  "title": "Upload",
  "type": "object"
}

GET /usage

Usage and limits Scope: usage:read

What the workspace has used this billing period against its plan, and the API's limits.

No parameters.

curl -H "X-Cleared-Key: $CLEARED_KEY" \
  "https://clearedcommerce.com/api/v1/usage"
Example response for GET /usage
{
  "object": "usage",
  "plan": "growth",
  "period_start": "2026-12-01",
  "period_end": "2026-12-31",
  "ad_versions": 84,
  "pages": 9,
  "prelaunch_reviews": 3,
  "preflight_checks": 211,
  "limits": {
    "ad_versions": 250,
    "pages": 50,
    "prelaunch_reviews": 10
  },
  "api": {
    "requests_per_minute": 120,
    "preflight_checks_per_minute": 30,
    "api_keys": 10,
    "webhook_endpoints": 10
  }
}

GET /watch

Watch summary Scope: watch:read

The counts from the weekly digest, the creators' and affiliates' pages (pending ones wait for your team to confirm or reject them), and the Watch findings a specialist has sent.

No parameters.

curl -H "X-Cleared-Key: $CLEARED_KEY" \
  "https://clearedcommerce.com/api/v1/watch"
Example response for GET /watch
{
  "object": "watch_summary",
  "watching": true,
  "line": "42 ads live, 18 creatives, 6 creators' pages. 3 new this week, 1 to change.",
  "live_ads": 42,
  "creatives": 18,
  "creator_pages": 6,
  "new_this_week": 3,
  "to_change": 1,
  "pending_pages": 1,
  "last_sweep_at": "2026-12-05T06:00:00Z",
  "pages": [
    {
      "object": "watch_page",
      "id": "104857600123456",
      "name": "Sleep with Sam",
      "status": "pending",
      "attribution": "creator",
      "live_ads": 3,
      "creatives": 2,
      "first_seen_at": "2026-12-04T06:00:00Z",
      "decided_at": null,
      "decided_by": null,
      "library_url": "https://www.facebook.com/ads/library/?view_all_page_id=104857600123456"
    }
  ],
  "findings": [
    {
      "review_id": "0b9c2f6e-3d1a-4c58-8e7b-6a1f4d2c9e03",
      "number": 2044,
      "asset_name": "Sleep with Sam: “cured my insomnia”",
      "page_name": "Sleep with Sam",
      "attribution": "creator",
      "sent_at": "2026-12-04T16:00:00Z",
      "open_findings": 1
    }
  ]
}

GET /watch/pages

List creators' and affiliates' pages Scope: watch:read

Pages that have run ads in your brand's name, other than your own. Pending first. Not paginated.

Parameters
NameInTypeDescription
statusOptional query enum Only pages with this status. One of pending, confirmed, rejected.
curl -H "X-Cleared-Key: $CLEARED_KEY" \
  "https://clearedcommerce.com/api/v1/watch/pages?status=pending"
Example response for GET /watch/pages
{
  "object": "list",
  "data": [
    {
      "object": "watch_page",
      "id": "104857600123456",
      "name": "Sleep with Sam",
      "status": "pending",
      "attribution": "creator",
      "live_ads": 3,
      "creatives": 2,
      "first_seen_at": "2026-12-04T06:00:00Z",
      "decided_at": null,
      "decided_by": null,
      "library_url": "https://www.facebook.com/ads/library/?view_all_page_id=104857600123456"
    }
  ],
  "has_more": false,
  "next_cursor": null
}

POST /watch/pages/{page_id}

Confirm or reject a page Scope: watch:write Changes your workspace

Takes an Idempotency-Key header.

confirmed: the page is a creator or affiliate of yours; its ads stay watched. rejected: it is not; its ads are ignored from the next sweep on and left out of every count now.

Parameters
NameInTypeDescription
page_idRequired path string No further description

Send a JSON body. Saved as draft.json:

{
  "status": "confirmed"
}
curl -X POST "https://clearedcommerce.com/api/v1/watch/pages/104857600123456" \
  -H "X-Cleared-Key: $CLEARED_KEY" \
  -H "Content-Type: application/json" \
  -d @draft.json
Example response for POST /watch/pages/{page_id}
{
  "object": "watch_page",
  "id": "104857600123456",
  "name": "Sleep with Sam",
  "status": "confirmed",
  "attribution": "creator",
  "live_ads": 3,
  "creatives": 2,
  "first_seen_at": "2026-12-04T06:00:00Z",
  "decided_at": "2026-12-05T15:40:00Z",
  "decided_by": "your_team",
  "library_url": "https://www.facebook.com/ads/library/?view_all_page_id=104857600123456"
}
Request schema for POST /watch/pages/{page_id} (JSON Schema)
{
  "additionalProperties": false,
  "properties": {
    "status": {
      "description": "confirmed: one of yours, keep watching its ads. rejected: not yours, ignore its ads.",
      "enum": [
        "confirmed",
        "rejected"
      ],
      "title": "Status",
      "type": "string"
    }
  },
  "required": [
    "status"
  ],
  "title": "WatchPageDecision",
  "type": "object"
}
Response schema for POST /watch/pages/{page_id} (JSON Schema)
{
  "additionalProperties": false,
  "description": "A page that has run ads in your brand's name: a creator's or an affiliate's.",
  "properties": {
    "object": {
      "const": "watch_page",
      "default": "watch_page",
      "title": "Object",
      "type": "string"
    },
    "id": {
      "description": "The platform's page id.",
      "title": "Id",
      "type": "string"
    },
    "name": {
      "title": "Name",
      "type": "string"
    },
    "status": {
      "description": "pending: waiting for your team to confirm or reject it. A rejected page's ads are ignored.",
      "enum": [
        "pending",
        "confirmed",
        "rejected"
      ],
      "title": "Status",
      "type": "string"
    },
    "attribution": {
      "enum": [
        "creator",
        "partnership"
      ],
      "title": "Attribution",
      "type": "string"
    },
    "live_ads": {
      "title": "Live Ads",
      "type": "integer"
    },
    "creatives": {
      "title": "Creatives",
      "type": "integer"
    },
    "first_seen_at": {
      "anyOf": [
        {
          "format": "date-time",
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "First Seen At"
    },
    "decided_at": {
      "anyOf": [
        {
          "format": "date-time",
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Decided At"
    },
    "decided_by": {
      "anyOf": [
        {
          "enum": [
            "your_team",
            "cleared"
          ],
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Decided By"
    },
    "library_url": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Library Url"
    }
  },
  "required": [
    "id",
    "name",
    "status",
    "attribution",
    "live_ads",
    "creatives"
  ],
  "title": "WatchPage",
  "type": "object"
}

GET /watch/creatives

List creatives found running Scope: watch:read

Creatives running in your brand's name, newest first, each with the ads that share it.

Parameters
NameInTypeDescription
whichOptional query enum live: still running. new: first seen this week. ended: stopped in the last 30 days. One of all, live, new, ended. Default all.
cursorOptional query string next_cursor from the previous page.
limitOptional query integer How many to return, 1 to 100. Default 25. Maximum 100.
curl -H "X-Cleared-Key: $CLEARED_KEY" \
  "https://clearedcommerce.com/api/v1/watch/creatives?which=new"
Example response for GET /watch/creatives
{
  "object": "list",
  "data": [
    {
      "object": "watch_creative",
      "id": "b1c2d3e4-f5a6-4b7c-8d9e-0f1a2b3c4d5e",
      "headline": "These cured my insomnia",
      "primary_text": "Link in bio for 20% off.",
      "format": "video",
      "first_seen_at": "2026-12-03T06:00:00Z",
      "last_seen_at": "2026-12-05T06:00:00Z",
      "ended_at": null,
      "live_variants": 2,
      "variants": [
        {
          "source_id": "998877665544332",
          "page_id": "104857600123456",
          "page_name": "Sleep with Sam",
          "attribution": "creator",
          "partner_name": null,
          "cta": "Shop now",
          "landing_domain": "northwind.example",
          "ad_url": "https://www.facebook.com/ads/library/?id=998877665544332",
          "started_on": "2026-12-02",
          "first_seen_at": "2026-12-03T06:00:00Z",
          "ended_at": null
        }
      ],
      "status": "sent",
      "review": {
        "id": "0b9c2f6e-3d1a-4c58-8e7b-6a1f4d2c9e03",
        "number": 2044,
        "stage": "your_call",
        "stage_label": "Your call"
      }
    }
  ],
  "has_more": false,
  "next_cursor": null
}

GET /webhook-endpoints

List webhook endpoints Scope: webhooks:manage

No parameters.

curl -H "X-Cleared-Key: $CLEARED_KEY" \
  "https://clearedcommerce.com/api/v1/webhook-endpoints"
Example response for GET /webhook-endpoints
{
  "object": "list",
  "data": [
    {
      "object": "webhook_endpoint",
      "id": "3c2b1a09-8f7e-4d6c-b5a4-9e8d7c6b5a4f",
      "url": "https://hooks.northwind.example/cleared",
      "description": "Ticketing",
      "event_types": [
        "finding.raised",
        "review.submitted"
      ],
      "enabled": true,
      "disabled_reason": null,
      "secret_hint": "Q2xw",
      "secret_rolled_at": null,
      "previous_secret_expires_at": null,
      "consecutive_failures": 0,
      "last_success_at": "2026-12-05T14:00:00Z",
      "last_failure_at": null,
      "created_at": "2026-11-20T09:05:00Z"
    }
  ],
  "has_more": false,
  "next_cursor": null
}

POST /webhook-endpoints

Add a webhook endpoint Scope: webhooks:manage Changes your workspace

Takes an Idempotency-Key header.

An https address on port 443 and the events it wants. The answer is the only time the signing secret is shown: store it before you do anything else.

Send a JSON body. Saved as draft.json:

{
  "url": "https://hooks.northwind.example/cleared",
  "description": "Ticketing",
  "event_types": [
    "finding.raised",
    "review.submitted"
  ]
}
curl -X POST "https://clearedcommerce.com/api/v1/webhook-endpoints" \
  -H "X-Cleared-Key: $CLEARED_KEY" \
  -H "Content-Type: application/json" \
  -d @draft.json
Example response for POST /webhook-endpoints
{
  "object": "webhook_endpoint_secret",
  "endpoint": {
    "object": "webhook_endpoint",
    "id": "3c2b1a09-8f7e-4d6c-b5a4-9e8d7c6b5a4f",
    "url": "https://hooks.northwind.example/cleared",
    "description": "Ticketing",
    "event_types": [
      "finding.raised",
      "review.submitted"
    ],
    "enabled": true,
    "disabled_reason": null,
    "secret_hint": "Q2xw",
    "secret_rolled_at": null,
    "previous_secret_expires_at": null,
    "consecutive_failures": 0,
    "last_success_at": "2026-12-05T14:00:00Z",
    "last_failure_at": null,
    "created_at": "2026-11-20T09:05:00Z"
  },
  "secret": "whsec_example_shown_once_only_Q2xw"
}
Request schema for POST /webhook-endpoints (JSON Schema)
{
  "additionalProperties": false,
  "properties": {
    "url": {
      "description": "An https address on port 443.",
      "maxLength": 2000,
      "minLength": 8,
      "title": "Url",
      "type": "string"
    },
    "description": {
      "anyOf": [
        {
          "maxLength": 200,
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Description"
    },
    "event_types": {
      "items": {
        "type": "string"
      },
      "maxItems": 20,
      "minItems": 1,
      "title": "Event Types",
      "type": "array"
    }
  },
  "required": [
    "url",
    "event_types"
  ],
  "title": "WebhookEndpointCreate",
  "type": "object"
}
Response schema for POST /webhook-endpoints (JSON Schema)
{
  "additionalProperties": false,
  "properties": {
    "object": {
      "const": "webhook_endpoint_secret",
      "default": "webhook_endpoint_secret",
      "title": "Object",
      "type": "string"
    },
    "endpoint": {
      "additionalProperties": false,
      "properties": {
        "object": {
          "const": "webhook_endpoint",
          "default": "webhook_endpoint",
          "title": "Object",
          "type": "string"
        },
        "id": {
          "format": "uuid",
          "title": "Id",
          "type": "string"
        },
        "url": {
          "title": "Url",
          "type": "string"
        },
        "description": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Description"
        },
        "event_types": {
          "items": {
            "type": "string"
          },
          "title": "Event Types",
          "type": "array"
        },
        "enabled": {
          "title": "Enabled",
          "type": "boolean"
        },
        "disabled_reason": {
          "anyOf": [
            {
              "enum": [
                "manual",
                "failures"
              ],
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Disabled Reason"
        },
        "secret_hint": {
          "description": "The signing secret's last four characters.",
          "title": "Secret Hint",
          "type": "string"
        },
        "secret_rolled_at": {
          "anyOf": [
            {
              "format": "date-time",
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Secret Rolled At"
        },
        "previous_secret_expires_at": {
          "anyOf": [
            {
              "format": "date-time",
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Previous Secret Expires At"
        },
        "consecutive_failures": {
          "title": "Consecutive Failures",
          "type": "integer"
        },
        "last_success_at": {
          "anyOf": [
            {
              "format": "date-time",
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Last Success At"
        },
        "last_failure_at": {
          "anyOf": [
            {
              "format": "date-time",
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Last Failure At"
        },
        "created_at": {
          "format": "date-time",
          "title": "Created At",
          "type": "string"
        }
      },
      "required": [
        "id",
        "url",
        "event_types",
        "enabled",
        "secret_hint",
        "consecutive_failures",
        "created_at"
      ],
      "title": "WebhookEndpoint",
      "type": "object"
    },
    "secret": {
      "description": "The signing secret. Shown only in this answer.",
      "title": "Secret",
      "type": "string"
    }
  },
  "required": [
    "endpoint",
    "secret"
  ],
  "title": "WebhookEndpointWithSecret",
  "type": "object"
}

GET /webhook-endpoints/{endpoint_id}

Get a webhook endpoint Scope: webhooks:manage

Parameters
NameInTypeDescription
endpoint_idRequired path UUID No further description
curl -H "X-Cleared-Key: $CLEARED_KEY" \
  "https://clearedcommerce.com/api/v1/webhook-endpoints/3c2b1a09-8f7e-4d6c-b5a4-9e8d7c6b5a4f"
Example response for GET /webhook-endpoints/{endpoint_id}
{
  "object": "webhook_endpoint",
  "id": "3c2b1a09-8f7e-4d6c-b5a4-9e8d7c6b5a4f",
  "url": "https://hooks.northwind.example/cleared",
  "description": "Ticketing",
  "event_types": [
    "finding.raised",
    "review.submitted"
  ],
  "enabled": true,
  "disabled_reason": null,
  "secret_hint": "Q2xw",
  "secret_rolled_at": null,
  "previous_secret_expires_at": null,
  "consecutive_failures": 0,
  "last_success_at": "2026-12-05T14:00:00Z",
  "last_failure_at": null,
  "created_at": "2026-11-20T09:05:00Z"
}

PATCH /webhook-endpoints/{endpoint_id}

Change a webhook endpoint Scope: webhooks:manage Changes your workspace

Change the address, the description or the events, or switch it off (enabled false) and on.

Parameters
NameInTypeDescription
endpoint_idRequired path UUID No further description

Send a JSON body. Saved as draft.json:

{
  "enabled": false
}
curl -X PATCH "https://clearedcommerce.com/api/v1/webhook-endpoints/3c2b1a09-8f7e-4d6c-b5a4-9e8d7c6b5a4f" \
  -H "X-Cleared-Key: $CLEARED_KEY" \
  -H "Content-Type: application/json" \
  -d @draft.json
Example response for PATCH /webhook-endpoints/{endpoint_id}
{
  "object": "webhook_endpoint",
  "id": "3c2b1a09-8f7e-4d6c-b5a4-9e8d7c6b5a4f",
  "url": "https://hooks.northwind.example/cleared",
  "description": "Ticketing",
  "event_types": [
    "finding.raised",
    "review.submitted"
  ],
  "enabled": true,
  "disabled_reason": null,
  "secret_hint": "Q2xw",
  "secret_rolled_at": null,
  "previous_secret_expires_at": null,
  "consecutive_failures": 0,
  "last_success_at": "2026-12-05T14:00:00Z",
  "last_failure_at": null,
  "created_at": "2026-11-20T09:05:00Z"
}
Request schema for PATCH /webhook-endpoints/{endpoint_id} (JSON Schema)
{
  "additionalProperties": false,
  "properties": {
    "url": {
      "anyOf": [
        {
          "maxLength": 2000,
          "minLength": 8,
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Url"
    },
    "description": {
      "anyOf": [
        {
          "maxLength": 200,
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Description"
    },
    "event_types": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "maxItems": 20,
          "minItems": 1,
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Event Types"
    },
    "enabled": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Enabled"
    }
  },
  "title": "WebhookEndpointUpdate",
  "type": "object"
}
Response schema for PATCH /webhook-endpoints/{endpoint_id} (JSON Schema)
{
  "additionalProperties": false,
  "properties": {
    "object": {
      "const": "webhook_endpoint",
      "default": "webhook_endpoint",
      "title": "Object",
      "type": "string"
    },
    "id": {
      "format": "uuid",
      "title": "Id",
      "type": "string"
    },
    "url": {
      "title": "Url",
      "type": "string"
    },
    "description": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Description"
    },
    "event_types": {
      "items": {
        "type": "string"
      },
      "title": "Event Types",
      "type": "array"
    },
    "enabled": {
      "title": "Enabled",
      "type": "boolean"
    },
    "disabled_reason": {
      "anyOf": [
        {
          "enum": [
            "manual",
            "failures"
          ],
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Disabled Reason"
    },
    "secret_hint": {
      "description": "The signing secret's last four characters.",
      "title": "Secret Hint",
      "type": "string"
    },
    "secret_rolled_at": {
      "anyOf": [
        {
          "format": "date-time",
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Secret Rolled At"
    },
    "previous_secret_expires_at": {
      "anyOf": [
        {
          "format": "date-time",
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Previous Secret Expires At"
    },
    "consecutive_failures": {
      "title": "Consecutive Failures",
      "type": "integer"
    },
    "last_success_at": {
      "anyOf": [
        {
          "format": "date-time",
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Last Success At"
    },
    "last_failure_at": {
      "anyOf": [
        {
          "format": "date-time",
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Last Failure At"
    },
    "created_at": {
      "format": "date-time",
      "title": "Created At",
      "type": "string"
    }
  },
  "required": [
    "id",
    "url",
    "event_types",
    "enabled",
    "secret_hint",
    "consecutive_failures",
    "created_at"
  ],
  "title": "WebhookEndpoint",
  "type": "object"
}

DELETE /webhook-endpoints/{endpoint_id}

Remove a webhook endpoint Scope: webhooks:manage Changes your workspace

Removes the endpoint, its delivery log and its signing secret.

Parameters
NameInTypeDescription
endpoint_idRequired path UUID No further description
curl -X DELETE "https://clearedcommerce.com/api/v1/webhook-endpoints/3c2b1a09-8f7e-4d6c-b5a4-9e8d7c6b5a4f" \
  -H "X-Cleared-Key: $CLEARED_KEY"

A 204 answer with no body.

POST /webhook-endpoints/{endpoint_id}/roll-secret

Issue a new signing secret Scope: webhooks:manage Changes your workspace

Takes an Idempotency-Key header.

For 24 hours events are signed with the old secret as well, so you can switch over without a gap.

Parameters
NameInTypeDescription
endpoint_idRequired path UUID No further description
curl -X POST "https://clearedcommerce.com/api/v1/webhook-endpoints/3c2b1a09-8f7e-4d6c-b5a4-9e8d7c6b5a4f/roll-secret" \
  -H "X-Cleared-Key: $CLEARED_KEY"
Example response for POST /webhook-endpoints/{endpoint_id}/roll-secret
{
  "object": "webhook_endpoint_secret",
  "endpoint": {
    "object": "webhook_endpoint",
    "id": "3c2b1a09-8f7e-4d6c-b5a4-9e8d7c6b5a4f",
    "url": "https://hooks.northwind.example/cleared",
    "description": "Ticketing",
    "event_types": [
      "finding.raised",
      "review.submitted"
    ],
    "enabled": true,
    "disabled_reason": null,
    "secret_hint": "Q2xw",
    "secret_rolled_at": null,
    "previous_secret_expires_at": null,
    "consecutive_failures": 0,
    "last_success_at": "2026-12-05T14:00:00Z",
    "last_failure_at": null,
    "created_at": "2026-11-20T09:05:00Z"
  },
  "secret": "whsec_example_shown_once_only_Q2xw"
}

POST /webhook-endpoints/{endpoint_id}/test

Send a test event Scope: webhooks:manage Changes your workspace

Takes an Idempotency-Key header.

Queues a ping event for this endpoint, sent once whether or not it is switched on.

Parameters
NameInTypeDescription
endpoint_idRequired path UUID No further description
curl -X POST "https://clearedcommerce.com/api/v1/webhook-endpoints/3c2b1a09-8f7e-4d6c-b5a4-9e8d7c6b5a4f/test" \
  -H "X-Cleared-Key: $CLEARED_KEY"
Example response for POST /webhook-endpoints/{endpoint_id}/test
{
  "object": "webhook_delivery",
  "id": "7a6b5c4d-3e2f-4a1b-9c8d-7e6f5a4b3c2d",
  "endpoint_id": "3c2b1a09-8f7e-4d6c-b5a4-9e8d7c6b5a4f",
  "event_id": "evt_0f1e2d3c4b5a69788796a5b4c3d2e1f0",
  "event_type": "ping",
  "status": "pending",
  "created_at": "2026-12-05T12:00:00Z"
}

Webhooks

A webhook is a POST we send to your server when something happens, so you do not have to poll the API.

Set up an endpoint

  • Workspace admins add endpoints in the workspace under Settings, Developers (/app/settings/developers). A workspace can have up to 5.
  • The URL must be https:// on port 443, with a public host name. IP addresses and private or internal addresses are refused.
  • We do not follow redirects. A 3xx answer counts as a failure.
  • When you create an endpoint we show its signing secret (it starts with whsec_) once. It is shown again only when you roll it.
  • “Send test event” sends a ping event to the endpoint. A ping is not retried.

What we send

A JSON body with the same envelope for every event:

Fields of the event envelope
FieldWhat it is
idThe event’s id. A retry or a resend of the same event carries the same id.
typeThe event type, one of the types listed below.
created_atWhen the event happened: ISO 8601, UTC.
api_versionThe API version the payload is written in.
brand_idThe brand the event belongs to.
dataThe objects the event is about. What is inside depends on the type.

These headers come with every delivery. The user agent is Cleared-Webhooks/1.0 (+https://clearedcommerce.com/developers/).

  • Cleared-Event-Id: The event’s id, the same value as id in the body. Deduplicate on it.
  • Cleared-Event-Type: The event type, the same value as type in the body.
  • Cleared-Timestamp: When this attempt was signed, in Unix seconds. The same value as t in Cleared-Signature, and new on every attempt.
  • Cleared-Signature: t=<unix seconds>,v1=<hex>. See “Verify the signature”.
  • Cleared-Delivery-Id: The id of this delivery to this endpoint. It stays the same across retries. Sending an event again from the workspace makes a new delivery with the same event id.
  • Cleared-Delivery-Attempt: Which attempt this is, counting from 1.

A delivery succeeds when your server answers with any 2xx status within 10 seconds, and accepts the connection within 5. Answer quickly and do the work afterwards.

Webhook payloads are sent to the address your workspace gave us, at your direction. They can include the name of a team member who made a decision, never an email address. What your endpoint stores is yours to manage.

Events

There is no event for a withdrawn finding in v1.

finding.raised

A reviewer confirmed a finding and sent it to your team.

When it is sent: When a reviewer sends findings to your team. One event for each finding.

Example payload for finding.raised
{
  "id": "evt_5f2a9c1e7b3d4a6f8e0c1b2d3a4f5e6d",
  "type": "finding.raised",
  "created_at": "2026-12-01T15:04:05Z",
  "api_version": "v1",
  "brand_id": "5b1f0c1e-7a56-4d0e-9f43-2f0d5c1a9b10",
  "data": {
    "finding": {
      "object": "finding",
      "id": "7e3d9a10-2c4b-4f6e-a1d8-5b9c0e7f2a41",
      "review_id": "0b9c2f6e-3d1a-4c58-8e7b-6a1f4d2c9e03",
      "position": 1,
      "rule_id": "urgency",
      "rule_title": "Deadlines and scarcity have to be real",
      "regulators": [
        "ftc"
      ],
      "type": "urgency",
      "severity": "high",
      "status": "open",
      "title": "The countdown restarts every visit",
      "explanation": "The ad says the sale ends tonight, and the same ad has run for three weeks.",
      "quote": "“Ends tonight”",
      "location": "Caption at 00:04",
      "suggested_fix": "“Spring sale: 20% off this week”",
      "fix_label": "Use a real end date",
      "no_rewrite_reason": null,
      "verified_live_at": null,
      "decisions": [],
      "created_at": "2026-12-01T15:04:05Z",
      "updated_at": "2026-12-01T15:04:05Z"
    },
    "review": {
      "object": "review",
      "id": "0b9c2f6e-3d1a-4c58-8e7b-6a1f4d2c9e03",
      "number": 2039,
      "stage": "your_call",
      "stage_label": "Your call",
      "asset": {
        "id": "c4a1d2e3-9b8f-4a67-b5c4-1e2d3f4a5b6c",
        "kind": "ad",
        "name": "Spring sale: Story 3",
        "platform": "meta",
        "placement": "Instagram Story",
        "external_id": "120212345678900123",
        "url": null,
        "pre_launch": false,
        "live": true
      },
      "findings_total": 2,
      "findings_open": 1,
      "highest_open_severity": "high",
      "specialist": {
        "name": "Jordan Ortiz",
        "title": "Compliance lead"
      },
      "record": null,
      "sent_at": "2026-12-01T15:04:05Z",
      "url": "https://clearedcommerce.com/app/reviews/0b9c2f6e-3d1a-4c58-8e7b-6a1f4d2c9e03",
      "created_at": "2026-12-01T14:20:11Z",
      "updated_at": "2026-12-01T16:42:30Z"
    }
  }
}

finding.decided

Someone on your team recorded a decision on a finding: chose the fix, accepted the risk, asked a question, or undid an earlier decision.

When it is sent: When someone on your team chooses the fix, accepts the risk, asks a question or undoes a decision. data.decision.type says which.

Example payload for finding.decided
{
  "id": "evt_8c1d2e3f4a5b6c7d8e9f0a1b2c3d4e5f",
  "type": "finding.decided",
  "created_at": "2026-12-01T16:42:30Z",
  "api_version": "v1",
  "brand_id": "5b1f0c1e-7a56-4d0e-9f43-2f0d5c1a9b10",
  "data": {
    "finding": {
      "object": "finding",
      "id": "7e3d9a10-2c4b-4f6e-a1d8-5b9c0e7f2a41",
      "review_id": "0b9c2f6e-3d1a-4c58-8e7b-6a1f4d2c9e03",
      "position": 1,
      "rule_id": "urgency",
      "rule_title": "Deadlines and scarcity have to be real",
      "regulators": [
        "ftc"
      ],
      "type": "urgency",
      "severity": "high",
      "status": "fix_chosen",
      "title": "The countdown restarts every visit",
      "explanation": "The ad says the sale ends tonight, and the same ad has run for three weeks.",
      "quote": "“Ends tonight”",
      "location": "Caption at 00:04",
      "suggested_fix": "“Spring sale: 20% off this week”",
      "fix_label": "Use a real end date",
      "no_rewrite_reason": null,
      "verified_live_at": null,
      "decisions": [
        {
          "id": "d1e2f3a4-b5c6-4d7e-8f9a-0b1c2d3e4f5a",
          "type": "use_fix",
          "where": "slack",
          "reason": null,
          "decided_by": {
            "id": "9a7c5e3b-1d2f-4b6a-8c0e-3f5d7b9a1c2e",
            "name": "Dana Hall"
          },
          "created_at": "2026-12-01T16:42:30Z"
        }
      ],
      "created_at": "2026-12-01T15:04:05Z",
      "updated_at": "2026-12-01T16:42:30Z"
    },
    "review": {
      "object": "review",
      "id": "0b9c2f6e-3d1a-4c58-8e7b-6a1f4d2c9e03",
      "number": 2039,
      "stage": "your_call",
      "stage_label": "Your call",
      "asset": {
        "id": "c4a1d2e3-9b8f-4a67-b5c4-1e2d3f4a5b6c",
        "kind": "ad",
        "name": "Spring sale: Story 3",
        "platform": "meta",
        "placement": "Instagram Story",
        "external_id": "120212345678900123",
        "url": null,
        "pre_launch": false,
        "live": true
      },
      "findings_total": 2,
      "findings_open": 1,
      "highest_open_severity": "high",
      "specialist": {
        "name": "Jordan Ortiz",
        "title": "Compliance lead"
      },
      "record": null,
      "sent_at": "2026-12-01T15:04:05Z",
      "url": "https://clearedcommerce.com/app/reviews/0b9c2f6e-3d1a-4c58-8e7b-6a1f4d2c9e03",
      "created_at": "2026-12-01T14:20:11Z",
      "updated_at": "2026-12-01T16:42:30Z"
    },
    "decision": {
      "id": "d1e2f3a4-b5c6-4d7e-8f9a-0b1c2d3e4f5a",
      "type": "use_fix",
      "where": "slack",
      "reason": null,
      "decided_by": {
        "id": "9a7c5e3b-1d2f-4b6a-8c0e-3f5d7b9a1c2e",
        "name": "Dana Hall"
      },
      "created_at": "2026-12-01T16:42:30Z"
    }
  }
}

finding.resolved

A second reviewer checked the fix live. The finding is fixed.

When it is sent: When the second reviewer verifies the fix live.

Example payload for finding.resolved
{
  "id": "evt_1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d",
  "type": "finding.resolved",
  "created_at": "2026-12-03T10:15:00Z",
  "api_version": "v1",
  "brand_id": "5b1f0c1e-7a56-4d0e-9f43-2f0d5c1a9b10",
  "data": {
    "finding": {
      "object": "finding",
      "id": "7e3d9a10-2c4b-4f6e-a1d8-5b9c0e7f2a41",
      "review_id": "0b9c2f6e-3d1a-4c58-8e7b-6a1f4d2c9e03",
      "position": 1,
      "rule_id": "urgency",
      "rule_title": "Deadlines and scarcity have to be real",
      "regulators": [
        "ftc"
      ],
      "type": "urgency",
      "severity": "high",
      "status": "fixed",
      "title": "The countdown restarts every visit",
      "explanation": "The ad says the sale ends tonight, and the same ad has run for three weeks.",
      "quote": "“Ends tonight”",
      "location": "Caption at 00:04",
      "suggested_fix": "“Spring sale: 20% off this week”",
      "fix_label": "Use a real end date",
      "no_rewrite_reason": null,
      "verified_live_at": "2026-12-03T10:15:00Z",
      "decisions": [
        {
          "id": "d1e2f3a4-b5c6-4d7e-8f9a-0b1c2d3e4f5a",
          "type": "use_fix",
          "where": "slack",
          "reason": null,
          "decided_by": {
            "id": "9a7c5e3b-1d2f-4b6a-8c0e-3f5d7b9a1c2e",
            "name": "Dana Hall"
          },
          "created_at": "2026-12-01T16:42:30Z"
        }
      ],
      "created_at": "2026-12-01T15:04:05Z",
      "updated_at": "2026-12-03T10:15:00Z"
    },
    "review": {
      "object": "review",
      "id": "0b9c2f6e-3d1a-4c58-8e7b-6a1f4d2c9e03",
      "number": 2039,
      "stage": "second_review",
      "stage_label": "Second review",
      "asset": {
        "id": "c4a1d2e3-9b8f-4a67-b5c4-1e2d3f4a5b6c",
        "kind": "ad",
        "name": "Spring sale: Story 3",
        "platform": "meta",
        "placement": "Instagram Story",
        "external_id": "120212345678900123",
        "url": null,
        "pre_launch": false,
        "live": true
      },
      "findings_total": 2,
      "findings_open": 0,
      "highest_open_severity": null,
      "specialist": {
        "name": "Jordan Ortiz",
        "title": "Compliance lead"
      },
      "record": null,
      "sent_at": "2026-12-01T15:04:05Z",
      "url": "https://clearedcommerce.com/app/reviews/0b9c2f6e-3d1a-4c58-8e7b-6a1f4d2c9e03",
      "created_at": "2026-12-01T14:20:11Z",
      "updated_at": "2026-12-01T16:42:30Z"
    }
  }
}

review.cleared

A review finished with nothing outstanding and its record is cleared.

When it is sent: When the review is cleared and its record is cleared.

Example payload for review.cleared
{
  "id": "evt_9e8d7c6b5a4f3e2d1c0b9a8f7e6d5c4b",
  "type": "review.cleared",
  "created_at": "2026-12-03T10:20:00Z",
  "api_version": "v1",
  "brand_id": "5b1f0c1e-7a56-4d0e-9f43-2f0d5c1a9b10",
  "data": {
    "review": {
      "object": "review",
      "id": "0b9c2f6e-3d1a-4c58-8e7b-6a1f4d2c9e03",
      "number": 2039,
      "stage": "cleared",
      "stage_label": "Cleared",
      "asset": {
        "id": "c4a1d2e3-9b8f-4a67-b5c4-1e2d3f4a5b6c",
        "kind": "ad",
        "name": "Spring sale: Story 3",
        "platform": "meta",
        "placement": "Instagram Story",
        "external_id": "120212345678900123",
        "url": null,
        "pre_launch": false,
        "live": true
      },
      "findings_total": 2,
      "findings_open": 0,
      "highest_open_severity": null,
      "specialist": {
        "name": "Jordan Ortiz",
        "title": "Compliance lead"
      },
      "record": {
        "id": "2f8e4b7a-6c1d-4e3f-9a0b-8d7c6e5f4a3b",
        "public_id": "CLR-AD-26-0412",
        "status": "cleared",
        "visibility": "public",
        "url": "https://clearedcommerce.com/records/CLR-AD-26-0412",
        "cleared_at": "2026-12-03T10:20:00Z"
      },
      "sent_at": "2026-12-01T15:04:05Z",
      "url": "https://clearedcommerce.com/app/reviews/0b9c2f6e-3d1a-4c58-8e7b-6a1f4d2c9e03",
      "created_at": "2026-12-01T14:20:11Z",
      "updated_at": "2026-12-03T10:20:00Z"
    },
    "record": {
      "object": "record",
      "id": "2f8e4b7a-6c1d-4e3f-9a0b-8d7c6e5f4a3b",
      "public_id": "CLR-AD-26-0412",
      "status": "cleared",
      "visibility": "public",
      "is_public": true,
      "url": "https://clearedcommerce.com/records/CLR-AD-26-0412",
      "seal_url": "https://clearedcommerce.com/seal/CLR-AD-26-0412.svg",
      "asset": {
        "id": "c4a1d2e3-9b8f-4a67-b5c4-1e2d3f4a5b6c",
        "kind": "ad",
        "name": "Spring sale: Story 3",
        "platform": "meta",
        "placement": "Instagram Story",
        "external_id": "120212345678900123",
        "url": null,
        "pre_launch": false,
        "live": true
      },
      "review_id": "0b9c2f6e-3d1a-4c58-8e7b-6a1f4d2c9e03",
      "checklist_version": "1.2",
      "cleared_at": "2026-12-03T10:20:00Z",
      "paused_at": null,
      "paused_reason": null,
      "last_live_check_at": "2026-12-04T09:00:00Z",
      "created_at": "2026-12-01T15:04:05Z"
    }
  }
}

review.completed

A review reached its end: cleared, or live with a risk your team accepted.

When it is sent: When a review ends. data.outcome is cleared or risk_accepted, so a cleared review sends both review.cleared and review.completed.

Example payload for review.completed
{
  "id": "evt_4b5c6d7e8f9a0b1c2d3e4f5a6b7c8d9e",
  "type": "review.completed",
  "created_at": "2026-12-03T10:20:00Z",
  "api_version": "v1",
  "brand_id": "5b1f0c1e-7a56-4d0e-9f43-2f0d5c1a9b10",
  "data": {
    "review": {
      "object": "review",
      "id": "0b9c2f6e-3d1a-4c58-8e7b-6a1f4d2c9e03",
      "number": 2039,
      "stage": "cleared",
      "stage_label": "Cleared",
      "asset": {
        "id": "c4a1d2e3-9b8f-4a67-b5c4-1e2d3f4a5b6c",
        "kind": "ad",
        "name": "Spring sale: Story 3",
        "platform": "meta",
        "placement": "Instagram Story",
        "external_id": "120212345678900123",
        "url": null,
        "pre_launch": false,
        "live": true
      },
      "findings_total": 2,
      "findings_open": 0,
      "highest_open_severity": null,
      "specialist": {
        "name": "Jordan Ortiz",
        "title": "Compliance lead"
      },
      "record": {
        "id": "2f8e4b7a-6c1d-4e3f-9a0b-8d7c6e5f4a3b",
        "public_id": "CLR-AD-26-0412",
        "status": "cleared",
        "visibility": "public",
        "url": "https://clearedcommerce.com/records/CLR-AD-26-0412",
        "cleared_at": "2026-12-03T10:20:00Z"
      },
      "sent_at": "2026-12-01T15:04:05Z",
      "url": "https://clearedcommerce.com/app/reviews/0b9c2f6e-3d1a-4c58-8e7b-6a1f4d2c9e03",
      "created_at": "2026-12-01T14:20:11Z",
      "updated_at": "2026-12-03T10:20:00Z"
    },
    "outcome": "cleared",
    "record": {
      "object": "record",
      "id": "2f8e4b7a-6c1d-4e3f-9a0b-8d7c6e5f4a3b",
      "public_id": "CLR-AD-26-0412",
      "status": "cleared",
      "visibility": "public",
      "is_public": true,
      "url": "https://clearedcommerce.com/records/CLR-AD-26-0412",
      "seal_url": "https://clearedcommerce.com/seal/CLR-AD-26-0412.svg",
      "asset": {
        "id": "c4a1d2e3-9b8f-4a67-b5c4-1e2d3f4a5b6c",
        "kind": "ad",
        "name": "Spring sale: Story 3",
        "platform": "meta",
        "placement": "Instagram Story",
        "external_id": "120212345678900123",
        "url": null,
        "pre_launch": false,
        "live": true
      },
      "review_id": "0b9c2f6e-3d1a-4c58-8e7b-6a1f4d2c9e03",
      "checklist_version": "1.2",
      "cleared_at": "2026-12-03T10:20:00Z",
      "paused_at": null,
      "paused_reason": null,
      "last_live_check_at": "2026-12-04T09:00:00Z",
      "created_at": "2026-12-01T15:04:05Z"
    }
  }
}

review.submitted

Something was sent in for review through the API or a connected AI app: an ad, a landing page, an email or a text message. A specialist picks it up from here.

Example payload for review.submitted
{
  "id": "evt_6e5d4c3b2a1f0e9d8c7b6a5f4e3d2c1b",
  "type": "review.submitted",
  "created_at": "2026-12-05T15:10:00Z",
  "api_version": "v1",
  "brand_id": "5b1f0c1e-7a56-4d0e-9f43-2f0d5c1a9b10",
  "data": {
    "review": {
      "object": "review",
      "id": "4d3c2b1a-0f9e-4d8c-a7b6-5e4d3c2b1a09",
      "number": 2051,
      "stage": "new",
      "stage_label": "Picked up",
      "asset": {
        "id": "a9b8c7d6-e5f4-4a3b-9c2d-1e0f9a8b7c6d",
        "kind": "ad",
        "name": "Spring sale: Story 4",
        "platform": "api",
        "placement": "Instagram Story",
        "external_id": "spring-story-4",
        "url": null,
        "pre_launch": true,
        "live": false
      },
      "findings_total": 0,
      "findings_open": 0,
      "highest_open_severity": null,
      "specialist": {
        "name": "Jordan Ortiz",
        "title": "Compliance lead"
      },
      "record": null,
      "sent_at": null,
      "url": "https://clearedcommerce.com/app/reviews/4d3c2b1a-0f9e-4d8c-a7b6-5e4d3c2b1a09",
      "created_at": "2026-12-05T15:10:00Z",
      "updated_at": "2026-12-05T15:10:00Z"
    },
    "via": "api"
  }
}

watch.page_found

Watch found a new page running ads in your brand's name. Confirm it is a creator or affiliate of yours, or reject it.

Example payload for watch.page_found
{
  "id": "evt_2c3d4e5f6a7b8c9d0e1f2a3b4c5d6e7f",
  "type": "watch.page_found",
  "created_at": "2026-12-04T06:00:00Z",
  "api_version": "v1",
  "brand_id": "5b1f0c1e-7a56-4d0e-9f43-2f0d5c1a9b10",
  "data": {
    "page": {
      "object": "watch_page",
      "id": "104857600123456",
      "name": "Sleep with Sam",
      "status": "pending",
      "attribution": "creator",
      "live_ads": 3,
      "creatives": 2,
      "first_seen_at": "2026-12-04T06:00:00Z",
      "decided_at": null,
      "decided_by": null,
      "library_url": "https://www.facebook.com/ads/library/?view_all_page_id=104857600123456"
    }
  }
}

ping

A test event, sent when you press “Send test event”. Endpoints cannot subscribe to it: it is only sent on request.

When it is sent: When an admin presses “Send test event” in the workspace. A ping is not retried.

Example payload for ping
{
  "id": "evt_0f1e2d3c4b5a69788796a5b4c3d2e1f0",
  "type": "ping",
  "created_at": "2026-12-05T12:00:00Z",
  "api_version": "v1",
  "brand_id": "5b1f0c1e-7a56-4d0e-9f43-2f0d5c1a9b10",
  "data": {
    "message": "This is a test event from Cleared.",
    "endpoint_id": "3c2b1a09-8f7e-4d6c-b5a4-9e8d7c6b5a4f"
  }
}

Verify the signature

Every delivery is signed with the endpoint’s signing secret, so you can tell it came from us and was not changed on the way.

Cleared-Signature: t=<unix seconds>,v1=<hex>

v1 is the HMAC-SHA256 of "<t>.<raw request body>", keyed with the signing secret and written as hex. To verify a delivery:

  1. Read the raw bytes of the body, before you parse the JSON. A parsed and re-serialized body will not match.
  2. Take t and every v1 value from the header.
  3. Reject the request when t is more than 300 seconds from now. This stops an old delivery from being replayed.
  4. Compute the HMAC-SHA256 of t, a period, and the raw body.
  5. Compare in constant time. Accept if any v1 matches.

Rolling a secret. After you roll a secret, each event carries two v1 values for 24 hours: one made with the new secret and one with the old. Your receiver keeps working with either secret while you switch, and no events are dropped.

Python

Standard library only. Save it as verify.py.

"""Receive Cleared webhooks and verify their signatures. Standard library only."""
import hashlib
import hmac
import json
import os
import time
from http.server import BaseHTTPRequestHandler, HTTPServer

TOLERANCE_SECONDS = 300


def verify_signature(secret, header, body, now=None, tolerance=TOLERANCE_SECONDS):
    """True when the Cleared-Signature header is valid for the raw request body (bytes)."""
    timestamp = None
    candidates = []
    for part in (header or "").split(","):
        name, _, value = part.strip().partition("=")
        if name == "t":
            timestamp = value
        elif name == "v1":
            candidates.append(value)
    if timestamp is None or not candidates:
        return False
    try:
        sent_at = int(timestamp)
    except ValueError:
        return False
    now = time.time() if now is None else now
    if abs(now - sent_at) > tolerance:
        return False  # too old or too far ahead: possibly a replay
    signed = timestamp.encode("ascii", "replace") + b"." + body
    expected = hmac.new(secret.encode(), signed, hashlib.sha256).hexdigest()
    # While a secret is being rolled there are two v1 values. Any match is enough.
    matched = False
    for candidate in candidates:
        if hmac.compare_digest(expected.encode(), candidate.encode()):
            matched = True
    return matched


class WebhookHandler(BaseHTTPRequestHandler):
    def do_POST(self):
        length = int(self.headers.get("Content-Length") or 0)
        body = self.rfile.read(length)  # the raw bytes, before any JSON parsing
        secret = os.environ["CLEARED_WEBHOOK_SECRET"]
        if not verify_signature(secret, self.headers.get("Cleared-Signature"), body):
            self.send_response(400)
            self.end_headers()
            return
        event = json.loads(body)
        # Skip event["id"] if you have seen it, queue the work, then answer straight away.
        print(event["id"], event["type"])
        self.send_response(204)
        self.end_headers()


if __name__ == "__main__":
    HTTPServer(("127.0.0.1", 8080), WebhookHandler).serve_forever()

Node

Built-in modules only. Save it as verify.mjs.

// Receive Cleared webhooks and verify their signatures. Built-in modules only.
import crypto from 'node:crypto';
import http from 'node:http';
import { pathToFileURL } from 'node:url';

const TOLERANCE_SECONDS = 300;

// rawBody is a Buffer holding the request body exactly as it arrived.
export function verifySignature(secret, header, rawBody, now = Date.now() / 1000, tolerance = TOLERANCE_SECONDS) {
  let timestamp = null;
  const candidates = [];
  for (const part of String(header || '').split(',')) {
    const at = part.indexOf('=');
    if (at === -1) continue;
    const name = part.slice(0, at).trim();
    const value = part.slice(at + 1).trim();
    if (name === 't') timestamp = value;
    else if (name === 'v1') candidates.push(value);
  }
  if (timestamp === null || !/^[0-9]+$/.test(timestamp) || candidates.length === 0) return false;
  if (Math.abs(now - Number(timestamp)) > tolerance) return false; // too old or too far ahead: possibly a replay
  const expected = crypto.createHmac('sha256', secret).update(timestamp + '.').update(rawBody).digest();
  // While a secret is being rolled there are two v1 values. Any match is enough.
  let matched = false;
  for (const candidate of candidates) {
    const given = Buffer.from(candidate, 'hex');
    // timingSafeEqual throws when the lengths differ, so check the length first.
    if (given.length === expected.length && crypto.timingSafeEqual(given, expected)) matched = true;
  }
  return matched;
}

const server = http.createServer((req, res) => {
  if (req.method !== 'POST') {
    res.writeHead(405).end();
    return;
  }
  const chunks = [];
  req.on('data', (chunk) => chunks.push(chunk));
  req.on('end', () => {
    const rawBody = Buffer.concat(chunks); // the raw bytes, before JSON.parse
    const secret = process.env.CLEARED_WEBHOOK_SECRET || '';
    if (!secret || !verifySignature(secret, req.headers['cleared-signature'], rawBody)) {
      res.writeHead(400).end();
      return;
    }
    const event = JSON.parse(rawBody.toString('utf8'));
    // Skip event.id if you have seen it, queue the work, then answer straight away.
    console.log(event.id, event.type);
    res.writeHead(204).end();
  });
});

// Start the server only when this file is run directly, so the function can be imported and tested.
if (process.argv[1] && import.meta.url === pathToFileURL(process.argv[1]).href) {
  server.listen(8080, '127.0.0.1');
}

With Express, give the route the raw body and pass it to the same function:

// express.raw leaves req.body as a Buffer of the bytes we sent. Do not put express.json() in front of this route.
app.post('/webhooks/cleared', express.raw({ type: 'application/json' }), (req, res) => {
  if (!verifySignature(process.env.CLEARED_WEBHOOK_SECRET, req.get('Cleared-Signature'), req.body)) {
    return res.sendStatus(400);
  }
  const event = JSON.parse(req.body.toString('utf8'));
  res.sendStatus(204);
});

Test your function

These values go together. Your function should accept them when the time is 1700000000, and refuse them with the real clock, because the timestamp is old.

Worked signature example
ValueExample
Signing secretwhsec_known_vector_secret
Timestamp (t)1700000000
Raw body{"id":"evt_1"}
Signed string1700000000.{"id":"evt_1"}
Signature (v1)8ac8e964823406fc8b08cc395b622a0c10cda3be336553160d475d55b90c2719
Cleared-Signature headert=1700000000,v1=8ac8e964823406fc8b08cc395b622a0c10cda3be336553160d475d55b90c2719
from verify import verify_signature  # the sample above, saved as verify.py

assert verify_signature(
    "whsec_known_vector_secret",
    "t=1700000000,v1=8ac8e964823406fc8b08cc395b622a0c10cda3be336553160d475d55b90c2719",
    "{\"id\":\"evt_1\"}".encode(),
    now=1700000000,
)
import assert from 'node:assert';
import { verifySignature } from './verify.mjs'; // the sample above, saved as verify.mjs

assert.ok(verifySignature(
  "whsec_known_vector_secret",
  "t=1700000000,v1=8ac8e964823406fc8b08cc395b622a0c10cda3be336553160d475d55b90c2719",
  Buffer.from("{\"id\":\"evt_1\"}"),
  1700000000,
));

Retries

If a delivery fails we try again, up to 8 attempts in all over about 24 hours. Each wait varies by up to 20% either way.

Wait before each retry
After failed attemptWe wait aboutThen send attempt
11 min2
25 min3
330 min4
42 h5
55 h6
68 h7
78 h8
  • A retry or a manual resend carries the same event id. Deduplicate on Cleared-Event-Id or id.
  • Events can arrive out of order, or more than once. If you need the current state, fetch the object from the API.
  • The delivery log in the workspace keeps the payload we sent, the status code and the start of your response for 30 days. Any delivery in it can be resent.

When an endpoint keeps failing

We switch an endpoint off automatically after 20 failed attempts in a row that span at least 3 days, and we email the workspace admins. An admin can switch it back on in settings.

Good practice

  • Verify the signature on every delivery, against the raw body.
  • Answer with a 2xx quickly, then do the work.
  • Deduplicate on the event id.
  • Do not depend on the order events arrive in. Fetch the object when you need its current state.
  • Roll signing secrets from time to time, and at once if one may have leaked.
  • Give each API key, and each connected app, only the scopes it needs.
  • Send an Idempotency-Key with every POST you might retry.
  • Keep keys and secrets on your server: never in a URL, and never in code that runs in a browser or an app.

Versioning and changes

The version is in the path (/api/v1) and in api_version on every event.

Within v1 we only add things:

  • new endpoints
  • new optional parameters
  • new fields in responses and events
  • new enum values
  • new event types

Write your client so that a field or an enum value it does not know is not an error.

The MCP server follows the API it calls: within v1 we add tools and resources, and add optional inputs to existing tools, but do not rename or remove them. It takes new versions of the protocol as apps adopt them, and keeps answering the earlier ones listed above.

A breaking change means a new version. We announce it by email to workspace admins, and we aim for at least 90 days in which both versions work.

Beta

The API, the MCP server and webhooks are in beta, alongside Cleared’s private beta. We may still make changes, and we will give notice when we do.

If something is missing, unclear or wrong, tell us. If it is about a request that failed, include its Cleared-Request-Id.