Skip to main content
Every endpoint lives under https://api.attensira.com/v1. Every one takes Authorization: Bearer atn_live_<32 hex>, and every one also takes an optional ?project=<workspace id> when the key’s organisation has more than one workspace — see authentication. Each endpoint below names the MCP tool it is the twin of, and answers with the same payload. Every MCP tool has one; the twins that came last are listed under Proposals, topics, skills and sharing at the end of this page. The OpenAPI document describes every verb route. A few routes below are the other way round: no MCP tool calls them yet, and they are not on api.attensira.com yet. They take the same key at https://webapp.attensira.com instead, which answers errors in its own envelope, and each says so: POST /v1/today/{id}/asks/{askId}, GET/PATCH /v1/notifications, GET /v1/outreach-mailboxes/{provider} and PATCH /v1/brand-book (the Brand Book). The work agents do on other sites is reached over MCP through get, list and act, and over REST at https://webapp.attensira.com (not on api.attensira.com yet): browser runs, directory listings, consent, the suppression list, outreach threads, entity sync, site policies and community insights. ?project= is always the workspace, never a project. A project is a work area on the wire: it is read and steered under /v1/work-areas, and a goal or a deliverable that points at one carries its id as work_area_id. Creating a project and changing its settings are in the dashboard only.

Before you start: what costs money and what destroys data

Nothing else on this page produces a bill or erases history.

Status codes

A POST that creates a durable resource answers 201. POST /v1/ask and POST /v1/automations/{id}/runs answer 202, because what they return is a handle to work in progress rather than a resource at a new URL. Everything else answers 200. Failures are the error envelope.

Find and measure

GET /v1/search

Read-only. No credits. MCP verb: search.
One search across questions, pages, Inbox asks, deliverables, automations and threads. Use it to locate something by wording when you do not have its uri.
Shell
Response
A hit is {uri, type, title, snippet} and nothing else: read the whole object with get on its uri (GET /v1/objects?uri=). type is the object type: question, page, ask (an Inbox row), deliverable, automation or thread (a session; a match inside its transcript opens the thread, with the matched words as snippet). A deliverable’s snippet is its deliverable type. A hit whose label starts with the query ranks above one that merely contains it; at equal footing questions come before pages, then asks, deliverables, automations and threads. Answers themselves are not searched — they are read verbatim through GET /v1/memory/answers/history and GET /v1/memory/answers/slice.
A snippet is at most 400 characters, and the adapters cap every other string on a hit at 400 too. A complete model answer can never come back through search. Read the thread for the full text.
Page on next_cursor: it is null on the last page. A cursor this endpoint did not hand out is a 400.

GET /v1/analytics/{area}

Read-only. No credits. MCP tool: get_analytics.
The main measurement endpoint. One call returns an aggregated, ranked slice of your tracking data for a window.
Shell
Response
total_rows is how many rows survived the filter and truncated whether limit cut them, so a short list can be told from a cut one. A tracked platform with no readings in the window appears as tracked: true, readable: false with a null rate — present, and not zero. area=bot rows carry visits, pages, purpose_mix, last_seen (null when it never came) and agents instead of the rate fields. A model can only cite a page it has fetched, so check bot before concluding a page underperforms on content — but a row here counts only what our middleware recorded, so absence is no proof nothing came.
competitor and source are workspace-wide aggregates. For the rivals and cited sources of one prompt, GET /v1/prompts/{prompt} already returns both — no second call needed.

GET /v1/prompts/{prompt}

Read-only. No credits. MCP tool: get_prompt.
Everything recorded for one prompt: its topic and country, its per-platform rates and delta, the competitors seen in its answers, and the sources those answers cited.
Shell
Response
topic is null when the prompt is not filed under one and country is null for the workspace default. Competitor and source rates are on this prompt’s own answers_read. Passing exact text saves a search round-trip when you already know the wording; inexact text will not match. Percent-encode it — a prompt containing / or ? will otherwise change the route.

GET /v1/pages

Read-only. No credits. MCP tool: get_page.
Everything recorded for one URL on your site: its citation rate overall and per platform, its delta, and the prompts whose answers cited it.
Shell
Response
The delta is always {value: null, real: false} here: the page fold has no earlier window to compare against, and the contract’s word for that is “no basis”, not a number. If this comes back empty, check GET /v1/analytics/bot before rewriting the page — a model cannot cite a page it has never fetched.

POST /v1/evidence/query

Read-only. No credits. MCP tool: query_evidence.
Your own data question as a table: one metric, grouped by up to two dimensions, filtered, over a window. It reads the same stored days and folds them the same way as the dashboard boards, so the numbers match what the dashboard shows for the same window. The body is a JSON object with the same fields, values and limits as the MCP tool: metric (required), group_by, days or from and to, the filters topic_ids, prompt_ids, engines, surface, country, markets, property_ids, competitor, intent, stage, state, domain and text_contains, and limit. The query_evidence reference lists every metric with what it can be grouped and filtered by. A field the query does not know is refused rather than ignored, so a misspelt filter cannot come back as unfiltered numbers.
Shell
Response
value is in unit, and null means unmeasured, never 0: the row’s gap says why. n is on every row; for Search Console it is the impressions behind the row. gaps names everything the answer could not measure, and an empty list is the claim that nothing is missing. day_basis says which calendar the day labels count in (slot_day, search_console or utc; see Google search). A question with no honest answer — an unknown metric, a metric grouped or filtered in a way it does not support, a from–to span over 365 days, an id the workspace does not have — is a 400 with type: "invalid_request" and a message that names the problem and what to ask instead. A question too broad to answer in time is a 422 whose message says what to narrow. days and limit outside their ranges are clamped to the nearest bound rather than refused.

GET /v1/deciding-sources

Read-only. No credits. MCP tool: deciding_sources.
Which pages and domains decided the AI answers, whether you already appear on each, and the next move for each. GET /v1/analytics/source ranks by citations; this ranks by influence over a decision. See Deciding sources. Returns groups, most influential first, one per prompt, platform and surface. Each carries a label, n, present, a recommendation, and sources ranked by weight, each with domain, url, citations, share, present and action. The full row is described under deciding_sources.

GET /v1/win-plan

Read-only. No credits. MCP tool: win_plan.
The ordered plan for winning one tracked prompt. See Win this answer. Returns prompt, n, evidence, the steps in order, rereads_at and credits_estimate, as described under win_plan.

The receipts

The numbers above are folds over stored answers. These endpoints hand back the rows themselves, verbatim. See Deep reads.

GET /v1/memory/answers/history

Read-only. No credits. MCP tool: answer_history.
Every sampled answer to one tracked prompt, verbatim and newest first, with citations and reading ids. Returns answers, readings, has_more and next_cursor. An answer over 8 KB is cut and carries truncated: true, with text_bytes the full length. A failed sample is listed with failed: true, never dropped. The row shape is described under answer_history.

GET /v1/memory/answers/slice

Read-only. No credits. MCP tool: answer_slice.
Every answer matching a predicate, verbatim. Terms AND together and select the sample; at least one is required.
Shell
The answer terms (surface, model, competitor, cited_domain, brand_named, sentiment, the brand positions and text_contains) must all hold for one sample, and only matching samples come back. Without topic_id or prompt_ids, text_contains covers at most 30 days; a wider window is a 400 saying what to narrow. The full semantics are in the answer_slice reference.

GET /v1/memory/citations/timeline

Read-only. No credits. MCP tool: citation_timeline.
One domain’s or one page’s citations per day, per platform. Returns domain, url, total, prompts and series, one entry per platform, each with points for every day of the window: day, citations, mean_position (null when nothing that day carried a position) and prompts. A zero day is a real zero.

GET /v1/memory/pages/history

Read-only. No credits. MCP tool: page_history.
One page’s versions: every version captured, when, and what changed between them. It covers your own pages and the cited and competitor pages the workspace watches. Metadata on a version taken before it was recorded reads not_captured, and is never reported as a change. Any other page on another domain is a 404. Returns url, known, and versions oldest first, each with what changed since the one before. The row shape is described under page_history.

Changes

Read-only. No credits. Served when your balance is spent. Needs read. Not yet on api.attensira.com: send these paths to https://webapp.attensira.com with the same key. Over MCP: list with type change, and get on attensira://{workspace}/change/{id}.
A change is one piece of work an agent filed: a page fix, a rewrite, an article, a listing, a post. Each is shown at its stage, in these words: planned, drafted, shipping, live, checked, or one of the four ends stopped (you used the veto), reverted (undone), failed (publishing gave up) and declined. checked means a check wrote a verdict, any verdict; what the verdict is lives on the change’s receipt. To act on a change: undo is POST /v1/changes/{id}/actions with {"action": "undo"}, and ending the 48-hour veto window early is the same route with {"action": "ship_now"} (held to the approval rules: a key needs an approve scope covering the change’s lane and effect class; a change stopped, declined or never scheduled is a 409 state_conflict); approve, decline and stop inside the veto window are act. Its draft section by section is GET /v1/changes/{id}/diff. See Changes for the lifecycle, the Weekly Ship and undo.

GET /v1/changes

This workspace’s changes, newest first.
Response
The draft itself (the text before and after) is not in the list; read it with GET /v1/changes/{id}/diff.

GET /v1/changes/

One change, the same fields as a list row. 404 (not_found) when the id is not a change in this workspace, including one in another workspace. A change written for one market from another carries translation: from (the original change’s id), language and fact_ids. See Translated changes.

POST /v1/changes//translate

Files a translation of change {id} for one market the workspace reads. Needs a key with the steer scope.
target is the market’s page, and current_value is what that page says there now, for an update. The answer is 201 with the filed change, in the same shape as GET /v1/changes/{id}, with its translation. Filing the same text again for the same market returns the same change. The translation waits for a person or for its lane’s level like any other change.

Change events

Subscribe to these with webhooks to follow a change without polling: Each change event carries change_id, project_id, kind, plugin, lane and uri, and never an action to take.

Receipts of changes

Read-only. No credits. Served when your balance is spent. Needs read. Over MCP: get/list on the receipt object type. See Receipts.

GET /v1/receipts

Every shipped change’s receipt, newest first, without the answer excerpts. limit (at most 100; a larger number is clamped, a non-number is a 400).

GET /v1/receipts/

One change’s receipt by its change id. Fields, in order: A difference inside the sampling noise is inside_noise, never moved. 404 when the id is not a change in this workspace.

Attempts

Read-only. No credits. Served when your balance is spent. Not yet on api.attensira.com and not yet read by a listed MCP tool: MCP reaches it through list(type=attempt) and get once those verbs are listed to clients. See What the win plan remembers.

GET /v1/attempts

Every piece of work filed for a tracked prompt in the last 180 days, one row per change and prompt, newest first. Filters: prompt_id, tactic (fix_page, write_asset, get_listed, answer_thread or pitch; anything else is a 400 listing the valid ones) and target (a domain or a page; a domain covers its pages).
final_verdict is the +30-day check’s alone. The same rows are attempts on GET /v1/prompts/{prompt}/detail (null when they could not be read) and on every step of GET /v1/win-plan, beside decision, skip_reason, reship_change_id and escalated_from.
Public: no key. The token is the credential. Not an MCP tool, and not on api.attensira.com: these are served by https://webapp.attensira.com, which answers errors in its own envelope.
A shared board, client report, rewrite and the client reviewer page are one link format, app.attensira.com/r/<token> (the reviewer link also opens the client portal at /portal/<token>), signed with the workspace’s share secret, and one read. (A receipt keeps its own GET /v1/receipt/{token}, and a win card its /w/<slug>.) Rotate on the receipt stops every one of them at once. Some kinds can also be taken back alone: a board’s Turn off link, the reviewer link’s Turn off and New link. Report and board links last 180 days, rewrite links 30, the reviewer link 90. Every response is sent X-Robots-Tag: noindex, nofollow, noarchive, and two allowances apply: one per client address across every share link (a burst of 60, then two requests a second), checked before the link is looked up, and one per link (a burst of 30, then one a second). Past either, it answers 429 with type: "rate_limited", Retry-After and details.retry_after in the same whole seconds; while the shared limiter is reachable, every answer also carries RateLimit-Limit, RateLimit-Remaining and RateLimit-Reset.

GET /v1/share/{token}

What the link opens: kind and exactly one payload named after it.
Two more top-level fields serve the page’s See how AI answers about you link: A link that is not ours, was copied only in part, has expired, or whose workspace rotated its links answers 401. A link whose signature does not check out answers with the same words whether or not the workspace it names exists. A board link that was turned off, or whose board was deleted, answers 404.

POST /v1/share/{token}/items/{itemId}/approve

Approves one suggested change the client reviewer page shows. Only a reviewer link can; any other link is a 401, and an item the page does not show is a 404. The link approves at most approve:own_site:safe: an item with approvable: false answers 403 with code: "scope_denied" and details.reason: "client_link_scope". Refused when the org’s credits are used up. Answers the item: {id, title, description?, reasons, source_urls, waiting_since, state, approvable, held?, change?}. The approval is recorded as client:<workspace name>.

POST /v1/share/{token}/items/{itemId}/decline

Declines it, with {"reason": "wrong" | "not_now" | "already_done" | "never_touch"}. The same rules, except that a spent balance never blocks a decline and the scope does not apply: the client can decline anything the page shows.

GET /v1/share/{token}/portal

The client portal behind a reviewer link. Only a reviewer link opens it; any other link, and a reviewer link that expired, was replaced or was turned off, is a 401.

POST /v1/share/{token}/request-link

A client whose reviewer link no longer opens asks the agency for a new one. It adds one notice to the workspace’s Inbox, and asking again while it is open adds nothing. Answers 202 with {"requested": true}. A link that still works answers 409. Only a reviewer link whose signature still checks out can ask; anything else is a 401.

Track

POST /v1/prompts

Spends credits. Answers 201. MCP tool: add_prompts.
Starts tracking one or more prompts. From the next daily run, each is read across every platform your plan includes. There is no platform field. Which surfaces a prompt runs on comes from your plan, not from the request.
Shell
201 Response
A prompt that was already tracked comes back in added with its existing id, so a repeated call is idempotent all the way out; skipped is empty today. credits_spent and credits_remaining are null because tracking is charged as the prompts are read, not on this call. Your plan caps how many prompts you can hold at once, and a paste that would exceed it is refused with a 409 naming how many slots remain — see Plans.

DELETE /v1/prompts/{prompt}

Destructive. MCP tool: remove_prompt.
Permanently stops tracking a prompt and frees its slot. Its historical data goes with it and this cannot be undone — fetch it first if you want it.
Response

POST /v1/competitors

Answers 201. No credits. MCP tool: add_competitor.
Registers a brand to detect alongside yours in answers already being collected. It creates no new readings, so it costs nothing.
201 Response
Competitor rates use the same denominator as your own, so adding one never changes your numbers.

DELETE /v1/competitors/{id}

Destructive. MCP tool: remove_competitor.
Stops scoring a rival. Past readings keep what they already recorded, so history does not move; the rival simply stops being scored from here on.
Response

Playbooks

GET /v1/public/playbooks/win-rates

Read-only. No key needed. No credits. MCP: analyze with view=playbook_win_rates; with a key, also GET /v1/views/playbook_win_rates, and on api.attensira.com GET /v1/playbooks/win-rates, which takes the same parameters and returns the same body.
The public playbook win rates, published once a night and never changed after: per playbook, lane, engine (or all) and window (14 and 30 days), the share of decided changes after which the brand was named more often, with its Wilson 95% interval. A cell is published only with at least 20 decided changes from at least 5 workspaces in at least 5 organisations; below that it says “not enough changes yet” and every number is null. See Playbook win rates. Returns day, published_at, min_changes, min_workspaces, method (wilson_95), engine_shifts (the engine-wide change windows whose changes were left out: {from, to, engines}; an empty list when there were none, and null on a night published before engine-wide changes were detected) and cells, each with playbook, playbook_label, lane (own_site, offsite or outreach; a night published before lanes reads own_site), engine, engine_label, window_days, published, rate, low, high, changes, workspaces, includes_own_workspaces and sentence. A day that is not a date, or an unknown lane, is a 400; a night with nothing published is a 404.

GET /v1/playbooks/recommend

Read-only. Needs the read scope. No credits. MCP: analyze with view=playbook_model. Served once the playbook model is turned on.
The playbooks ranked for your workspace by the cross-customer playbook model: each one’s expected win rate in the segment you ask for, shrunk toward the other workspaces’ rate in proportion to the segment’s n, and over every segment, each with n and a 95% credible interval. The ranking uses only evidence that clears the floor (20 decided changes from 5 workspaces in 5 organisations): a playbook under it ranks as if nothing had been decided, whatever the seed. One ranking in ten explores; the seed makes a ranking replay. See How agents choose. On this read every candidate counts as addressing the same questions at the same cost, so the model’s rates order them.
Response
explored is true on a ranking that drew from each playbook’s uncertainty instead of its expected rate. fallback is true when no candidate clears the floor on the engine; the comparison-page audit then leads. prior_source is fitted when the playbook’s changes on the engine clear the floor and insufficient otherwise, without saying whether there are a few changes or none. An unknown engine or state answers 400 invalid_argument with the allowed values; an unknown playbook 404 naming the nearest.

Alerts

POST /v1/alerts/{id}/counter

Needs a key with the steer scope. Answers 201 when this call filed the change, 200 when it was already filed.
Counter it on a rival alert: files one planned change in the queue to answer the rival on that prompt: a comparison page, or a pitch to a deciding source where both playbooks clear the floor on that engine and the playbook model says pitches do better (playbook is comparison_page or pitch). The change is keyed on the alert, so calling this again, from any door, returns the same change and files nothing new. Nothing is published from it without a yes.
Shell
Response
An alert from another workspace answers 404 not_found.

Automations

Every automation route is the MCP automate verb, one op each, and answers {automation, automations, status}: automation is the uri the op acted on (null for list), automations the rows it read or wrote, status what happened (listed, created, updated, started, deleted, or the automation’s own status for get). An automation is written as a spec: A body in any other shape (the older instruction, trigger, run_at_minute or tools fields) is a 400 that names the spec. The tool allow-list is set in the app.

GET /v1/automations

Read-only. No credits. MCP verb: automate, op: list.
Lists every automation with its schedule and last run. No parameters.
Response
A row’s status is active (runs on its schedule), paused (does not), or done (a once schedule that already fired). Paused and retired automations are always listed. One the product paused on its own carries retired_reason and retired_at. next_run_at is null for an event automation.

GET /v1/automations/{id}

Read-only. No credits. MCP verb: automate, op: get.
One automation in full, with its most recent run inline — so “did my Monday report run?” costs one call, not two.
Response
latest_run is null when the automation has never run. Read its thread with get for the full trace. An id that is not this workspace’s is a 404.

POST /v1/automations

Answers 201. Creating is free; each run it performs spends credits. MCP verb: automate, op: create.
Takes {spec}, with the fields above.
Shell
Returns {automation, automations: [the new row], status: "created"}.
Shell — an event automation

PATCH /v1/automations/{id}

No credits. MCP verb: automate, op: update.
A partial edit: {spec} with only the fields to change. A field you leave out is left alone (a schedule with no every keeps the schedule and changes only the time, day, zone or events it names), so pausing an automation ({"spec":{"status":"paused"}}) cannot quietly rewrite what it does. Returns {automation, automations: [the row], status: "updated"}.

POST /v1/automations/{id}/runs

Spends credits. Answers 202. MCP verb: automate, op: run.
Runs an automation immediately, outside its schedule. Returns the run’s thread, not a finished result.
Shell
Response
Read run.thread with get, or poll GET /v1/sessions/{id}. Re-sending this POST without an Idempotency-Key starts a second billed run.

DELETE /v1/automations/{id}

Destructive. MCP verb: automate, op: delete.
Permanently deletes an automation and its schedule. This cannot be undone — confirm with GET /v1/automations/{id} first. Its past runs are kept as threads.
Response

Inbox

Everything waiting on a person, and every act the dashboard’s Inbox offers on it. Each act goes through the same path as a click in the dashboard, so a yes or an answer means the same thing wherever it was given, and the action log records your key as the one who gave it. Each row’s type says which endpoint acts on it, and its ask_kind (approve, answer, do or info) says what it asks of a person: Every write here needs steer, and every yes an approve scope that covers the item; a Read only key gets 403 with the code scope_denied. Approve, answer and decline only on the person’s instruction. Every act returns next_item_ref when something else is waiting: the row the ranking puts first now, readable with GET /v1/inbox/items/{ref}.

GET /v1/inbox

Read-only. No credits. MCP tool: list_inbox.
What is waiting on a person: approvals the agent stopped for, questions, work it could not finish alone, failed automations, and approvals that expired unanswered. Each row in items carries type (work_item, ask or task), id, ref, ask_kind, title, reason, session_id and updated_at, plus ask_id on an ask. A task row also carries what it asks: task.question (prompt, up to six options, and fact_ref when it fills a profile field), task.steps, and task.verification while a Done is being checked. list_approvable is true only on a proposed change that may be approved without opening it: one whose effect can be undone and that is classed safe.
Shell
Response
The triage is the Inbox’s own ranking, the same one the dashboard, the morning brief and the daily email read. Rows that wait on the same thing fold into one decision, and top holds the first limit of them; the rest are in sections, grouped by ask_kind. total_open counts rows, decisions counts decisions, and merged_count is how many sightings are not shown as rows of their own. See At most three decisions first for the order.

GET /v1/inbox/items/{ref}

Read-only. No credits. MCP tool: get_inbox_item.
One row by its ref, in any state, in full: the whole proposal a work item would make, the question a task asks and its answer once given, a done row as done. To approve a specific version, copy work_item.change.proposal.captured_at from here into the approve body. A row folded into another by the earlier duplicate check carries merged_into, the ref of the row to read instead; one it only suspected carries possible_duplicate_of and is not hidden. New rows are no longer folded this way. A malformed ref is 400; a ref from another workspace is 404, the same as one that names nothing.

POST /v1/inbox/tasks/{id}/answer

Spends credits when the run that asked had already finished. MCP tool: answer_inbox_question.
Answers a task whose ask_kind is answer with the person’s words. The answer is saved to Company facts — the business profile field the question names, or a stated fact every later run reads — the row closes, and the run that asked is put back to work.
Request
Response
resume.status is resumed (a running run reads the answer from its next step; a finished, failed or suspended one starts a new turn on it, which spends credits), queued_after_approval (the run reads it once its pending approval is answered), not_started (the run was cancelled, or no run asked) or failed (the answer is saved, but the run could not be handed it; retry from the row’s page in the dashboard). A second answer to the same row is 409; a row that is not a question is 400.

POST /v1/inbox/tasks/{id}/resolve

No credits. MCP tool: resolve_inbox_task.
Closes a task the agent raised. On https://webapp.attensira.com the same request is POST /v1/inbox/tasks/{id}, without /resolve. A task that carries a check (a DNS record, a connection, a line on a page) is not closed by done: it stays open with verification.status: "pending", moves to in_flight, and closes on its own when the check passes. If the check still fails after its retries, the row comes back to needs_you with verification.failure saying why; sending done again checks again. Snoozing a row while its check is pending is 409. Returns the task and next_item_ref.

POST /v1/inbox/{id}/approve

No credits. MCP tool: approve_work_item.
Approves a work item and lets the agent carry the change out. The body is optional; no body is a plain yes. Idempotent: approving twice approves once, so a retry after a timeout is safe. Returns the work item and next_item_ref. A Brand Book edit (kind brand_book_edit) is approved only by a signed-in person: with a key it is 403, whatever the key’s scopes, and nothing changes. edited_value is accepted only for an article, a LinkedIn post or a rewritten passage that is still waiting, and is 400 for anything else (a fix is edited in its pull request). The edited change keeps the agent’s original, and is always a claim: it waits for a person in every approval mode and never goes out on its own. An edit that adds or changes code is 422, and nothing is approved. An edit is checked against the workspace’s rules like any draft; one that breaks a rule is 409.

POST /v1/inbox/{id}/decline

No credits. MCP tool: decline_work_item.
Declines a work item, with the reason why. The reason is what stops the same proposal coming back; the reason and note are kept on the item and in its activity. Returns the work item and next_item_ref. A Brand Book edit is declined only by a signed-in person: with a key it is 403, and it stays waiting for them.

POST /v1/inbox/asks/{id}/approve

No credits for the call; the run it lets go carries on as before. MCP tool: approve_ask.
Allows a paused run, once, the exact call it stopped to ask about. {id} is the row’s ask_id.
Response
An ask is never edited: the yes is bound to the exact arguments the run asked about, so edited_value is 400. The run is back on the queue and has not made the call yet; poll GET /v1/sessions/{id}. A session in another workspace is 404; an ask already answered, expired, or no longer the one the run is waiting on is 409.

POST /v1/inbox/asks/{id}/decline

No credits. MCP tool: decline_ask.
Refuses the call a paused run asked for. The run reads the reason and note first, then carries on without the call. Returns outcome: "rejected" in the same shape as approve. Same 404 and 409.

POST /v1/actions

No credits, except an answer, which resumes the run that asked.
One endpoint for every act on a change, an ask, a question, a thread, a rival alert, a win, a trust-graduation proposal, or the work agents do on other sites (a browser run, a consent, an outreach thread, the suppression list). Each action goes to the same path as the endpoint that does it alone (the Inbox acts above, stopping a session, undoing a change), so the rules are the same: the key that started a piece of work cannot approve it, no key approves work that cannot be undone, and a key approves only up to the lane and effect class its approve scopes name. An approve above what the key may approve is 403 scope_denied, and required_scope names the exact scope it needs, for example approve:own_site:compensable. grant (consent), connect (a credential) and approve_reply (an outreach reply) are a person’s, in the app: every key and connection that sends one gets 403 forbidden, whatever its scopes and whatever the ref, and nothing is read. act does not pause every browser run or resume one, and does not resume an outreach thread: those are the app’s. act never raises autonomy. lower_autonomy lowers one lane at once and answers result: {lane, from, to, label, applied}. A level equal to the lane’s answers applied: false and changes nothing. A level above the lane’s is 403 raise_human_only: the raise is filed in the Inbox and details.confirm_url is where a person confirms it. steps counts from the lane as it stands, so send level when a retry must be safe. A ref naming another workspace is 400. Every other action that names an autonomy level in its payload is 400, and nothing is done. A person raises a level in the app; lowering one is also PATCH /v1/settings/agents. act is the only door for a lower: the configure verb has no autonomy kind, and kind: autonomy (or any other autonomy spelling) is a 400 whose fix names lower_autonomy. undo on a change recorded as irreversible (mail sent to a person, a payment) is 409 not_reversible, saying why. Anything else goes to the change’s undo, with the same answers as acting on the change directly. stop on a change stops it inside its 48-hour window, before it ships. Send expected_state_version, or If-Match: <state_version>, to stop only the version you read (work_item.change.state_version on GET /v1/inbox/items/{ref}). A change already stopped answers the same way. A stop that arrives after the change shipped, started shipping or moved to a newer version is 409 veto_lost_race with current_state_version: get it again and decide on what it is now. A change with no window (it waits for a yes, so decline it instead) is a 409 with no code. Without reason it is 422 reason_required, with the reasons in allowed_values. MCP clients do not list act yet; until they do, this endpoint is the way in. If a service an action depends on does not answer, act tries once more. If it still fails, the error says what to do next, and sending the same request again with the same idempotency_key is safe. If the retry finds the item already moved on (409), the first try may have gone through: read the item again before acting.
Response
result is what the endpoint that does the action alone returns; a section act returns the change’s draft by section (GET /v1/changes/{id}/diff, or get on attensira://{workspace}/change_diff/{id} over MCP), with held_reason when the change runs lower than its lane. via is the agent your key names (or the assistant you connected), and every act on a change is written to that change’s activity with via=<agent>, so its history says who acted and through which agent. Status is 200, or 202 when the work runs after the answer (an undo queued, an ask let go); status says the same in the body, applied or queued.

POST /v1/plan-fixes

One credit per file that comes back with a patch, never more than max_credits. A file that comes back without one, a file sent again unchanged, a file that moved and a file already carrying its patch cost nothing.
Fixes for your own coding agent (Claude Code, Cursor). The agent sends the files it has open; each file is planned against the workspace’s red questions and comes back as a unified diff for git apply, beside a change (origin: ide, status: drafted). We never write to your repository: your agent applies the patch, commits it, and calls act with ship and {"commit_sha": "..."} (or {"url": "..."}). That marks the change live and schedules its checks at +3, +7, +14 and +30 days. Needs the steer scope and, for an API key, a spend scope. Only paths inside the workspace’s act_path_allowlist are ever patched, and never site or build configuration (package.json, *.config.*, vercel.json, …), CI, lockfiles or dotfiles; those come back in skipped as outside_allowlist and are never planned. A patch that no longer applies is made again on the next call, with no step for you: a file whose content changed is planned again and its change revised in place (regenerated: true, same change_id), and a file that moved keeps its change, which now names the new path (moved_from). A file that already carries its patch is skipped as applied, pointing at the change to ship.
Response
skipped[].reason is one of outside_allowlist, not_whole_file, too_large, no_fix, forbidden (the fix would break a rule a change may never break), underway (a change to this file is already approved or on its way: ship or decline it first), applied, budget_reached and duplicate_path.

Agent

POST /v1/ask

Spends credits. Answers 200. MCP tool: ask.
Open-ended investigation the measurement endpoints cannot answer — why a prompt is losing, what to change on a page — run by the Attensira agent, which crawls pages, audits them as a model sees them, and searches the web. Try a measurement endpoint first: /v1/analytics/{area} for any metric or ranked list, /v1/prompts/{prompt} for one named prompt, /v1/pages for one URL. Those are free and immediate; this costs credits and takes time.
Response
status is complete (the answer is present), running (poll the session after poll_after_ms) or failed (the run ended without an answer). A running response is the success case, not an error. after_seq is where this question’s turn starts in the session’s event log: the last event before it, 0 for a new session. Pass it as after to GET /v1/sessions/{id}/events to follow exactly this turn when you continue a thread.
The agent runs on an agent model — the LLM powering the chat. That is a different thing from a tracked platform, which is the answer surface Attensira reads on your behalf. Changing your agent model does not change what is measured.

GET /v1/sessions/{id}

Read-only. No credits. MCP tool: get_session.
Fetches a session started by an ask or an automation run: its status and, once finished, its answer. This is how you poll async work.
Shell
Response
status is the three-word vocabulary above; state is the engine’s own finer word, so a run parked on a question for you reads awaiting_person under a running status. The events trace shows which tools the agent called and with what arguments — the place to look when an answer seems wrong and you want to know which slice it read. answer is the agent’s last message and is filled in for a finished session whether or not the trace was asked for.

Listing, stopping and feeding sessions

GET /v1/sessions, POST /v1/sessions/{id}/cancel, DELETE /v1/sessions/{id}, POST /v1/sessions/{id}/context and POST /v1/sessions/{id}/attachments are on their own page: Sessions.

Loop health

GET /v1/loop-health

Read-only. No credits. Works on a spent balance. MCP tool: get_loop_health.
Whether the workspace’s autopilot loop is working, idle or blocked, and why, with a day-by-day record. Call it first when nothing seems to be happening. See Loop health.
Response
status is working, idle or blocked. Each runs entry has status fired, skipped or failed, and a skip carries a machine-readable reason, such as no_credits, manual_trigger, parked_on_ask, retired, paused, cap_reached, workspace_cap, budget_reached, work_area_cap, work_area_inactive, in_flight, not_worth_run or vendor_incident. New reasons are added without notice, so treat one you do not know as a skip, not an error. vendor_incident means a service we run on stopped serving our account: the run did not start, nothing is filed in your Inbox, and it runs once on its own when the service is back. See When something on our side stops. Every count is read once for its date and is not a trend. While the loop is blocked, blocked_since says when the hourly check first found it blocked in the current stretch; it is absent otherwise, and a check that finds the loop unblocked starts the next stretch afresh.

Webhooks: loop.blocked and loop.recovered

A loop blocked for 12 hours in a row sends loop.blocked, and the first check that finds it running again sends loop.recovered. Subscribe with POST /v1/webhooks ("events": ["loop.blocked", "loop.recovered"]) or the MCP subscribe verb; GET /v1/webhooks/events lists both. loop.blocked carries project_id, status, blocked_since and reasons, each reason a {code, owner, action} with owner product or customer and action reconnect, top_up, review or null. loop.recovered carries project_id, blocked_since and recovered_at. See Webhooks.

Queue

GET /v1/queue

Read-only. No credits. No MCP tool yet: call the endpoint.
Everything waiting on a person and everything running, across every workspace in your organization, in one call. It takes no project parameter: a key’s default workspace is a default, not a limit, so a key minted in one workspace still sees the whole organization’s queue.
Response
The sample shows one row of each list; a real response carries all four waiting rows the totals count.
  • needs_you lists every Inbox row waiting on a person, oldest first, each with the project_id it belongs to. type is work_item, ask or task; open it with GET /v1/inbox/items/{ref} (above) and ?project= set to its project_id.
  • running lists every live session: state is queued, running, awaiting_person or suspended. Sessions stopped on a question (needs_you: true) come first, then newest first. Finished sessions are never listed.
  • brands has one row per workspace, including workspaces with nothing waiting, most waiting first. needs_you is approvals plus tasks; awaiting_person is the part of running stopped on a question. oldest_waiting_since is null when nothing is waiting.
  • Each list returns at most 200 rows, and at most 200 live sessions are read per workspace. totals and the per-brand counts count every waiting row, and every live session up to that per-workspace limit. truncated is true when a list was cut or a workspace reached the limit.
  • A brand whose Inbox or sessions could not be read names the part in errors (inbox, sessions). Its counts for that part are unknown, not zero, and the rest of the queue still answers.

Account

GET /v1/account

Read-only. No credits. MCP tool: get_account.
The org, every workspace the credential can reach, the one this call resolved to, the credit balance, which platforms that workspace tracks, and what this credential may do. Takes an optional project.
Response
trial is the org’s trial. While active is true the org monitors and drafts: readings, measurement, reports and drafted fixes and content run, nothing ships without the person’s yes, and what paused_until_conversion names starts when the trial converts. ends_at is when it converts; credits_included is the credits the trial includes; credits_left and responses_left are the trial’s allowances less what it used. At zero credits_left drafting stops and readings go on. Not on a trial, active is false, the other fields are null and the list is empty. trial is null only when billing could not be read: never read that as “not on a trial”. Call this before reporting any per-platform number: platforms is the authority on which surfaces were queried at all, so a platform missing from it was never measured rather than measured at zero. They belong to the resolved workspace, so the array is empty whenever project is null. project is null when the organisation has several workspaces and the request named none. That is the answer, not an error — workspaces carries the ids, and every other endpoint then needs an explicit ?project=. This is the only endpoint that answers without one, which is why the “several workspaces” error elsewhere points here. scopes is never empty: a key holds read at minimum. An endpoint that fails with 403 and the code scope_denied needs a scope that is not in scopes; required_scope names it.

GET /v1/costs

Read-only. No credits. Works on a spent balance. MCP tool: get_costs.
What a UTC month has cost, in US dollars: the total, a month-end forecast, the spend by project, workspace, kind and deliverable type, with what was delivered. The same figures as the spend gauge and Settings → Money; see Costs.
Shell
Response
  • spent_usd is the month’s spend less refunds, and every breakdown adds up to it.
  • forecast_usd is spend divided by the days elapsed, times the days in the month: null for the first three days of a month, and what the month cost once it is over.
  • A null work_area_id is a workspace’s unassigned spend: chats and the Chief of staff. An empty workspace_id in by_workspace, named Across workspaces, is spend that belongs to the organisation rather than one workspace.
  • by_kind always lists agent_work, data, paid_placement and creators; nothing is charged under the last two today. unattributed appears only when a charge could not be placed.
  • delivered and waiting_on_you in by_type are null for a type we do not count. null is never 0. waiting_on_you is work finished on our side and waiting for a person to put live; it is not delivered.
  • credited_back_usd is what was credited back to the balance for the month under the work guarantee retired on 1 November 2026; 0 for every month since. It is the organisation’s even when project names a workspace.
  • Work is sold only as credits: no field is a price per deliverable or a committed volume of work.
The budget, its pace, the caps, the balance and how it is funded are not served here or anywhere a key can reach: a person sets them in Settings → Billing. The balance is on GET /v1/account.

GET /v1/ai-traffic/install

Read-only. No credits. MCP tool: get_ai_traffic_install.
Everything needed to start sending AI-crawler hits: the ingest endpoint, your workspace’s HMAC signing secret, the signature header name, the replay window, the daily cap, and a copy-pasteable edge worker. No parameters.
Response
Call it when AI traffic is empty and you need to know how to send us any. The signing secret is derived from the workspace id, so it is stable and can be shown again — unlike your API key, which is displayed exactly once.

GET /v1/wins

Read-only. No credits. Works on a spent balance. MCP tool: list_wins.
The workspace’s wins, newest first. A win is the first time an engine named your brand, or linked to your site, in an answer to a prompt that does not name your brand itself, after we had read that prompt on that engine on at least three earlier days with a successful answer and none of them did the same. Failed reads count toward neither half. Only the first naming (or link) can be a win: one that came before those three days of reading is not, and no later answer of the same kind on that prompt and engine becomes one. A win is a first since we started reading that prompt, not evidence that any work caused it. When you show one, use its sentence, which says exactly that. No parameters. Returns at most the 50 most recently found wins, and leaves dismissed wins out.
Shell
Response
kind is named (the answer named the brand) or linked (it cited a page on your domain); one prompt on one engine can give one win of each kind, never two of the same. quote is a verbatim excerpt of at most 400 characters, never edited, and null when no answer that day gave an excerpt that passed the honesty check; quote_truncated says whether it stops short of either end of the answer. cited_url is the first page on your domain the answer cited, or null. date is the day of the answer and reading_since the first day we read the prompt on that engine, both YYYY-MM-DD in the workspace’s time zone. The list is ordered by detected_at, when the win was found. seen is whether someone has opened the win in the dashboard, and unseen counts every undismissed win nobody has opened, including any beyond the 50 returned. Reading this endpoint marks nothing seen. share_url is the public link to the win card while it is shared, and null otherwise.

POST /v1/wins/{id}/link

Needs the steer scope. No credits. Works on a spent balance. Over MCP: act on attensira://{workspace}/win/{id} with relink or unlink. Not on api.attensira.com yet: send it to https://webapp.attensira.com with the same key.
Sets a win’s link by hand. {"action": "relink", "change_id": "..."} puts the win beside one of the workspace’s changes that went live before the win’s day; {"action": "unlink"} marks it not linked to our work. What you set stays until you set it again: no automatic pass changes it. See How a win is linked to a change.
Response
A change that went live on or after the win’s day answers 400; a change that did not ship in this workspace, or a win from another workspace, answers 404.

GET /v1/brief

Read-only. No credits. Works on a spent balance. MCP: the brief verb, listed since 2026-10-19 in place of get_brief and get_loop_health (both still answer by name; see the MCP changelog).
The one call to start from: today’s morning brief, whether the loop is running and why not, wins nobody has opened, what is waiting on a person, and the budget and autonomy the work runs under.
date, edition and text are the brief’s own: the day it is for (YYYY-MM-DD, in the workspace’s time zone), daily or weekly, and the whole brief rendered as text. brief is the brief document described under get_brief, its sections under brief.sections (and on a Monday their order under brief.order), without the text. loop.status is ok (work came out in the last two days), degraded (nothing stops the loop, but nothing came out) or blocked (something stops it); reason is the first reason in words, and null when the loop is ok. needs_you.count is everything waiting on a person, and top names at most three of them, in the Inbox’s order, by the URI get reads. autonomy.budget_usd is null when no monthly budget is set; projects counts the active projects by how freely they act (ask, draft, act). Each section is read on its own. A section that cannot be read is null, and unavailable names it with the reason; the rest of the brief still answers. A null there means “not read”, never “nothing”: needs_you: null does not mean nothing is waiting. When the brief itself cannot be read, brief is null and unavailable.brief gives the reason, and the top level still answers: date is the day you asked for, or today in the workspace’s time zone, and text is the same reason, never an empty string. The payload stays within 6 KB. The brief’s sections are fitted first: when a long brief would not fit, its largest sections are left out, largest first, and named in trimmed; they are still in the full brief. text gets the room that is left. When it has to be cut, it ends in … and trimmed includes "text". Beside the brief, two fields name the day’s Today thread, the session whose first message is this brief: Both are left out for a past day that never had a thread, and when the thread could not be opened; the rest of the brief still answers.

GET /v1/views/{view}

Read-only. No credits. Works on a spent balance. Needs read. MCP: the analyze verb, listed since 2026-10-19 in place of the reads it stands for.
One read-only view, answered as {"view": "<name>", "data": { … }}, where data is exactly the body of the read the view stands for. Parameters go as query keys (?area=prompt&days=7) or as one JSON object (?params={"markets":[{"country":"DE"}]}); a list of objects, such as markets, only fits the JSON form. workspace (or project) selects the workspace. An unknown view or parameter is a 400 whose allowed_values lists the valid ones; any other refusal is the underlying read’s own. Each parameter means what it means on the read it comes from, with the same defaults and the same clamping.

GET /v1/funnel

Read-only. No credits. Needs the read scope. MCP verb: analyze with view: "funnel".
The workspace’s way from sign-up to its first proven change. Every step is always listed, in order, reached or not, so a client can show the gaps without knowing the list.
The example shows three of the seven steps. reached_at is null for a step not reached yet. A step that could not be read just now is null too, with "unread": true on the step and a line in unread naming it, so “could not look” never reads as “not yet”.

GET /v1/objects/{type}/{id}

Read-only. No credits. Works on a spent balance. Needs read. MCP: the get verb, listed since 2026-10-19 in place of the older get_* reads.
One object by its address, attensira://{workspace}/{type}/{id}, answered as {"uri", "type", "workspace_id", "data"}. data is exactly the body of the object’s own read: a question is GET /v1/prompts/{prompt}, a thread is GET /v1/sessions/{id}, an ask is an Inbox row by its ref, a report is the latest published report for a cadence (latest, week, month, quarter). Any other query key goes to that read, so its own arguments keep working. workspace (or project) selects the workspace. The collection types are question, change, ask, receipt, mission, thread, source, playbook, page, automation, report, deliverable, goal, market, topic, skill, connector, win, site_policy, contradiction, proposal, change_diff, alert, community_insight, entity_sync, result, browser_run, consent, listing, outreach_thread, contact_suppression and attachment. A consent is read by its id, a listing by its domain (g2.com) and a contact_suppression by its email_hash. An unknown type is a 400 whose allowed_values lists them; an object that does not exist, or is another organization’s, is a 404. A deliverable or an attachment (a file attached to a session, read by its att_… id) also carries file, the file behind a link signed for one hour:
Anyone holding signed_url can open the file until expires_at, without a key, so pass it only to whoever should have the file. Every read signs a new link, and a link is only ever signed for the workspace the object belongs to. A deliverable’s file is its download: an article as Markdown, a picture as itself. A deliverable with nothing to download (a pull request lives on GitHub), or a moment when the link could not be signed, answers without file. Over MCP, get also returns file as a resource_link.

GET /v1/objects/{type}

Read-only. No credits. Works on a spent balance. Needs read. MCP: the list verb (and get for a one-per-workspace type), listed since 2026-10-19 in place of the older list_* reads.
A collection type listed newest first, answered as {"type", "workspace_id", "items", "next_cursor"}. Every item is the row its older list returned, with its uri added; next_cursor is null on the last page. A type with one object per workspace (account, costs, plan, brief, brand_family, brand_book, company_profile, ai_traffic_install, autonomy) answers that object here, in the same shape as GET /v1/objects/{type}/{id}.

POST /v1/today/{id}/asks/{askId}

Needs an approve scope, whatever the answer, because a yes approves the item. No credits. Answers 202.
Not on api.attensira.com yet: send it to https://webapp.attensira.com with the same key, as for webhooks. That host answers errors in its own envelope. Over MCP, act with approve or decline on attensira://{workspace}/today_ask/{thread}_{ask} answers the same card.
Answers one decision card in a Today thread. Each card’s replyTo is this path. The answer is applied to the Inbox item the card stands for, then the card is marked answered; no agent run starts. Yes approves a change, allows a run’s call once, or marks a task done. No declines the change or the call, or dismisses the task.
404 when the thread is not one of this workspace’s Today threads or has no such card. 409 when the card was already answered, or the Inbox item was handled somewhere else.

PATCH /v1/settings/agents

No credits. MCP tool: update_settings. Needs steer; changing timezone also needs configure.
How far a run may go on its own, and the workspace’s time zone. A partial edit: a field you leave out is left alone. This is the customer’s decision; change it on their instruction. See Approval. Returns the settings in force: the fields above, plus act_paths_are_default (true while the default list applies). act_path_allowlist is always the list in force, the default included. GET /v1/settings/agents returns the same fields. Switching community_answers_enabled on with a key or token that lacks configure answers 403 with the code scope_denied and required_scope: "configure", and changes nothing. Sending the value the workspace already has is not refused. It is not a raise: a drafted reply is never posted for you. With an API key or an OAuth token, this route only lowers. Lowering needs only steer, which every OAuth connection holds, so any connected assistant can stop the agent acting on its own. These count as lowering: a stricter unattended_mode, switching publish_without_approval or send_without_approval off, and removing patterns from act_path_allowlist. A list that adds a pattern the current list does not have is a raise, even if it also removes others, and so is an empty list when the current list is narrower than the default. A raise is not applied and answers 403 with the code raise_human_only. Nothing is changed and nothing is filed. The message starts “Not applied:”, and details carries outcome: "refused", the change you asked for under proposed (field, from, to) and confirm_url, the app page (Settings › Autonomy) where a signed-in person can make it. See Only a person can loosen these settings.

GET /v1/autonomy

Read-only. No credits. Works on a spent balance. Needs read. Over MCP: get on attensira://{workspace}/autonomy.
Not on api.attensira.com as its own path: read it there as GET /v1/objects/autonomy, or send this path to https://webapp.attensira.com with the same key.
Every lane at the level a person set (or the default), and effective_level, the level it runs at under the quality checks. effective_level is never above level; when it is lower, held_by_evals is true and held_reason says why. See A lane can run lower than you set it.
Response
Read-only. Lower a lane with act and lower_autonomy, applied at once; only a person raises one, in the app. To stop unattended work at once, set unattended_mode to ask with PATCH /v1/settings/agents. See Autonomy levels. A key or an agent can ask for a raise with POST /v1/autonomy/raise, which files a proposal and changes nothing.

GET /v1/evals

Read-only. No credits. Works on a spent balance. Needs read. Over MCP: get_eval_results.
The quality checks agents’ work must pass before a lane runs it above L3, one cell per lane and playbook. They are measured on our own examples, so every workspace reads the same cells. See A lane can run lower than you set it.
Response

POST /v1/autonomy/raise

No credits. Works on a spent balance. Needs steer. Never changes a level. Not yet on api.attensira.com: send it to https://webapp.attensira.com with the same key.
Asks for one lane to run at a higher level. Only a person can let agents do more on their own, so an API key, an agent or a connected assistant can ask but never raise, whatever scopes it holds and whatever it sends. The request is filed in the person’s Inbox as a proposal (and sent as the autonomy.raise_proposed event), and nothing changes until they confirm it, signed in, at confirm_url. The link carries no confirmation of its own, so it does nothing for anyone but that signed-in person.
Response (202)
Asking again for the same lane and level while that proposal is open is the same proposal. 409 (state_conflict) when the lane is already at or above the level; nothing is filed. 400 (invalid_argument) for an unknown lane or level. Read the proposal with GET /v1/autonomy/proposals/{id}; accepting it with a key answers 403 with outcome: "needs_human".

GET /v1/notifications

Read-only. No credits. Needs read.
Not on api.attensira.com yet, and no MCP tool calls it yet: send it to https://webapp.attensira.com with the same key, as for webhooks. That host answers errors in its own envelope.
The notification preferences of the person the key or connection belongs to, in the workspace named by project (or the credential’s only one). See Notifications.

PATCH /v1/notifications

No credits. Needs steer. MCP: configure with kind: "notifications", op: "update".
Not on api.attensira.com yet: send it to https://webapp.attensira.com with the same key, as for webhooks. That host answers errors in its own envelope.
Proposes a change to the same preferences. It never applies the change. A key or a connection acts for an assistant, and what a person is told, and when, is theirs to decide: the change is stored as a proposal that they accept or decline in the app, and nothing they receive changes until they accept. A newer proposal replaces an undecided older one. Returns 202 with status: "proposed", the proposal, a message, and the current preferences, unchanged. A proposal that could never be accepted (an unknown category, account: false, a bad time) is refused with 400.

GET /v1/github/install-url

No credits. MCP tool: connect_github.
The GitHub App install link for this workspace, and nothing else. The install finishes in a browser, because GitHub hands its callback a code only the person completing it has. Each call mints a single-use link. Returns url.

Memory

Writes into what the workspace knows about itself. See Knowledge and skills.

POST /v1/observations

Answers 201. No credits. MCP tool: record_observation.
Every id is resolved against the workspace before anything is stored. One that does not exist there is a 400, never a stored fact.

POST /v1/skills

Answers 201. No credits. MCP tool: write_skill.

The Brand Book

What the agents may say about your company: facts, voice rules, never-say phrases, competitors, markets, your only-you answers, and the open edits waiting for you. See Your Brand Book. Not yet on api.attensira.com: send these paths to https://webapp.attensira.com with the same key.

GET /v1/brand-book

Read-only. No credits. Works on a spent balance. Needs read. MCP: get on attensira://{workspace}/brand_book, which answers this body as its data.
Response
Every field is always present. A field with no value is null and a list with nothing in it is []. provenance is drafted or confirmed. never_say[].source is yours (it stops drafts) or suggested (it stops nothing until you add it). changes[].edit is never_say, voice, fact, fact_public, learned_rule, playbook_suppression, or facts for a company profile edit. learned_rules and paused_playbooks are what the workspace taught the agents and what shapes drafts now: active rules and pauses only, each in the shape GET /v1/learned-rules gives it. A learned rule is a voice rule too, so voice also lists it, under its skill_id. Another organization’s workspace is a 404.

PATCH /v1/brand-book

No credits. Works on a spent balance. Needs configure. Over REST, POST /v1/config/brand_book with {"op": "update", "change": {…}} is the same edit. Not yet offered to assistants over MCP.
The body is exactly one of these: From a signed-in person: 200, {"status": "applied", "id": null, "ref": null, "brand_book": {…}}. From a key or a connection: 202, {"status": "proposed", "id": "…", "ref": "w_…", "brand_book": null}, and nothing changes until a signed-in person approves the change in the Inbox. Two edits in one body, an unknown edit or field, or a fact id the Brand Book does not have is a 400 naming what is valid. A field that names autonomy is a 400 too. Only a person can change autonomy, in the app.

Set up a workspace

A key holder adds a workspace for a domain: the agents draft the business from its site, the person decides what to keep, and the person pays in their own browser. Nothing here can charge. Both endpoints act on the key’s own account and take no ?project=: there is no workspace to select yet, and a ?project= is refused with that reason. A new person with no account starts from an assistant over MCP instead, where signing in comes before any account exists; see Set up from your own assistant.

POST /v1/onboarding/workspace

Needs steer. No charge. MCP tool: start_workspace.
Creates the workspace for a domain, or returns the one already started for it. Sending the same domain again never creates a second workspace: it is how you poll. A call that resumes or polls an existing workspace ignores audit_id, audit_prompts and competitors. Returns workspace_id, status, the drafted profile (each fact with the page it came from, or a question to ask when nothing was found), the suggested competitors and platforms, the proposed goals, the plans and first_change, the change drafted before payment or null. status is drafting, needs_input, ready_to_confirm, awaiting_payment, active or first_readings_ready; the fields are described under start_workspace. An account holds one workspace waiting for payment at a time, so a second unpaid domain is a 409 naming the one to finish. first_change.state is already_used_for_domain when another workspace for the same registrable domain already had the first change drafted before payment. Calling it too often is a 429 rate_limited with retry_after.

POST /v1/onboarding/workspace/{id}/confirm

Needs steer. No charge. MCP tool: confirm_setup.
Saves the person’s setup choices and answers their checkout link. Every call mints a new link. An omitted list keeps what was proposed; an empty list keeps none of it. Returns checkout_url, requires_browser (always true), expires_at and budget_consent, as described under confirm_setup. An account that already pays for a plan is a 409. The endpoint never charges and never uses a saved card: the person pays in their browser, and the start endpoint then reads active.

Goals

What the agents aim at: a metric, a target and a date, with a pace verdict from the daily readings. See Goals.

GET /v1/goals

Read-only. No credits. MCP tool: get_goals.
Returns goals, oldest first, each with baseline and current as {value, n} (a null value is not measured yet, not zero), target, target_date, pace (state is ahead, on_pace, behind or unmeasured), the projects it drives as work_area_ids, and status. The full row is described under get_goals.

POST /v1/goals

Needs steer. No credits. MCP tool: set_goal.
Sets a goal. Set goals on the person’s instruction. The baseline is the first reading taken after the goal is set, never a field: a body with baseline is a 400.

PATCH /v1/goals/{id}

Needs steer. No credits. MCP tool: set_goal.
Changes a goal. A field you leave out is left alone, and a body with nothing to change is a 400. A goal’s metric and its params never change: to measure something else, set a new goal and archive this one.

Projects

A project is an area of work with its own crew of agents, and on the wire it is a work area. Creating a project and changing its settings are in the dashboard only. See Projects.

GET /v1/work-areas

Read-only. No credits. MCP tool: list_projects.
The workspace’s projects, each with id, name, description, team (each crew member with their status line), goal_id, unread, needs_you, budget_cap_usd and last_activity_at. Archived projects are left out.

GET /v1/work-areas/{id}

Read-only. No credits. MCP tool: list_projects.
One project: everything the list says, plus its direction (what people have told it, word for word), the triggers its crew runs on, automation_ids, and the feed’s newest 50 posts, newest first. A project outside the workspace is a 404.

POST /v1/work-areas/{id}/steer

Needs steer and a spend scope. Posting is free; the crew’s reply is an agent run and spends credits. MCP tool: steer_project.
Gives a project’s crew the person’s direction, in their words. It is kept word for word as the project’s direction and posted to its feed; the crew answers it with an ordinary run that replans if the steer needs it. A steer is a post and nothing else: it never approves work, changes a setting or publishes anything, and the run that answers it meets the same approvals as every run. A field other than text is refused. The response is described under steer_project.

Deliverables

GET /v1/deliverables

Read-only. No credits. MCP tool: list_deliverables.
What the crews delivered, newest first: where each piece of work lives and what the checks proved about it. Returns deliverables and next_cursor (null at the end). result is null until there is something to measure. The row is described under list_deliverables.

Outreach suppression list

There are two lists. A recipient who uses the opt-out link in a pitch is never sent outreach again, from any Attensira workspace. An address you add yourself with POST /v1/suppressions binds your workspace only: other workspaces can still write to it. Only opt-out entries are global. The opt-out link takes a click or an RFC 8058 one-click POST, and neither needs a key. See Who we never write to, the opt-out link and the suppression list.
Not on api.attensira.com yet: send it to https://webapp.attensira.com with the same key, as for webhooks. That host answers errors in its own envelope. Over MCP, list with type contact_suppression reads the list and act with suppress on attensira://{workspace}/contact_suppression adds an address.

GET /v1/suppressions

Read-only. No credits. Needs read.
Your workspace’s own list, newest first, up to 500: the addresses you added, and the recipients who opted out from your own pitches, each with the date your workspace saw it. An address that opted out from another workspace’s pitch is refused for you too, but is not listed here, and nothing another workspace added is ever listed or applied to you. The list keeps no addresses, only a hash of each (data retention), so an entry has email_hash and no email. email_hash is the hex SHA-256 of the address lowercased, trimmed and without a +tag: hash an address the same way to find it here.
Response
reason is opt_out (the recipient clicked the link), manual (your workspace added it), bounce or complaint.

POST /v1/suppressions

No credits. Needs configure.
Puts an address on your workspace’s list. It binds your workspace only; other workspaces can still write to it. Idempotent: adding it again changes nothing and answers the same way. There is no removal. The answer echoes the address you sent, beside the email_hash it is kept as. A later GET lists only the hash.
Response

Outreach threads

A sent pitch becomes an outreach thread: its follow-ups (at most two, due on day 4 and day 10), the replies and what each one was, and the message waiting on a person’s yes. See Outreach threads.
Not on api.attensira.com yet: send them to https://webapp.attensira.com with the same key. That host answers errors in its own envelope. Over MCP, list with type outreach_thread and get on attensira://{workspace}/outreach_thread/{id} read them, and act on that ref takes pause, stop and decline_reply. resume is on this route only.

GET /v1/outreach-threads

Read-only. No credits. Needs read.
This workspace’s outreach threads, newest first.
Response
A reply’s class is interested, asks_price, no, unsubscribe, out_of_office, bounce, complaint or other. body_read is true only when the mailbox allows reading reply text; the text itself is never stored or returned. stop_reason is opt_out, bounce, complaint, declined, customer, sequence_done or mailbox_gone. A follow-up’s state is scheduled, awaiting_yes, sent or skipped. A pending message’s kind is follow_up, answer or price, and its state is awaiting_yes, sending, sent or declined. actions lists what POST /v1/outreach-threads/{id}/actions can do on the thread now. choices is the decision a pending message waits on: Send / Don’t send, or for a fee, Yes / No / Counter at $X.

GET /v1/outreach-threads/{id}

Read-only. No credits. Needs read.
One outreach thread, in the shape above.

POST /v1/outreach-threads/{id}/actions

No credits. pause, resume, stop and decline_reply need steer. approve_reply is refused for every key.
approve_reply sends an email from your own mailbox, which cannot be taken back, so it is a person’s alone: an API key or an OAuth connection gets a 403 whatever its scopes. A signed-in person approves it on the thread in the app or on its Inbox card. Every other action works over the API.

GET /v1/outreach-mailboxes/{provider}

Read-only. No credits. Needs read.
One outreach mailbox’s sending record. provider is gmail or outlook.
Response
limit_per_day starts at 2, rises by one a week up to 10 while the bounce rate stays under 2% over at least 10 sends. A bounce rate over 5% sets paused. Allowing reply text to be read, and resuming a paused mailbox, are a signed-in person’s, in the app; there is no API route for them.

Browser runs

The only browser runs today are the weekly walks of your own site, which run under a person’s consent. There is no call that starts a run. No run opens a browser on another site: listings are filed from a copy kit.
Not on api.attensira.com yet: send them to https://webapp.attensira.com with the same key. Over MCP, list with type browser_run and get on attensira://{workspace}/browser_run/{id} read them; act with stop on a run stops it. Pausing every run is on this route only.

GET /v1/browser-runs

Read-only. No credits. Works on a spent balance. Needs read.
This workspace’s browser runs, newest first, as {runs, count}: the approved change each delivers, the site, status (queued, running, awaiting_customer, done, refused, killed or failed), every step with its effect (reversible or irreversible) and outcome, and the next step, which is yours (for example, adding credits) or an automatic retry.

GET /v1/browser-runs/{id}

Read-only. No credits. Works on a spent balance. Needs read.
One browser run, in the shape above.

POST /v1/browser-runs/{id}/stop

No credits. Works on a spent balance. Needs steer.
Ends the run and closes its browser.

POST /v1/browser-runs/pause

No credits. Works on a spent balance. Needs steer.
Stops this workspace’s browser runs at their next step and refuses new ones until a person resumes them in the app. Pausing only takes power away, so a key may do it; resuming is a person’s. Answers {paused, reason, set_at}.

Directory listings

The directories and review sites agents file your listing on, such as G2, Capterra and Product Hunt. Filing one is a change, which waits for the same yes as any other. How it may be filed is the site’s policy as it applies to your workspace.
Not on api.attensira.com yet: send them to https://webapp.attensira.com with the same key. Over MCP, list with type listing and get on attensira://{workspace}/listing/{domain} read the same.

GET /v1/listings

Read-only. No credits. Works on a spent balance. Needs read.
Response
fields is what the form asks for, filled from your Brand Book. mode is the site’s row as written and effective_mode is what agents obey in your workspace, never more permissive. toolkit is true when a reviewed connection can file the listing for you; false means it goes out through your hands, with handoff_steps. note is null when there is nothing to add. reviews is the weekly read of your profile on a review platform, for your newest review request there, and null when you have none. sent_at is when you marked it sent, null before. latest is the newest read and baseline the one the receipt counts from: the last measured read on or before the day you marked it sent. A read’s status is measured or not_measurable; a not_measurable read carries its reason and no numbers, never a zero. review_count, average_rating, best_rating and last_review_at are as the profile page states them. The list also holds Trustpilot and Google Business Profile, which take review requests but have no listing form here: their fields is empty, submission_url is the platform’s business console, and note says so. verification is the daily read of your newest delivered listing on the site, compared with your Brand Book, and null when you have no delivered listing there. state is pending, live_verified, mismatch, not_up_yet, rejected, needs_address or not_read. Checking the listing against your Brand Book says what each means. url is the page read, and checked_at is when, both null before the first read. mismatched names the fields the page shows differently. repair_change_id is the one profile-update change filed to fix them, or null.

GET /v1/listings/{domain}

Read-only. No credits. Works on a spent balance. Needs read.
One directory or review platform, by its domain or a URL on it, in the shape above. A site agents do not work on is a 404 whose allowed_values are the ones they do.

Reports

GET /v1/reports/latest

Read-only. No credits. MCP tool: get_report.
The latest published client report for a cadence. See Client reports. Returns the report’s period, its facts with their n, the share link when it is shared, and the markdown in full: unlike the MCP tool, nothing is cut. A cadence whose first report has not published yet is a 404.

POST /v1/shares

No credits. MCP verb: share.
A read-only public link to one report, one change’s receipt or one weekly scorecard, for someone who has no Attensira account.
Shell
Response
A report link lasts expires_days (180 when omitted), and expires_at says when it ends. A receipt link has no expiry (null); rotating the workspace’s receipt link takes back every link the workspace ever shared, report links included. A report or receipt that is not the workspace’s is a 404, and nothing is signed for it. A scorecard link has no expiry either, and exists only while the workspace’s public scorecard links are on: when they are off, the answer is a 409 (state_conflict), and a person turns them back on in the app. A week with no scorecard is a 404. Any other type is a 400 listing report, receipt and scorecard.

Money and your plan

Not on api.attensira.com yet: send it to https://webapp.attensira.com with the same key, as for webhooks. That host answers errors in its own envelope.

GET /v1/money

Read-only. No credits. Needs read. MCP: get(attensira://{ws}/money).
The money line and the facts it is written from, for the key’s organisation.
Response
status is active, paused or cancelling. budget_state is none, untouched, partial, reached or over. budget_cents and ceiling_cents are null with no budget; changes_shipped is null when it could not be counted.

POST /v1/subscription/{action}

No credits. MCP: act(subscription, pause|resume|cancel).
pause answers the money view above, now paused. A pause sent while one holds only moves its end later; one that would end it sooner changes nothing and answers the pause that holds. resume and cancel from a key or an assistant are 403 with code raise_human_only, details.outcome needs_human and details.elicitation, the question to put to your person; nothing changes. See Pausing, resuming and cancelling.

Prospect audits

Not yet on api.attensira.com: call these on https://webapp.attensira.com with the same key. They act on the key’s account, not on one workspace. MCP reaches the reads through list and get on the prospect_audit type, and the convert through act; starting an audit is REST only for now. See Prospect audits.

POST /v1/prospect_audits

Needs steer and a spend scope. Needs a plan and a balance that is not spent. Limited per account: 20 at once, then one every 3 minutes.
Starts an audit of a domain: {"domain": "example.com"}. Answers 201 with the new audit. While the domain’s last audit is still running it answers that audit with 200, and after a stage of it stopped for good it runs that stage again and answers 200. An account with no plan is a 402 insufficient_credits that says to pick one, and nothing is started. Over the limit it is a 429 rate_limited with retry_after.

GET /v1/prospect_audits

Read-only. Needs read. MCP: list with type prospect_audit.
The account’s audits, newest first. limit is 1 to 100 (default 100); anything else is a 400.

GET /v1/prospect_audits/{id}

Read-only. Needs read. MCP: get with attensira://{workspace}/prospect_audit/{id}.
One audit, in the shape above. Another account’s audit is a 404.

POST /v1/prospect_audits/{id}/convert

Needs steer and a spend scope, and a balance that is not spent. MCP: act with action convert. Spends credits: the new workspace’s questions are read from its first run onward.
Creates one client workspace in the account for the audit’s domain, seeded with the Brand Book draft (as drafts, never over a value), the rivals (as candidates) and the questions (first in its starting questions, word for word). Answers 201 the first time and 200 with the same workspace on every repeat. When the account already has a workspace for the domain, the audit becomes that one. An existing plan or a workspace waiting for payment is never a 409 here. While the audit is still choosing its questions it is a 409 state_conflict, and nothing is created.

GET /v1/public/prospect_audits/{token}

No key. Read-only.
The audit behind a share token, branded as the account that ran it: {branding: {name, logo_url, color, white_label}, domain, brand_name, state, brand_book, competitors, questions, totals, platforms, read_at, created_at}. No ids. An unknown token is a 404; opening one link too often is a 429 with retry_after.

Proposals, topics, skills and sharing

The REST twins of the MCP tools that were MCP-only until 2026-10-25. Each sends the same call the tool does, so it answers the way the tool does. A proposal changes nothing on its own: it files an item to the Inbox for a person to approve. Send Idempotency-Key on the markets and brand-family proposals to make a retry safe. The reads that were MCP-only are the object and view reads: GET /v1/objects/market, GET /v1/objects/brand_family, GET /v1/objects/plan, GET /v1/objects/company_profile, GET /v1/objects/skill, GET /v1/objects/connector, GET /v1/objects/topic, GET /v1/views/state_grid and GET /v1/views/markets_preview.