List conversation messages (delta read by version cursor)
Returns the messages in this conversation with sequence_no > since, plus the
conversation’s current_version at the moment the response was generated. The
messages list is ordered by sequence_no ascending and is gap-free — if the
response contains messages with sequence_no 3, 4, 5, you have all three.
Polling pattern
since = 0loop forever: r = GET /agents/conversations/{id}/messages?since={since} process r.messages # may be empty since = r.current_version # use the head, not r.messages.last.sequence_no wait briefly
current_version is the conversation’s head at the moment the response was generated
— using it as the next request’s since is the only way to ensure gap-free reads
even when new messages land between the time the response was generated and the time
your client processed it.
When messages get added
Messages are persisted in a single transaction by the workflow’s finalize step (when
a run reaches a terminal state). You won’t see partial reads — a run that produces 4
messages either lands all 4 or none.
A run’s id appears in messages[].run_id, so you can correlate messages to the
runs that produced them.
What’s in content_blocks
Five variants, discriminated by type:
text — plain text. The dominant variant.
tool_use — the model requesting a tool call. Carries tool_use_id, the aliased
name, and the model’s arguments.
tool_result — the result of a tool call. Its content holds nested content blocks,
and it carries the original tool_use_id plus an is_error flag.
reasoning / redacted_reasoning — the model’s working, on a turn that asked for
thinking.
Blocks the platform produced also carry an id. On an assistant turn with an answer,
final_answer_from names the blocks the answer came from; render those as the reply.
The same tool_use_id appears on the assistant’s tool_use block and on the
subsequent tool (or user, for resume payloads) turn’s tool_result block —
that’s how a UI matches them up.
The conversation's UUID.
UUID identifying a conversation. Returned from POST /agents/conversations and used
in every other agent endpoint that operates on this conversation.
Return messages with sequence_no > since. Use the previous response's
current_version as the next request's since for gap-free incremental reads.
Default 0 returns the entire conversation from the beginning. A negative or
non-integer value returns a 404 with an empty body, because the route stops matching.
Required range: x >= 0
Response
A page of messages with sequence_no > since, plus the current head version.
Returned by GET /agents/conversations/{id}/messages?since=N. Carries the
conversation's current head version (current_version) plus the requested page of
messages.
Polling pattern:
since = 0 loop: response = GET /agents/conversations/{id}/messages?since={since} process response.messages since = response.current_version sleep or wait for an event
The current_version is the conversation's head at the moment the response was
generated — using it as the next request's since gives gap-free incremental
reads.
Monotonic per-conversation counter, bumped by 1 (or more) every time a successful run
appends messages. Two roles:
Delta cursor for GET .../messages?since=N — fetch only messages with
sequence_no > N.
Compare-and-swap token for POST .../runs — set expected_version to the
conversation's current head; if it doesn't match at run-creation time, you get a
Version Conflict
(HTTP 409).
Always start a new run cycle by reading the current version from
GET /agents/conversations/{id} rather than caching a value from earlier.
Messages with sequence_no > since. Empty array means no new messages — the
conversation is at version current_version but you've already seen everything.
Show child attributes
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Narrative I/O Knowledge Base","colors":{"primary":"#1438F5","light":"#F4F7FB","dark":"#010A28"},"logo":{"light":"https://mintcdn.com/narrative-07c7a1f7/ia6SQX79O4nc7uYf/logo/banner.png?fit=max\u0026auto=format\u0026n=ia6SQX79O4nc7uYf\u0026q=85\u0026s=99860b25011c79366624a87d1f648861","dark":"https://mintcdn.com/narrative-07c7a1f7/ia6SQX79O4nc7uYf/logo/banner-dark.png?fit=max\u0026auto=format\u0026n=ia6SQX79O4nc7uYf\u0026q=85\u0026s=604f9688855cf1123b9eddfc8a5bf0e5"},"favicon":"https://mintcdn.com/narrative-07c7a1f7/DaYE2y2_p0IkASZU/favicon.svg?fit=max\u0026auto=format\u0026n=DaYE2y2_p0IkASZU\u0026q=85\u0026s=9961047bdb2aaf9298577e1c3e624c24","navbar":{"links":[{"href":"mailto:[email protected]","label":"Support"}],"primary":{"type":"button","label":"Open Narrative","href":"https://app.narrative.io"}},"footer":{"socials":{"github":"https://github.com/narrative-io","linkedin":"https://linkedin.com/company/narrative-io"}},"seo":{"indexing":"navigable"},"integrations":{"fathom":{"siteId":"WELVPSSZ"},"ga4":{"measurementId":"G-27FP7EFNFW"},"cookies":{}},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode"],"display":"header"},"styling":{"latex":true},"navigation":{"global":{"anchors":[{"anchor":"Release Notes","icon":"clock-rotate-left","href":"/release-notes"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"narrative-07c7a1f7","hasAudioNarration":false,"actualSubdomain":"narrative-07c7a1f7","customDomains":["docs.narrative.io"],"gitSource":{"type":"github","owner":"narrative-io","repo":"mintlify-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"feedback":{"thumbs":true,"agentFeedback":true},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6aef0f41c526d2ff3f05b50e","clientVersion":"0.0.4087","searchFilterCounts":[{"language":"default","tag":"API Documentation","count":229},{"language":"default","tag":"Connectors","count":112},{"language":"default","tag":"Reference","count":112},{"language":"default","tag":"All connectors","count":110},{"language":"default","tag":"Architecture Reference","count":77},{"language":"default","tag":"Agent Conversations","count":64},{"language":"default","tag":"Concepts","count":62},{"language":"default","tag":"Guides","count":58},{"language":"default","tag":"Errors","count":55},{"language":"default","tag":"API reference","count":43}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableAskAiSearchBar":true,"deflection":{"enabled":true,"email":"[email protected]","showHelpButton":true}},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"comment-mode","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"api-reference/agent-conversations/list-conversation-messages-delta-read-by-version-cursor","slug":"/api-reference/agent-conversations/list-conversation-messages-delta-read-by-version-cursor","pageMetadata":{"title":"List conversation messages (delta read by version cursor)","description":"Returns the messages in this conversation with `sequence_no > since`, plus the\nconversation's `current_version` at the moment the response was generated. The\n`messages` list is ordered by `sequence_no` ascending and is gap-free — if the\nresponse contains messages with `sequence_no` 3, 4, 5, you have all three.\n\n## Polling pattern\n\n```text\nsince = 0\nloop forever:\n r = GET /agents/conversations/{id}/messages?since={since}\n process r.messages # may be empty\n since = r.current_version # use the head, not r.messages.last.sequence_no\n wait briefly\n```\n\n`current_version` is the conversation's head at the moment the response was generated\n— using it as the next request's `since` is the only way to ensure gap-free reads\neven when new messages land between the time the response was generated and the time\nyour client processed it.\n\n## When messages get added\n\nMessages are persisted in a single transaction by the workflow's finalize step (when\na run reaches a terminal state). You won't see partial reads — a run that produces 4\nmessages either lands all 4 or none.\n\nA run's `id` appears in `messages[].run_id`, so you can correlate messages to the\nruns that produced them.\n\n## What's in `content_blocks`\n\nFive variants, discriminated by `type`:\n\n- `text` — plain text. The dominant variant.\n- `tool_use` — the model requesting a tool call. Carries `tool_use_id`, the aliased\n `name`, and the model's `arguments`.\n- `tool_result` — the result of a tool call. Its `content` holds nested content blocks,\n and it carries the original `tool_use_id` plus an `is_error` flag.\n- `reasoning` / `redacted_reasoning` — the model's working, on a turn that asked for\n thinking.\n\nBlocks the platform produced also carry an `id`. On an assistant turn with an answer,\n`final_answer_from` names the blocks the answer came from; render those as the reply.\n\nThe same `tool_use_id` appears on the assistant's `tool_use` block and on the\nsubsequent `tool` (or `user`, for resume payloads) turn's `tool_result` block —\nthat's how a UI matches them up.\n\n## Permission\n\n`agent_conversations` resource with `read` verb.\n\n## Example: paging from scratch\n\n```bash\ncurl \"$API/agents/conversations/{id}/messages?since=0\" \\\n -H \"Authorization: Bearer $TOKEN\"\n# → { \"current_version\": 4, \"messages\": [ \u003c4 entries> ] }\n```\n\nThen later:\n\n```bash\ncurl \"$API/agents/conversations/{id}/messages?since=4\" \\\n -H \"Authorization: Bearer $TOKEN\"\n# → { \"current_version\": 4, \"messages\": [] } # nothing new\n```","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json get /agents/conversations/{id}/messages","href":"/api-reference/agent-conversations/list-conversation-messages-delta-read-by-version-cursor","autogeneratedByOpenApi":true},"description":{"compiledSource":"\"use strict\";\nconst {Fragment: _Fragment, jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n code: \"code\",\n h2: \"h2\",\n li: \"li\",\n p: \"p\",\n pre: \"pre\",\n span: \"span\",\n ul: \"ul\",\n ..._provideComponents(),\n ...props.components\n }, {CodeBlock} = _components;\n if (!CodeBlock) _missingMdxReference(\"CodeBlock\", true);\n return _jsxs(_Fragment, {\n children: [_jsxs(_components.p, {\n children: [\"Returns the messages in this conversation with \", _jsx(_components.code, {\n children: \"sequence_no > since\"\n }), \", plus the\\nconversation’s \", _jsx(_components.code, {\n children: \"current_version\"\n }), \" at the moment the response was generated. The\\n\", _jsx(_components.code, {\n children: \"messages\"\n }), \" list is ordered by \", _jsx(_components.code, {\n children: \"sequence_no\"\n }), \" ascending and is gap-free — if the\\nresponse contains messages with \", _jsx(_components.code, {\n children: \"sequence_no\"\n }), \" 3, 4, 5, you have all three.\"]\n }), \"\\n\", _jsx(_components.h2, {\n children: \"Polling pattern\"\n }), \"\\n\", _jsx(CodeBlock, {\n numberOfLines: \"7\",\n language: \"text\",\n children: _jsx(_components.pre, {\n className: \"shiki shiki-themes github-light-default dark-plus\",\n style: {\n backgroundColor: \"#ffffff\",\n \"--shiki-dark-bg\": \"#0B0C0E\",\n color: \"#1f2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n language: \"text\",\n children: _jsxs(_components.code, {\n language: \"text\",\n numberOfLines: \"7\",\n children: [_jsx(_components.span, {\n className: \"line\",\n children: _jsx(_components.span, {\n children: \"since = 0\"\n })\n }), \"\\n\", _jsx(_components.span, {\n className: \"line\",\n children: _jsx(_components.span, {\n children: \"loop forever:\"\n })\n }), \"\\n\", _jsx(_components.span, {\n className: \"line\",\n children: _jsx(_components.span, {\n children: \" r = GET /agents/conversations/{id}/messages?since={since}\"\n })\n }), \"\\n\", _jsx(_components.span, {\n className: \"line\",\n children: _jsx(_components.span, {\n children: \" process r.messages # may be empty\"\n })\n }), \"\\n\", _jsx(_components.span, {\n className: \"line\",\n children: _jsx(_components.span, {\n children: \" since = r.current_version # use the head, not r.messages.last.sequence_no\"\n })\n }), \"\\n\", _jsx(_components.span, {\n className: \"line\",\n children: _jsx(_components.span, {\n children: \" wait briefly\"\n })\n }), \"\\n\", _jsx(_components.span, {\n className: \"line\",\n children: _jsx(_components.span, {})\n })]\n })\n })\n }), \"\\n\", _jsxs(_components.p, {\n children: [_jsx(_components.code, {\n children: \"current_version\"\n }), \" is the conversation’s head at the moment the response was generated\\n— using it as the next request’s \", _jsx(_components.code, {\n children: \"since\"\n }), \" is the only way to ensure gap-free reads\\neven when new messages land between the time the response was generated and the time\\nyour client processed it.\"]\n }), \"\\n\", _jsx(_components.h2, {\n children: \"When messages get added\"\n }), \"\\n\", _jsx(_components.p, {\n children: \"Messages are persisted in a single transaction by the workflow’s finalize step (when\\na run reaches a terminal state). You won’t see partial reads — a run that produces 4\\nmessages either lands all 4 or none.\"\n }), \"\\n\", _jsxs(_components.p, {\n children: [\"A run’s \", _jsx(_components.code, {\n children: \"id\"\n }), \" appears in \", _jsx(_components.code, {\n children: \"messages[].run_id\"\n }), \", so you can correlate messages to the\\nruns that produced them.\"]\n }), \"\\n\", _jsxs(_components.h2, {\n children: [\"What’s in \", _jsx(_components.code, {\n children: \"content_blocks\"\n })]\n }), \"\\n\", _jsxs(_components.p, {\n children: [\"Five variants, discriminated by \", _jsx(_components.code, {\n children: \"type\"\n }), \":\"]\n }), \"\\n\", _jsxs(_components.ul, {\n children: [\"\\n\", _jsxs(_components.li, {\n children: [_jsx(_components.code, {\n children: \"text\"\n }), \" — plain text. The dominant variant.\"]\n }), \"\\n\", _jsxs(_components.li, {\n children: [_jsx(_components.code, {\n children: \"tool_use\"\n }), \" — the model requesting a tool call. Carries \", _jsx(_components.code, {\n children: \"tool_use_id\"\n }), \", the aliased\\n\", _jsx(_components.code, {\n children: \"name\"\n }), \", and the model’s \", _jsx(_components.code, {\n children: \"arguments\"\n }), \".\"]\n }), \"\\n\", _jsxs(_components.li, {\n children: [_jsx(_components.code, {\n children: \"tool_result\"\n }), \" — the result of a tool call. Its \", _jsx(_components.code, {\n children: \"content\"\n }), \" holds nested content blocks,\\nand it carries the original \", _jsx(_components.code, {\n children: \"tool_use_id\"\n }), \" plus an \", _jsx(_components.code, {\n children: \"is_error\"\n }), \" flag.\"]\n }), \"\\n\", _jsxs(_components.li, {\n children: [_jsx(_components.code, {\n children: \"reasoning\"\n }), \" / \", _jsx(_components.code, {\n children: \"redacted_reasoning\"\n }), \" — the model’s working, on a turn that asked for\\nthinking.\"]\n }), \"\\n\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [\"Blocks the platform produced also carry an \", _jsx(_components.code, {\n children: \"id\"\n }), \". On an assistant turn with an answer,\\n\", _jsx(_components.code, {\n children: \"final_answer_from\"\n }), \" names the blocks the answer came from; render those as the reply.\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [\"The same \", _jsx(_components.code, {\n children: \"tool_use_id\"\n }), \" appears on the assistant’s \", _jsx(_components.code, {\n children: \"tool_use\"\n }), \" block and on the\\nsubsequent \", _jsx(_components.code, {\n children: \"tool\"\n }), \" (or \", _jsx(_components.code, {\n children: \"user\"\n }), \", for resume payloads) turn’s \", _jsx(_components.code, {\n children: \"tool_result\"\n }), \" block —\\nthat’s how a UI matches them up.\"]\n }), \"\\n\", _jsx(_components.h2, {\n children: \"Permission\"\n }), \"\\n\", _jsxs(_components.p, {\n children: [_jsx(_components.code, {\n children: \"agent_conversations\"\n }), \" resource with \", _jsx(_components.code, {\n children: \"read\"\n }), \" verb.\"]\n }), \"\\n\", _jsx(_components.h2, {\n children: \"Example: paging from scratch\"\n }), \"\\n\", _jsx(CodeBlock, {\n numberOfLines: \"3\",\n language: \"shellscript\",\n children: _jsx(_components.pre, {\n className: \"shiki shiki-themes github-light-default dark-plus\",\n style: {\n backgroundColor: \"#ffffff\",\n \"--shiki-dark-bg\": \"#0B0C0E\",\n color: \"#1f2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n language: \"shellscript\",\n children: _jsxs(_components.code, {\n language: \"shellscript\",\n numberOfLines: \"3\",\n children: [_jsxs(_components.span, {\n className: \"line\",\n children: [_jsx(_components.span, {\n style: {\n color: \"#953800\",\n \"--shiki-dark\": \"#DCDCAA\"\n },\n children: \"curl\"\n }), _jsx(_components.span, {\n style: {\n color: \"#0A3069\",\n \"--shiki-dark\": \"#CE9178\"\n },\n children: \" \\\"\"\n }), _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#9CDCFE\"\n },\n children: \"$API\"\n }), _jsx(_components.span, {\n style: {\n color: \"#0A3069\",\n \"--shiki-dark\": \"#CE9178\"\n },\n children: \"/agents/conversations/{id}/messages?since=0\\\"\"\n }), _jsx(_components.span, {\n style: {\n color: \"#CF222E\",\n \"--shiki-dark\": \"#D7BA7D\"\n },\n children: \" \\\\\"\n })]\n }), \"\\n\", _jsxs(_components.span, {\n className: \"line\",\n children: [_jsx(_components.span, {\n style: {\n color: \"#0550AE\",\n \"--shiki-dark\": \"#569CD6\"\n },\n children: \" -H\"\n }), _jsx(_components.span, {\n style: {\n color: \"#0A3069\",\n \"--shiki-dark\": \"#CE9178\"\n },\n children: \" \\\"Authorization: Bearer \"\n }), _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#9CDCFE\"\n },\n children: \"$TOKEN\"\n }), _jsx(_components.span, {\n style: {\n color: \"#0A3069\",\n \"--shiki-dark\": \"#CE9178\"\n },\n children: \"\\\"\"\n })]\n }), \"\\n\", _jsx(_components.span, {\n className: \"line\",\n children: _jsx(_components.span, {\n style: {\n color: \"#6E7781\",\n \"--shiki-dark\": \"#6A9955\"\n },\n children: \"# → { \\\"current_version\\\": 4, \\\"messages\\\": [ \u003c4 entries> ] }\"\n })\n }), \"\\n\"]\n })\n })\n }), \"\\n\", _jsx(_components.p, {\n children: \"Then later:\"\n }), \"\\n\", _jsx(CodeBlock, {\n numberOfLines: \"3\",\n language: \"shellscript\",\n children: _jsx(_components.pre, {\n className: \"shiki shiki-themes github-light-default dark-plus\",\n style: {\n backgroundColor: \"#ffffff\",\n \"--shiki-dark-bg\": \"#0B0C0E\",\n color: \"#1f2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n language: \"shellscript\",\n children: _jsxs(_components.code, {\n language: \"shellscript\",\n numberOfLines: \"3\",\n children: [_jsxs(_components.span, {\n className: \"line\",\n children: [_jsx(_components.span, {\n style: {\n color: \"#953800\",\n \"--shiki-dark\": \"#DCDCAA\"\n },\n children: \"curl\"\n }), _jsx(_components.span, {\n style: {\n color: \"#0A3069\",\n \"--shiki-dark\": \"#CE9178\"\n },\n children: \" \\\"\"\n }), _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#9CDCFE\"\n },\n children: \"$API\"\n }), _jsx(_components.span, {\n style: {\n color: \"#0A3069\",\n \"--shiki-dark\": \"#CE9178\"\n },\n children: \"/agents/conversations/{id}/messages?since=4\\\"\"\n }), _jsx(_components.span, {\n style: {\n color: \"#CF222E\",\n \"--shiki-dark\": \"#D7BA7D\"\n },\n children: \" \\\\\"\n })]\n }), \"\\n\", _jsxs(_components.span, {\n className: \"line\",\n children: [_jsx(_components.span, {\n style: {\n color: \"#0550AE\",\n \"--shiki-dark\": \"#569CD6\"\n },\n children: \" -H\"\n }), _jsx(_components.span, {\n style: {\n color: \"#0A3069\",\n \"--shiki-dark\": \"#CE9178\"\n },\n children: \" \\\"Authorization: Bearer \"\n }), _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#9CDCFE\"\n },\n children: \"$TOKEN\"\n }), _jsx(_components.span, {\n style: {\n color: \"#0A3069\",\n \"--shiki-dark\": \"#CE9178\"\n },\n children: \"\\\"\"\n })]\n }), \"\\n\", _jsx(_components.span, {\n className: \"line\",\n children: _jsx(_components.span, {\n style: {\n color: \"#6E7781\",\n \"--shiki-dark\": \"#6A9955\"\n },\n children: \"# → { \\\"current_version\\\": 4, \\\"messages\\\": [] } # nothing new\"\n })\n }), \"\\n\"]\n })\n })\n })]\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\nfunction _missingMdxReference(id, component) {\n throw new Error(\"Expected \" + (component ? \"component\" : \"object\") + \" `\" + id + \"` to be defined: you likely forgot to import, pass, or provide it.\");\n}\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"List conversation messages (delta read by version cursor)","description":"Returns the messages in this conversation with `sequence_no > since`, plus the\nconversation's `current_version` at the moment the response was generated. The\n`messages` list is ordered by `sequence_no` ascending and is gap-free — if the\nresponse contains messages with `sequence_no` 3, 4, 5, you have all three.\n\n## Polling pattern\n\n```text\nsince = 0\nloop forever:\n r = GET /agents/conversations/{id}/messages?since={since}\n process r.messages # may be empty\n since = r.current_version # use the head, not r.messages.last.sequence_no\n wait briefly\n```\n\n`current_version` is the conversation's head at the moment the response was generated\n— using it as the next request's `since` is the only way to ensure gap-free reads\neven when new messages land between the time the response was generated and the time\nyour client processed it.\n\n## When messages get added\n\nMessages are persisted in a single transaction by the workflow's finalize step (when\na run reaches a terminal state). You won't see partial reads — a run that produces 4\nmessages either lands all 4 or none.\n\nA run's `id` appears in `messages[].run_id`, so you can correlate messages to the\nruns that produced them.\n\n## What's in `content_blocks`\n\nFive variants, discriminated by `type`:\n\n- `text` — plain text. The dominant variant.\n- `tool_use` — the model requesting a tool call. Carries `tool_use_id`, the aliased\n `name`, and the model's `arguments`.\n- `tool_result` — the result of a tool call. Its `content` holds nested content blocks,\n and it carries the original `tool_use_id` plus an `is_error` flag.\n- `reasoning` / `redacted_reasoning` — the model's working, on a turn that asked for\n thinking.\n\nBlocks the platform produced also carry an `id`. On an assistant turn with an answer,\n`final_answer_from` names the blocks the answer came from; render those as the reply.\n\nThe same `tool_use_id` appears on the assistant's `tool_use` block and on the\nsubsequent `tool` (or `user`, for resume payloads) turn's `tool_result` block —\nthat's how a UI matches them up.\n\n## Permission\n\n`agent_conversations` resource with `read` verb.\n\n## Example: paging from scratch\n\n```bash\ncurl \"$API/agents/conversations/{id}/messages?since=0\" \\\n -H \"Authorization: Bearer $TOKEN\"\n# → { \"current_version\": 4, \"messages\": [ \u003c4 entries> ] }\n```\n\nThen later:\n\n```bash\ncurl \"$API/agents/conversations/{id}/messages?since=4\" \\\n -H \"Authorization: Bearer $TOKEN\"\n# → { \"current_version\": 4, \"messages\": [] } # nothing new\n```","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json get /agents/conversations/{id}/messages","href":"/api-reference/agent-conversations/list-conversation-messages-delta-read-by-version-cursor","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":["/_mintlify/custom/narrative-07c7a1f7/d5d45b2d00effc8b/secure-privacy.js"],"openApiReferenceData":{"operation":{"operationId":"listAgentConversationMessages","summary":"List conversation messages (delta read by version cursor)","description":"Returns the messages in this conversation with `sequence_no > since`, plus the\nconversation's `current_version` at the moment the response was generated. The\n`messages` list is ordered by `sequence_no` ascending and is gap-free — if the\nresponse contains messages with `sequence_no` 3, 4, 5, you have all three.\n\n## Polling pattern\n\n```text\nsince = 0\nloop forever:\n r = GET /agents/conversations/{id}/messages?since={since}\n process r.messages # may be empty\n since = r.current_version # use the head, not r.messages.last.sequence_no\n wait briefly\n```\n\n`current_version` is the conversation's head at the moment the response was generated\n— using it as the next request's `since` is the only way to ensure gap-free reads\neven when new messages land between the time the response was generated and the time\nyour client processed it.\n\n## When messages get added\n\nMessages are persisted in a single transaction by the workflow's finalize step (when\na run reaches a terminal state). You won't see partial reads — a run that produces 4\nmessages either lands all 4 or none.\n\nA run's `id` appears in `messages[].run_id`, so you can correlate messages to the\nruns that produced them.\n\n## What's in `content_blocks`\n\nFive variants, discriminated by `type`:\n\n- `text` — plain text. The dominant variant.\n- `tool_use` — the model requesting a tool call. Carries `tool_use_id`, the aliased\n `name`, and the model's `arguments`.\n- `tool_result` — the result of a tool call. Its `content` holds nested content blocks,\n and it carries the original `tool_use_id` plus an `is_error` flag.\n- `reasoning` / `redacted_reasoning` — the model's working, on a turn that asked for\n thinking.\n\nBlocks the platform produced also carry an `id`. On an assistant turn with an answer,\n`final_answer_from` names the blocks the answer came from; render those as the reply.\n\nThe same `tool_use_id` appears on the assistant's `tool_use` block and on the\nsubsequent `tool` (or `user`, for resume payloads) turn's `tool_result` block —\nthat's how a UI matches them up.\n\n## Permission\n\n`agent_conversations` resource with `read` verb.\n\n## Example: paging from scratch\n\n```bash\ncurl \"$API/agents/conversations/{id}/messages?since=0\" \\\n -H \"Authorization: Bearer $TOKEN\"\n# → { \"current_version\": 4, \"messages\": [ \u003c4 entries> ] }\n```\n\nThen later:\n\n```bash\ncurl \"$API/agents/conversations/{id}/messages?since=4\" \\\n -H \"Authorization: Bearer $TOKEN\"\n# → { \"current_version\": 4, \"messages\": [] } # nothing new\n```","tags":["Agent Conversations"],"security":["04f40456-541d-4c5e-826d-ad16cb648821"],"responses":{"200":"5569e5e4-1d61-4dfe-921c-7dd698c03885","401":"04e2f817-a802-4a3a-b0d8-06222f4bf40c","403":"59683ca6-7138-4bfa-973e-924d4047412e","404":"ed81e4fe-d638-4eb5-90b3-08e86658b6d2"},"method":"get","type":"path","servers":["87427ea4-ae95-403a-b9b7-f2f81a8d5a09","473ea969-0072-4a52-9739-e9c5da50736e"],"path":"/agents/conversations/{id}/messages","baseUrlOptions":["https://api-dev.narrative.io","https://api.narrative.io"],"title":"List conversation messages (delta read by version cursor)","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"e203a57a-7ab4-4535-a764-1fb271d0ea22":{"in":"path","name":"id","required":true,"schema":{"description":"The conversation's UUID.\nUUID identifying a conversation. Returned from `POST /agents/conversations` and used\nin every other agent endpoint that operates on this conversation.","type":"string","format":"uuid","example":"bc2505b7-068d-44ed-8055-a6f6ffe54ab1","isRequired":true,"uniqueKey":"","typeLabel":"string\u003cuuid>"},"description":"The conversation's UUID."},"b4623cf4-e33b-4fcb-a70c-7fefa3cd4eb3":{"in":"query","name":"since","required":false,"schema":{"type":"integer","minimum":0,"default":0,"isRequired":false,"description":"Return messages with `sequence_no > since`. Use the previous response's\n`current_version` as the next request's `since` for gap-free incremental reads.\n\nDefault `0` returns the entire conversation from the beginning. A negative or\nnon-integer value returns a 404 with an empty body, because the route stops matching.","uniqueKey":"","typeLabel":"integer"},"description":"Return messages with `sequence_no > since`. Use the previous response's\n`current_version` as the next request's `since` for gap-free incremental reads.\n\nDefault `0` returns the entire conversation from the beginning. A negative or\nnon-integer value returns a 404 with an empty body, because the route stops matching."}},"responses":{"5569e5e4-1d61-4dfe-921c-7dd698c03885":{"description":"A page of messages with `sequence_no > since`, plus the current head version.","content":{"application/json":{"schema":{"description":"Returned by `GET /agents/conversations/{id}/messages?since=N`. Carries the\nconversation's current head version (`current_version`) plus the requested page of\nmessages.\n\n**Polling pattern:**\n```\nsince = 0\nloop:\n response = GET /agents/conversations/{id}/messages?since={since}\n process response.messages\n since = response.current_version\n sleep or wait for an event\n```\n\nThe `current_version` is the conversation's head at the moment the response was\ngenerated — using it as the next request's `since` gives gap-free incremental\nreads.","type":"object","required":["current_version","messages"],"properties":{"current_version":{"description":"Monotonic per-conversation counter, bumped by 1 (or more) every time a successful run\nappends messages. Two roles:\n\n1. **Delta cursor** for `GET .../messages?since=N` — fetch only messages with\n `sequence_no > N`.\n2. **Compare-and-swap token** for `POST .../runs` — set `expected_version` to the\n conversation's current head; if it doesn't match at run-creation time, you get a\n [Version Conflict](https://docs.narrative.io/reference/architecture/agent-conversations/errors/version-conflict)\n (HTTP 409).\n\nAlways start a new run cycle by reading the current `version` from\n`GET /agents/conversations/{id}` rather than caching a value from earlier.","type":"integer","minimum":0,"example":4,"isRequired":true,"uniqueKey":"current_version","typeLabel":"integer"},"messages":{"type":"array","description":"Messages with `sequence_no > since`. Empty array means no new messages — the\nconversation is at version `current_version` but you've already seen everything.","items":{"description":"A single persisted message. Returned by `GET /agents/conversations/{id}/messages`.\n\nMessages are ordered by `sequence_no` ascending. Use `sequence_no` as a stable cursor\nfor paging — every successful run inserts one or more messages, and `sequence_no`\nincreases by the number of messages inserted.","type":"object","required":["id","sequence_no","role","content_blocks","run_id","created_at"],"properties":{"id":{"type":"string","format":"uuid","description":"Unique identifier for this message row.","example":"7c2863a2-6a85-4c3f-b400-c55370e9b04a","isRequired":true,"uniqueKey":"messages.items.[INDEX].id","typeLabel":"string\u003cuuid>"},"sequence_no":{"type":"integer","minimum":1,"description":"Monotonic position of this message within its conversation. Also used as the\ndelta cursor for `GET .../messages?since=N` — pass the highest `sequence_no` you\nalready have to fetch only newer messages.","example":2,"isRequired":true,"uniqueKey":"messages.items.[INDEX].sequence_no","typeLabel":"integer"},"role":{"description":"Who produced this message.\n\n- `user` — the caller's input. Either a `user_message` payload, or a synthesized\n user-role turn carrying `tool_result` blocks when continuing from a\n `requires_action` run (Bedrock's chat-completion model requires tool results to\n live on a user-role turn).\n- `assistant` — the model's output. Either a plain answer (`text` blocks) or a\n tool-call request (`tool_use` blocks).\n- `tool` — synthesized turn that carries `tool_result` blocks from server-side tool\n calls. Conceptually distinct from `user` even though the underlying protocol may\n collapse them.","type":"string","enum":["user","assistant","tool"],"isRequired":true,"uniqueKey":"messages.items.[INDEX].role","typeLabel":"enum\u003cstring>"},"content_blocks":{"type":"array","description":"Ordered list of content blocks making up this message. Most messages have one\nblock, but assistant tool-call turns may carry multiple `tool_use` blocks (the\nmodel issuing several tool calls in parallel) and `tool` turns may carry\nmultiple `tool_result` blocks. A turn where the model both reasoned and talked\nbefore answering carries several blocks of different types — see\n`final_answer_from` for which one is the reply.","items":{"oneOf":[{"type":"object","title":"Text","description":"A single block inside a message. Messages carry an ordered list of blocks. Six\nvariants discriminated by `type`:\n\n- `text` — plain text content. The dominant variant for user messages and final\n assistant answers.\n- `tool_use` — the model requesting a tool call. Carries the call's `tool_use_id`\n (used to match it with the subsequent result), the fully-aliased `name`, and the\n `arguments` the model produced.\n- `tool_result` — the response to a `tool_use`. References the same `tool_use_id`\n and carries nested content blocks with the actual result text. `is_error` flags\n tool failures so the model can decide how to react.\n- `reasoning` — the model's own working, present on an assistant turn when the run\n asked for thinking (`defaults.thinking`). It comes **first** in the turn, ahead of\n the answer. `text` is optional: some models return their reasoning as words, others\n return only a `signature` and keep the words to themselves.\n- `redacted_reasoning` — reasoning the provider encrypted rather than returned. Opaque\n base64; there is nothing to read, and it exists so a turn can still be replayed\n intact.\n- `image` — an image in a user message, or inside a `tool_result`. Either the caller\n sent it, or an MCP tool returned it. See `ImageBlock`.\n\nThe discriminator field is `type`. Use it to dispatch in your client.\n\nEach block may also carry an **`id`** alongside its own fields (`b_\u003cjob>_\u003cordinal>`), the identifier\nit was given where it was produced. Blocks a caller sent, and turns stored before ids existed, have\nnone. `final_answer_from` on the message points at ids, which is how a reader knows which block to\nrender as the reply — see the note there.\n\nReasoning blocks are passed through as the model produced them, `signature` included.\nA client that wants to continue a conversation exactly as the model left it can send\nthem back verbatim; one that only wants to show the answer can drop them. The signature\nis meaningful only to the provider — treat it as opaque and don't parse it.","required":["type","text"],"example":{"type":"text","text":"What is 2 + 2?"},"properties":{"type":{"type":"string","enum":["text"],"isRequired":true,"uniqueKey":"messages.items.[INDEX].content_blocks.items.[INDEX].oneOf.0.type","typeLabel":"enum\u003cstring>"},"text":{"type":"string","isRequired":true,"uniqueKey":"messages.items.[INDEX].content_blocks.items.[INDEX].oneOf.0.text","typeLabel":"string"},"id":{"type":"string","description":"The id this block was produced under, when we produced it. Absent on blocks a caller sent\nand on turns stored before ids existed.","example":"b_c08cf800_01","uniqueKey":"messages.items.[INDEX].content_blocks.items.[INDEX].oneOf.0.id","typeLabel":"string"}},"uniqueKey":"messages.items.[INDEX].content_blocks.items.[INDEX].oneOf.0","typeLabel":"Text · object"},{"type":"object","title":"ToolUse","description":"A single block inside a message. Messages carry an ordered list of blocks. Six\nvariants discriminated by `type`:\n\n- `text` — plain text content. The dominant variant for user messages and final\n assistant answers.\n- `tool_use` — the model requesting a tool call. Carries the call's `tool_use_id`\n (used to match it with the subsequent result), the fully-aliased `name`, and the\n `arguments` the model produced.\n- `tool_result` — the response to a `tool_use`. References the same `tool_use_id`\n and carries nested content blocks with the actual result text. `is_error` flags\n tool failures so the model can decide how to react.\n- `reasoning` — the model's own working, present on an assistant turn when the run\n asked for thinking (`defaults.thinking`). It comes **first** in the turn, ahead of\n the answer. `text` is optional: some models return their reasoning as words, others\n return only a `signature` and keep the words to themselves.\n- `redacted_reasoning` — reasoning the provider encrypted rather than returned. Opaque\n base64; there is nothing to read, and it exists so a turn can still be replayed\n intact.\n- `image` — an image in a user message, or inside a `tool_result`. Either the caller\n sent it, or an MCP tool returned it. See `ImageBlock`.\n\nThe discriminator field is `type`. Use it to dispatch in your client.\n\nEach block may also carry an **`id`** alongside its own fields (`b_\u003cjob>_\u003cordinal>`), the identifier\nit was given where it was produced. Blocks a caller sent, and turns stored before ids existed, have\nnone. `final_answer_from` on the message points at ids, which is how a reader knows which block to\nrender as the reply — see the note there.\n\nReasoning blocks are passed through as the model produced them, `signature` included.\nA client that wants to continue a conversation exactly as the model left it can send\nthem back verbatim; one that only wants to show the answer can drop them. The signature\nis meaningful only to the provider — treat it as opaque and don't parse it.","required":["type","tool_use_id","name","arguments"],"properties":{"type":{"type":"string","enum":["tool_use"],"isRequired":true,"uniqueKey":"messages.items.[INDEX].content_blocks.items.[INDEX].oneOf.1.type","typeLabel":"enum\u003cstring>"},"tool_use_id":{"type":"string","description":"Server-assigned identifier the model produced when emitting the tool call.\nUse this to match a `tool_result` with its `tool_use`, and to fill\n`outputs[].tool_use_id` when resuming a `requires_action` run.","example":"tooluse_DWXPKZ50JDGib5GmShyUgJ","isRequired":true,"uniqueKey":"messages.items.[INDEX].content_blocks.items.[INDEX].oneOf.1.tool_use_id","typeLabel":"string"},"name":{"type":"string","description":"Fully-aliased tool name (`{alias}-{tool_name}`) — the same string the model\nsaw in its tool catalog. The alias prefix is how the platform routes the call\nback to its definition.","example":"docs-search_narrative_i_o_knowledge_base","isRequired":true,"uniqueKey":"messages.items.[INDEX].content_blocks.items.[INDEX].oneOf.1.name","typeLabel":"string"},"arguments":{"type":"object","description":"Arguments object produced by the model. Must conform to the tool's\n`input_schema` — if the model produced something that doesn't validate, the\nrun terminates with the\n[MCP Tool Argument Validation Failed](https://docs.narrative.io/reference/architecture/agent-conversations/errors/mcp-tool-validation)\nerror for server-side tools, or surfaces in `pending_tool_calls` as-is for\nclient-side tools.","example":{"query":"rate limiting"},"isRequired":true,"uniqueKey":"messages.items.[INDEX].content_blocks.items.[INDEX].oneOf.1.arguments","typeLabel":"object"},"id":{"type":"string","description":"The id this block was produced under, when we produced it. Absent on blocks a caller sent\nand on turns stored before ids existed.","example":"b_c08cf800_01","uniqueKey":"messages.items.[INDEX].content_blocks.items.[INDEX].oneOf.1.id","typeLabel":"string"}},"uniqueKey":"messages.items.[INDEX].content_blocks.items.[INDEX].oneOf.1","typeLabel":"ToolUse · object"},{"type":"object","title":"ToolResult","description":"A single block inside a message. Messages carry an ordered list of blocks. Six\nvariants discriminated by `type`:\n\n- `text` — plain text content. The dominant variant for user messages and final\n assistant answers.\n- `tool_use` — the model requesting a tool call. Carries the call's `tool_use_id`\n (used to match it with the subsequent result), the fully-aliased `name`, and the\n `arguments` the model produced.\n- `tool_result` — the response to a `tool_use`. References the same `tool_use_id`\n and carries nested content blocks with the actual result text. `is_error` flags\n tool failures so the model can decide how to react.\n- `reasoning` — the model's own working, present on an assistant turn when the run\n asked for thinking (`defaults.thinking`). It comes **first** in the turn, ahead of\n the answer. `text` is optional: some models return their reasoning as words, others\n return only a `signature` and keep the words to themselves.\n- `redacted_reasoning` — reasoning the provider encrypted rather than returned. Opaque\n base64; there is nothing to read, and it exists so a turn can still be replayed\n intact.\n- `image` — an image in a user message, or inside a `tool_result`. Either the caller\n sent it, or an MCP tool returned it. See `ImageBlock`.\n\nThe discriminator field is `type`. Use it to dispatch in your client.\n\nEach block may also carry an **`id`** alongside its own fields (`b_\u003cjob>_\u003cordinal>`), the identifier\nit was given where it was produced. Blocks a caller sent, and turns stored before ids existed, have\nnone. `final_answer_from` on the message points at ids, which is how a reader knows which block to\nrender as the reply — see the note there.\n\nReasoning blocks are passed through as the model produced them, `signature` included.\nA client that wants to continue a conversation exactly as the model left it can send\nthem back verbatim; one that only wants to show the answer can drop them. The signature\nis meaningful only to the provider — treat it as opaque and don't parse it.","required":["type","tool_use_id","content","is_error"],"properties":{"type":{"type":"string","enum":["tool_result"],"isRequired":true,"uniqueKey":"messages.items.[INDEX].content_blocks.items.[INDEX].oneOf.2.type","typeLabel":"enum\u003cstring>"},"tool_use_id":{"type":"string","description":"The `tool_use_id` from the matching `tool_use` block on the prior assistant turn.","example":"tooluse_DWXPKZ50JDGib5GmShyUgJ","isRequired":true,"uniqueKey":"messages.items.[INDEX].content_blocks.items.[INDEX].oneOf.2.tool_use_id","typeLabel":"string"},"content":{"type":"array","description":"Nested content blocks carrying the actual result: `text` blocks, plus `image`\nblocks when the tool returned images. Almost always a single `text` block; the\nplatform splits long results into multiple text blocks when the underlying MCP\nserver returns multiple chunks. An image an MCP tool returned that a model can't\nread (an unsupported type, or over the size limit) is replaced with a `text`\nblock saying so.","items":{"$circularRef":"04913a1f-12ff-4e3a-bb4b-90b3b6970ab6"},"isRequired":true,"uniqueKey":"messages.items.[INDEX].content_blocks.items.[INDEX].oneOf.2.content","typeLabel":"array"},"is_error":{"type":"boolean","description":"Whether the tool call failed. The model decides how to react to errors —\nretry, ask the user, fall through to a partial answer, etc. Note that an\nMCP server returning a non-2xx response that the platform can still parse\ncounts as `is_error: false` (the tool *succeeded* in returning a result, even\nif that result reports an underlying failure).","isRequired":true,"uniqueKey":"messages.items.[INDEX].content_blocks.items.[INDEX].oneOf.2.is_error","typeLabel":"boolean"},"id":{"type":"string","description":"The id this block was produced under, when we produced it. Absent on blocks a caller sent\nand on turns stored before ids existed.","example":"b_c08cf800_01","uniqueKey":"messages.items.[INDEX].content_blocks.items.[INDEX].oneOf.2.id","typeLabel":"string"}},"uniqueKey":"messages.items.[INDEX].content_blocks.items.[INDEX].oneOf.2","typeLabel":"ToolResult · object"},{"type":"object","title":"Reasoning","description":"A single block inside a message. Messages carry an ordered list of blocks. Six\nvariants discriminated by `type`:\n\n- `text` — plain text content. The dominant variant for user messages and final\n assistant answers.\n- `tool_use` — the model requesting a tool call. Carries the call's `tool_use_id`\n (used to match it with the subsequent result), the fully-aliased `name`, and the\n `arguments` the model produced.\n- `tool_result` — the response to a `tool_use`. References the same `tool_use_id`\n and carries nested content blocks with the actual result text. `is_error` flags\n tool failures so the model can decide how to react.\n- `reasoning` — the model's own working, present on an assistant turn when the run\n asked for thinking (`defaults.thinking`). It comes **first** in the turn, ahead of\n the answer. `text` is optional: some models return their reasoning as words, others\n return only a `signature` and keep the words to themselves.\n- `redacted_reasoning` — reasoning the provider encrypted rather than returned. Opaque\n base64; there is nothing to read, and it exists so a turn can still be replayed\n intact.\n- `image` — an image in a user message, or inside a `tool_result`. Either the caller\n sent it, or an MCP tool returned it. See `ImageBlock`.\n\nThe discriminator field is `type`. Use it to dispatch in your client.\n\nEach block may also carry an **`id`** alongside its own fields (`b_\u003cjob>_\u003cordinal>`), the identifier\nit was given where it was produced. Blocks a caller sent, and turns stored before ids existed, have\nnone. `final_answer_from` on the message points at ids, which is how a reader knows which block to\nrender as the reply — see the note there.\n\nReasoning blocks are passed through as the model produced them, `signature` included.\nA client that wants to continue a conversation exactly as the model left it can send\nthem back verbatim; one that only wants to show the answer can drop them. The signature\nis meaningful only to the provider — treat it as opaque and don't parse it.","required":["type","signature"],"example":{"type":"reasoning","signature":"CAIS6QMKcAgQEAEYAipATBOWJItj3lNDm2ZmBW70v+WJ5oI6W68N…"},"properties":{"type":{"type":"string","enum":["reasoning"],"isRequired":true,"uniqueKey":"messages.items.[INDEX].content_blocks.items.[INDEX].oneOf.3.type","typeLabel":"enum\u003cstring>"},"signature":{"type":"string","description":"Provider-issued signature over the reasoning. Opaque: not a hash you can verify\nor a token you can decode. Send the block back unchanged to continue a turn as\nthe model left it, or ignore it.","example":"CAIS6QMKcAgQEAEYAipATBOWJItj3lNDm2ZmBW70v+WJ5oI6W68N…","isRequired":true,"uniqueKey":"messages.items.[INDEX].content_blocks.items.[INDEX].oneOf.3.signature","typeLabel":"string"},"id":{"type":"string","description":"The id this block was produced under, when we produced it. Absent on blocks a caller sent\nand on turns stored before ids existed.","example":"b_c08cf800_01","uniqueKey":"messages.items.[INDEX].content_blocks.items.[INDEX].oneOf.3.id","typeLabel":"string"},"text":{"type":"string","description":"The model's working, when it returns it as words. Absent when the model reasoned\nbut withheld the text — the Opus models do this, and `signature` is then the only\nevidence the turn reasoned at all. Never assume this field is present.","example":"Cleo cannot be Monday, so the only assignment left is…","uniqueKey":"messages.items.[INDEX].content_blocks.items.[INDEX].oneOf.3.text","typeLabel":"string"}},"uniqueKey":"messages.items.[INDEX].content_blocks.items.[INDEX].oneOf.3","typeLabel":"Reasoning · object"},{"type":"object","title":"RedactedReasoning","description":"A single block inside a message. Messages carry an ordered list of blocks. Six\nvariants discriminated by `type`:\n\n- `text` — plain text content. The dominant variant for user messages and final\n assistant answers.\n- `tool_use` — the model requesting a tool call. Carries the call's `tool_use_id`\n (used to match it with the subsequent result), the fully-aliased `name`, and the\n `arguments` the model produced.\n- `tool_result` — the response to a `tool_use`. References the same `tool_use_id`\n and carries nested content blocks with the actual result text. `is_error` flags\n tool failures so the model can decide how to react.\n- `reasoning` — the model's own working, present on an assistant turn when the run\n asked for thinking (`defaults.thinking`). It comes **first** in the turn, ahead of\n the answer. `text` is optional: some models return their reasoning as words, others\n return only a `signature` and keep the words to themselves.\n- `redacted_reasoning` — reasoning the provider encrypted rather than returned. Opaque\n base64; there is nothing to read, and it exists so a turn can still be replayed\n intact.\n- `image` — an image in a user message, or inside a `tool_result`. Either the caller\n sent it, or an MCP tool returned it. See `ImageBlock`.\n\nThe discriminator field is `type`. Use it to dispatch in your client.\n\nEach block may also carry an **`id`** alongside its own fields (`b_\u003cjob>_\u003cordinal>`), the identifier\nit was given where it was produced. Blocks a caller sent, and turns stored before ids existed, have\nnone. `final_answer_from` on the message points at ids, which is how a reader knows which block to\nrender as the reply — see the note there.\n\nReasoning blocks are passed through as the model produced them, `signature` included.\nA client that wants to continue a conversation exactly as the model left it can send\nthem back verbatim; one that only wants to show the answer can drop them. The signature\nis meaningful only to the provider — treat it as opaque and don't parse it.","required":["type","data"],"example":{"type":"redacted_reasoning","data":"ZW5jcnlwdGVkLXJlYXNvbmluZy1ieXRlcw=="},"properties":{"type":{"type":"string","enum":["redacted_reasoning"],"isRequired":true,"uniqueKey":"messages.items.[INDEX].content_blocks.items.[INDEX].oneOf.4.type","typeLabel":"enum\u003cstring>"},"data":{"type":"string","description":"Base64 of the encrypted reasoning. Nothing to display. Kept so the turn can be\nreplayed whole.","example":"ZW5jcnlwdGVkLXJlYXNvbmluZy1ieXRlcw==","isRequired":true,"uniqueKey":"messages.items.[INDEX].content_blocks.items.[INDEX].oneOf.4.data","typeLabel":"string"},"id":{"type":"string","description":"The id this block was produced under, when we produced it. Absent on blocks a caller sent\nand on turns stored before ids existed.","example":"b_c08cf800_01","uniqueKey":"messages.items.[INDEX].content_blocks.items.[INDEX].oneOf.4.id","typeLabel":"string"}},"uniqueKey":"messages.items.[INDEX].content_blocks.items.[INDEX].oneOf.4","typeLabel":"RedactedReasoning · object"},{"type":"object","title":"Image","description":"A single block inside a message. Messages carry an ordered list of blocks. Six\nvariants discriminated by `type`:\n\n- `text` — plain text content. The dominant variant for user messages and final\n assistant answers.\n- `tool_use` — the model requesting a tool call. Carries the call's `tool_use_id`\n (used to match it with the subsequent result), the fully-aliased `name`, and the\n `arguments` the model produced.\n- `tool_result` — the response to a `tool_use`. References the same `tool_use_id`\n and carries nested content blocks with the actual result text. `is_error` flags\n tool failures so the model can decide how to react.\n- `reasoning` — the model's own working, present on an assistant turn when the run\n asked for thinking (`defaults.thinking`). It comes **first** in the turn, ahead of\n the answer. `text` is optional: some models return their reasoning as words, others\n return only a `signature` and keep the words to themselves.\n- `redacted_reasoning` — reasoning the provider encrypted rather than returned. Opaque\n base64; there is nothing to read, and it exists so a turn can still be replayed\n intact.\n- `image` — an image in a user message, or inside a `tool_result`. Either the caller\n sent it, or an MCP tool returned it. See `ImageBlock`.\n\nThe discriminator field is `type`. Use it to dispatch in your client.\n\nEach block may also carry an **`id`** alongside its own fields (`b_\u003cjob>_\u003cordinal>`), the identifier\nit was given where it was produced. Blocks a caller sent, and turns stored before ids existed, have\nnone. `final_answer_from` on the message points at ids, which is how a reader knows which block to\nrender as the reply — see the note there.\n\nReasoning blocks are passed through as the model produced them, `signature` included.\nA client that wants to continue a conversation exactly as the model left it can send\nthem back verbatim; one that only wants to show the answer can drop them. The signature\nis meaningful only to the provider — treat it as opaque and don't parse it.","required":["type","source"],"example":{"type":"image","source":{"type":"base64","media_type":"image/png","data":"iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mP8z8BQDwAEhQGAhKmMIQAAAABJRU5ErkJggg=="}},"properties":{"type":{"type":"string","enum":["image"],"isRequired":true,"uniqueKey":"messages.items.[INDEX].content_blocks.items.[INDEX].oneOf.5.type","typeLabel":"enum\u003cstring>"},"source":{"type":"object","required":["type","media_type","data"],"properties":{"type":{"type":"string","enum":["base64"],"isRequired":true,"uniqueKey":"messages.items.[INDEX].content_blocks.items.[INDEX].oneOf.5.source.type","typeLabel":"enum\u003cstring>"},"media_type":{"type":"string","enum":["image/jpeg","image/png","image/gif","image/webp"],"isRequired":true,"uniqueKey":"messages.items.[INDEX].content_blocks.items.[INDEX].oneOf.5.source.media_type","typeLabel":"enum\u003cstring>"},"data":{"type":"string","description":"The image bytes, base64-encoded.","example":"iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mP8z8BQDwAEhQGAhKmMIQAAAABJRU5ErkJggg==","isRequired":true,"uniqueKey":"messages.items.[INDEX].content_blocks.items.[INDEX].oneOf.5.source.data","typeLabel":"string"}},"isRequired":true,"uniqueKey":"messages.items.[INDEX].content_blocks.items.[INDEX].oneOf.5.source","typeLabel":"object"},"id":{"type":"string","description":"The id this block was produced under, when we produced it. Absent on blocks a caller sent\nand on turns stored before ids existed.","example":"b_c08cf800_01","uniqueKey":"messages.items.[INDEX].content_blocks.items.[INDEX].oneOf.5.id","typeLabel":"string"}},"uniqueKey":"messages.items.[INDEX].content_blocks.items.[INDEX].oneOf.5","typeLabel":"Image · object"}],"uniqueKey":"messages.items.[INDEX].content_blocks.items.[INDEX]","typeLabel":"Text · object | ToolUse · object | ToolResult · object | Reasoning · object | RedactedReasoning · object | Image · object"},"isRequired":true,"uniqueKey":"messages.items.[INDEX].content_blocks","typeLabel":"(Text · object | ToolUse · object | ToolResult · object | Reasoning · object | RedactedReasoning · object | Image · object)[]"},"run_id":{"type":"string","format":"uuid","description":"The run that produced this message. Use it to cross-reference with `GET\n/agents/runs/{id}` to see which run the message belongs to (useful when multiple\nruns span the same conversation).","example":"82eb9cb7-619e-46bb-ac1c-8a32b0112c1c","isRequired":true,"uniqueKey":"messages.items.[INDEX].run_id","typeLabel":"string\u003cuuid>"},"created_at":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"messages.items.[INDEX].created_at","typeLabel":"string\u003cdate-time>"},"final_answer_from":{"type":"array","description":"Ids of the blocks in `content_blocks` the run's final answer was taken from — always\ntext blocks, always present in this message, and empty on a turn that answered nothing\n(a tool-call turn, a caller's message, or a turn stored before ids existed).\n\n**Render the reply from these, not from every text block.** With thinking enabled a model\nmay narrate its working as ordinary text before answering; that narration is persisted\nbecause it is real output, but it is not the reply. A reader that renders every text block\nshows the working and the answer as two messages.","items":{"type":"string","uniqueKey":"messages.items.[INDEX].final_answer_from.items.[INDEX]","typeLabel":"string"},"example":["b_c08cf800_02"],"uniqueKey":"messages.items.[INDEX].final_answer_from","typeLabel":"string[]"}},"uniqueKey":"messages.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"messages","typeLabel":"object[]"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"current_version":4,"messages":[{"id":"7c2863a2-6a85-4c3f-b400-c55370e9b04a","sequence_no":2,"role":"user","content_blocks":[{"type":"text","text":"What is 2 + 2?"}],"run_id":"82eb9cb7-619e-46bb-ac1c-8a32b0112c1c","created_at":"2023-11-07T05:31:56Z","final_answer_from":["b_c08cf800_02"]}]}}},"exampleType":"generated"}},"exampleType":"generated"},"04e2f817-a802-4a3a-b0d8-06222f4bf40c":{"description":"Token does not have `agent_conversations:read` permission, or has expired.","content":{"application/json":{"schema":{"type":"object","required":["error","error_description"],"properties":{"error":{"type":"string","example":"Unauthorized","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"error_description":{"type":"string","example":"You are not authorized to use this endpoint.","isRequired":true,"uniqueKey":"error_description","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":"Unauthorized","error_description":"You are not authorized to use this endpoint."}}},"exampleType":"generated"}},"exampleType":"generated"},"59683ca6-7138-4bfa-973e-924d4047412e":{"description":"The request is not allowed with the token sent, or no valid token was sent.","content":{"application/json":{"schema":{"type":"object","required":["error","error_description"],"properties":{"error":{"type":"string","example":"Unauthorized","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"error_description":{"type":"string","example":"You are not authorized to use this endpoint.","isRequired":true,"uniqueKey":"error_description","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":"Unauthorized","error_description":"You are not authorized to use this endpoint."}}},"exampleType":"generated"}},"exampleType":"generated"},"ed81e4fe-d638-4eb5-90b3-08e86658b6d2":{"description":"The conversation was not found. An `id` that is not a UUID is also a 404, with an\nempty body.","content":{"application/json":{"schema":{"description":"RFC 7807 Problem Details. Returned with `Content-Type: application/json` for every\n4xx/5xx response on `/agents/*`.\n\n**Field semantics:**\n\n- `type` — stable URL to the docs page describing this error class. Treat it as the\n machine-readable identifier; the same URL is referenced by `RunError.docs_url` on\n failed runs. Optional on 500 errors that don't map to a documented class.\n- `title` — short human-readable summary.\n- `status` — HTTP status code echoed in the body (so clients that read only the body\n can still dispatch on status).\n- `detail` — request-specific detail. Includes which alias was malformed, which\n `tool_use_id` was missing, etc.\n- `instance` — always `null` on `/agents` responses.\n- `log_id` — UUID correlated with server logs. Always include this when reporting an\n issue to support.\n- `debug` — always `null` on `/agents` responses.\n\nEvery key is always present. `type` is `null` on the one error with no docs page: the 403\nreturned when the company's credit limit is exceeded.\n\nNot every error on these endpoints uses this shape. A request body that isn't valid JSON, or\ndoesn't decode, gets a 400 with the plain `{error, error_description}` body instead. So does a\ntoken with no user attached (403), and a token missing the needed permission (401).\n\nCommon error pages indexed by `type`:\n\n| HTTP | Common cause | Docs page |\n|------|--------------|-----------|\n| 400 | Bad request body, validation failure | various — see `type` |\n| 404 | Resource not found, or owned by a different company | `/conversation-not-found`, `/agent-run-not-found` |\n| 409 | Conversation version moved while you were preparing the run, or another run on it is still in flight | `/version-conflict`, `/run-in-progress` |\n| 500 | Internal error (schema drift, workflow start failure) | `/invalid-stored-field`, `/workflow-start-failed` |","type":"object","required":["title","status","detail","log_id"],"properties":{"title":{"type":"string","example":"Invalid Tool Alias","isRequired":true,"uniqueKey":"title","typeLabel":"string"},"status":{"type":"integer","example":400,"isRequired":true,"uniqueKey":"status","typeLabel":"integer"},"detail":{"type":"string","example":"invalid tool aliases (must match ^[a-zA-Z][a-zA-Z0-9]{0,7}$): with_underscore","isRequired":true,"uniqueKey":"detail","typeLabel":"string"},"log_id":{"type":"string","format":"uuid","example":"1f6e5d4c-3b2a-1098-7654-3210fedcba98","isRequired":true,"uniqueKey":"log_id","typeLabel":"string\u003cuuid>"},"type":{"oneOf":[{"type":"string","format":"uri","example":"https://docs.narrative.io/reference/architecture/agent-conversations/errors/invalid-tool-alias","uniqueKey":"type.oneOf.0","typeLabel":"string\u003curi>"},{"type":"null","format":"uri","example":"https://docs.narrative.io/reference/architecture/agent-conversations/errors/invalid-tool-alias","uniqueKey":"type.oneOf.1","typeLabel":"null"}],"uniqueKey":"type","typeLabel":"string\u003curi> | null"},"instance":{"oneOf":[{"type":"string","uniqueKey":"instance.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"instance.oneOf.1","typeLabel":"null"}],"uniqueKey":"instance","typeLabel":"string | null"},"debug":{"oneOf":[{"type":"object","uniqueKey":"debug.oneOf.0","typeLabel":"object"},{"type":"null","uniqueKey":"debug.oneOf.1","typeLabel":"null"}],"uniqueKey":"debug","typeLabel":"object | null"}},"example":{"type":"https://docs.narrative.io/reference/architecture/agent-conversations/errors/invalid-tool-alias","title":"Invalid Tool Alias","status":400,"detail":"invalid tool aliases (must match ^[a-zA-Z][a-zA-Z0-9]{0,7}$): with_underscore","instance":null,"log_id":"1f6e5d4c-3b2a-1098-7654-3210fedcba98","debug":null},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"type":"https://docs.narrative.io/reference/architecture/agent-conversations/errors/invalid-tool-alias","title":"Invalid Tool Alias","status":400,"detail":"invalid tool aliases (must match ^[a-zA-Z][a-zA-Z0-9]{0,7}$): with_underscore","instance":null,"log_id":"1f6e5d4c-3b2a-1098-7654-3210fedcba98","debug":null}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"04f40456-541d-4c5e-826d-ad16cb648821":{"BearerAuth":{"type":"http","scheme":"bearer","scopes":[],"schemeName":"BearerAuth"}}},"servers":{"87427ea4-ae95-403a-b9b7-f2f81a8d5a09":{"url":"https://api-dev.narrative.io"},"473ea969-0072-4a52-9739-e9c5da50736e":{"url":"https://api.narrative.io"}},"schemas":{"04913a1f-12ff-4e3a-bb4b-90b3b6970ab6":{"oneOf":[{"type":"object","title":"Text","description":"A single block inside a message. Messages carry an ordered list of blocks. Six\nvariants discriminated by `type`:\n\n- `text` — plain text content. The dominant variant for user messages and final\n assistant answers.\n- `tool_use` — the model requesting a tool call. Carries the call's `tool_use_id`\n (used to match it with the subsequent result), the fully-aliased `name`, and the\n `arguments` the model produced.\n- `tool_result` — the response to a `tool_use`. References the same `tool_use_id`\n and carries nested content blocks with the actual result text. `is_error` flags\n tool failures so the model can decide how to react.\n- `reasoning` — the model's own working, present on an assistant turn when the run\n asked for thinking (`defaults.thinking`). It comes **first** in the turn, ahead of\n the answer. `text` is optional: some models return their reasoning as words, others\n return only a `signature` and keep the words to themselves.\n- `redacted_reasoning` — reasoning the provider encrypted rather than returned. Opaque\n base64; there is nothing to read, and it exists so a turn can still be replayed\n intact.\n- `image` — an image in a user message, or inside a `tool_result`. Either the caller\n sent it, or an MCP tool returned it. See `ImageBlock`.\n\nThe discriminator field is `type`. Use it to dispatch in your client.\n\nEach block may also carry an **`id`** alongside its own fields (`b_\u003cjob>_\u003cordinal>`), the identifier\nit was given where it was produced. Blocks a caller sent, and turns stored before ids existed, have\nnone. `final_answer_from` on the message points at ids, which is how a reader knows which block to\nrender as the reply — see the note there.\n\nReasoning blocks are passed through as the model produced them, `signature` included.\nA client that wants to continue a conversation exactly as the model left it can send\nthem back verbatim; one that only wants to show the answer can drop them. The signature\nis meaningful only to the provider — treat it as opaque and don't parse it.","required":["type","text"],"example":{"type":"text","text":"What is 2 + 2?"},"properties":{"type":{"type":"string","enum":["text"],"isRequired":true},"text":{"type":"string","isRequired":true},"id":{"type":"string","description":"The id this block was produced under, when we produced it. Absent on blocks a caller sent\nand on turns stored before ids existed.","example":"b_c08cf800_01"}}},{"type":"object","title":"ToolUse","description":"A single block inside a message. Messages carry an ordered list of blocks. Six\nvariants discriminated by `type`:\n\n- `text` — plain text content. The dominant variant for user messages and final\n assistant answers.\n- `tool_use` — the model requesting a tool call. Carries the call's `tool_use_id`\n (used to match it with the subsequent result), the fully-aliased `name`, and the\n `arguments` the model produced.\n- `tool_result` — the response to a `tool_use`. References the same `tool_use_id`\n and carries nested content blocks with the actual result text. `is_error` flags\n tool failures so the model can decide how to react.\n- `reasoning` — the model's own working, present on an assistant turn when the run\n asked for thinking (`defaults.thinking`). It comes **first** in the turn, ahead of\n the answer. `text` is optional: some models return their reasoning as words, others\n return only a `signature` and keep the words to themselves.\n- `redacted_reasoning` — reasoning the provider encrypted rather than returned. Opaque\n base64; there is nothing to read, and it exists so a turn can still be replayed\n intact.\n- `image` — an image in a user message, or inside a `tool_result`. Either the caller\n sent it, or an MCP tool returned it. See `ImageBlock`.\n\nThe discriminator field is `type`. Use it to dispatch in your client.\n\nEach block may also carry an **`id`** alongside its own fields (`b_\u003cjob>_\u003cordinal>`), the identifier\nit was given where it was produced. Blocks a caller sent, and turns stored before ids existed, have\nnone. `final_answer_from` on the message points at ids, which is how a reader knows which block to\nrender as the reply — see the note there.\n\nReasoning blocks are passed through as the model produced them, `signature` included.\nA client that wants to continue a conversation exactly as the model left it can send\nthem back verbatim; one that only wants to show the answer can drop them. The signature\nis meaningful only to the provider — treat it as opaque and don't parse it.","required":["type","tool_use_id","name","arguments"],"properties":{"type":{"type":"string","enum":["tool_use"],"isRequired":true},"tool_use_id":{"type":"string","description":"Server-assigned identifier the model produced when emitting the tool call.\nUse this to match a `tool_result` with its `tool_use`, and to fill\n`outputs[].tool_use_id` when resuming a `requires_action` run.","example":"tooluse_DWXPKZ50JDGib5GmShyUgJ","isRequired":true},"name":{"type":"string","description":"Fully-aliased tool name (`{alias}-{tool_name}`) — the same string the model\nsaw in its tool catalog. The alias prefix is how the platform routes the call\nback to its definition.","example":"docs-search_narrative_i_o_knowledge_base","isRequired":true},"arguments":{"type":"object","description":"Arguments object produced by the model. Must conform to the tool's\n`input_schema` — if the model produced something that doesn't validate, the\nrun terminates with the\n[MCP Tool Argument Validation Failed](https://docs.narrative.io/reference/architecture/agent-conversations/errors/mcp-tool-validation)\nerror for server-side tools, or surfaces in `pending_tool_calls` as-is for\nclient-side tools.","example":{"query":"rate limiting"},"isRequired":true},"id":{"type":"string","description":"The id this block was produced under, when we produced it. Absent on blocks a caller sent\nand on turns stored before ids existed.","example":"b_c08cf800_01"}}},{"type":"object","title":"ToolResult","description":"A single block inside a message. Messages carry an ordered list of blocks. Six\nvariants discriminated by `type`:\n\n- `text` — plain text content. The dominant variant for user messages and final\n assistant answers.\n- `tool_use` — the model requesting a tool call. Carries the call's `tool_use_id`\n (used to match it with the subsequent result), the fully-aliased `name`, and the\n `arguments` the model produced.\n- `tool_result` — the response to a `tool_use`. References the same `tool_use_id`\n and carries nested content blocks with the actual result text. `is_error` flags\n tool failures so the model can decide how to react.\n- `reasoning` — the model's own working, present on an assistant turn when the run\n asked for thinking (`defaults.thinking`). It comes **first** in the turn, ahead of\n the answer. `text` is optional: some models return their reasoning as words, others\n return only a `signature` and keep the words to themselves.\n- `redacted_reasoning` — reasoning the provider encrypted rather than returned. Opaque\n base64; there is nothing to read, and it exists so a turn can still be replayed\n intact.\n- `image` — an image in a user message, or inside a `tool_result`. Either the caller\n sent it, or an MCP tool returned it. See `ImageBlock`.\n\nThe discriminator field is `type`. Use it to dispatch in your client.\n\nEach block may also carry an **`id`** alongside its own fields (`b_\u003cjob>_\u003cordinal>`), the identifier\nit was given where it was produced. Blocks a caller sent, and turns stored before ids existed, have\nnone. `final_answer_from` on the message points at ids, which is how a reader knows which block to\nrender as the reply — see the note there.\n\nReasoning blocks are passed through as the model produced them, `signature` included.\nA client that wants to continue a conversation exactly as the model left it can send\nthem back verbatim; one that only wants to show the answer can drop them. The signature\nis meaningful only to the provider — treat it as opaque and don't parse it.","required":["type","tool_use_id","content","is_error"],"properties":{"type":{"type":"string","enum":["tool_result"],"isRequired":true},"tool_use_id":{"type":"string","description":"The `tool_use_id` from the matching `tool_use` block on the prior assistant turn.","example":"tooluse_DWXPKZ50JDGib5GmShyUgJ","isRequired":true},"content":{"type":"array","description":"Nested content blocks carrying the actual result: `text` blocks, plus `image`\nblocks when the tool returned images. Almost always a single `text` block; the\nplatform splits long results into multiple text blocks when the underlying MCP\nserver returns multiple chunks. An image an MCP tool returned that a model can't\nread (an unsupported type, or over the size limit) is replaced with a `text`\nblock saying so.","items":{"$circularRef":"04913a1f-12ff-4e3a-bb4b-90b3b6970ab6"},"isRequired":true},"is_error":{"type":"boolean","description":"Whether the tool call failed. The model decides how to react to errors —\nretry, ask the user, fall through to a partial answer, etc. Note that an\nMCP server returning a non-2xx response that the platform can still parse\ncounts as `is_error: false` (the tool *succeeded* in returning a result, even\nif that result reports an underlying failure).","isRequired":true},"id":{"type":"string","description":"The id this block was produced under, when we produced it. Absent on blocks a caller sent\nand on turns stored before ids existed.","example":"b_c08cf800_01"}}},{"type":"object","title":"Reasoning","description":"A single block inside a message. Messages carry an ordered list of blocks. Six\nvariants discriminated by `type`:\n\n- `text` — plain text content. The dominant variant for user messages and final\n assistant answers.\n- `tool_use` — the model requesting a tool call. Carries the call's `tool_use_id`\n (used to match it with the subsequent result), the fully-aliased `name`, and the\n `arguments` the model produced.\n- `tool_result` — the response to a `tool_use`. References the same `tool_use_id`\n and carries nested content blocks with the actual result text. `is_error` flags\n tool failures so the model can decide how to react.\n- `reasoning` — the model's own working, present on an assistant turn when the run\n asked for thinking (`defaults.thinking`). It comes **first** in the turn, ahead of\n the answer. `text` is optional: some models return their reasoning as words, others\n return only a `signature` and keep the words to themselves.\n- `redacted_reasoning` — reasoning the provider encrypted rather than returned. Opaque\n base64; there is nothing to read, and it exists so a turn can still be replayed\n intact.\n- `image` — an image in a user message, or inside a `tool_result`. Either the caller\n sent it, or an MCP tool returned it. See `ImageBlock`.\n\nThe discriminator field is `type`. Use it to dispatch in your client.\n\nEach block may also carry an **`id`** alongside its own fields (`b_\u003cjob>_\u003cordinal>`), the identifier\nit was given where it was produced. Blocks a caller sent, and turns stored before ids existed, have\nnone. `final_answer_from` on the message points at ids, which is how a reader knows which block to\nrender as the reply — see the note there.\n\nReasoning blocks are passed through as the model produced them, `signature` included.\nA client that wants to continue a conversation exactly as the model left it can send\nthem back verbatim; one that only wants to show the answer can drop them. The signature\nis meaningful only to the provider — treat it as opaque and don't parse it.","required":["type","signature"],"example":{"type":"reasoning","signature":"CAIS6QMKcAgQEAEYAipATBOWJItj3lNDm2ZmBW70v+WJ5oI6W68N…"},"properties":{"type":{"type":"string","enum":["reasoning"],"isRequired":true},"signature":{"type":"string","description":"Provider-issued signature over the reasoning. Opaque: not a hash you can verify\nor a token you can decode. Send the block back unchanged to continue a turn as\nthe model left it, or ignore it.","example":"CAIS6QMKcAgQEAEYAipATBOWJItj3lNDm2ZmBW70v+WJ5oI6W68N…","isRequired":true},"id":{"type":"string","description":"The id this block was produced under, when we produced it. Absent on blocks a caller sent\nand on turns stored before ids existed.","example":"b_c08cf800_01"},"text":{"type":"string","description":"The model's working, when it returns it as words. Absent when the model reasoned\nbut withheld the text — the Opus models do this, and `signature` is then the only\nevidence the turn reasoned at all. Never assume this field is present.","example":"Cleo cannot be Monday, so the only assignment left is…"}}},{"type":"object","title":"RedactedReasoning","description":"A single block inside a message. Messages carry an ordered list of blocks. Six\nvariants discriminated by `type`:\n\n- `text` — plain text content. The dominant variant for user messages and final\n assistant answers.\n- `tool_use` — the model requesting a tool call. Carries the call's `tool_use_id`\n (used to match it with the subsequent result), the fully-aliased `name`, and the\n `arguments` the model produced.\n- `tool_result` — the response to a `tool_use`. References the same `tool_use_id`\n and carries nested content blocks with the actual result text. `is_error` flags\n tool failures so the model can decide how to react.\n- `reasoning` — the model's own working, present on an assistant turn when the run\n asked for thinking (`defaults.thinking`). It comes **first** in the turn, ahead of\n the answer. `text` is optional: some models return their reasoning as words, others\n return only a `signature` and keep the words to themselves.\n- `redacted_reasoning` — reasoning the provider encrypted rather than returned. Opaque\n base64; there is nothing to read, and it exists so a turn can still be replayed\n intact.\n- `image` — an image in a user message, or inside a `tool_result`. Either the caller\n sent it, or an MCP tool returned it. See `ImageBlock`.\n\nThe discriminator field is `type`. Use it to dispatch in your client.\n\nEach block may also carry an **`id`** alongside its own fields (`b_\u003cjob>_\u003cordinal>`), the identifier\nit was given where it was produced. Blocks a caller sent, and turns stored before ids existed, have\nnone. `final_answer_from` on the message points at ids, which is how a reader knows which block to\nrender as the reply — see the note there.\n\nReasoning blocks are passed through as the model produced them, `signature` included.\nA client that wants to continue a conversation exactly as the model left it can send\nthem back verbatim; one that only wants to show the answer can drop them. The signature\nis meaningful only to the provider — treat it as opaque and don't parse it.","required":["type","data"],"example":{"type":"redacted_reasoning","data":"ZW5jcnlwdGVkLXJlYXNvbmluZy1ieXRlcw=="},"properties":{"type":{"type":"string","enum":["redacted_reasoning"],"isRequired":true},"data":{"type":"string","description":"Base64 of the encrypted reasoning. Nothing to display. Kept so the turn can be\nreplayed whole.","example":"ZW5jcnlwdGVkLXJlYXNvbmluZy1ieXRlcw==","isRequired":true},"id":{"type":"string","description":"The id this block was produced under, when we produced it. Absent on blocks a caller sent\nand on turns stored before ids existed.","example":"b_c08cf800_01"}}},{"type":"object","title":"Image","description":"A single block inside a message. Messages carry an ordered list of blocks. Six\nvariants discriminated by `type`:\n\n- `text` — plain text content. The dominant variant for user messages and final\n assistant answers.\n- `tool_use` — the model requesting a tool call. Carries the call's `tool_use_id`\n (used to match it with the subsequent result), the fully-aliased `name`, and the\n `arguments` the model produced.\n- `tool_result` — the response to a `tool_use`. References the same `tool_use_id`\n and carries nested content blocks with the actual result text. `is_error` flags\n tool failures so the model can decide how to react.\n- `reasoning` — the model's own working, present on an assistant turn when the run\n asked for thinking (`defaults.thinking`). It comes **first** in the turn, ahead of\n the answer. `text` is optional: some models return their reasoning as words, others\n return only a `signature` and keep the words to themselves.\n- `redacted_reasoning` — reasoning the provider encrypted rather than returned. Opaque\n base64; there is nothing to read, and it exists so a turn can still be replayed\n intact.\n- `image` — an image in a user message, or inside a `tool_result`. Either the caller\n sent it, or an MCP tool returned it. See `ImageBlock`.\n\nThe discriminator field is `type`. Use it to dispatch in your client.\n\nEach block may also carry an **`id`** alongside its own fields (`b_\u003cjob>_\u003cordinal>`), the identifier\nit was given where it was produced. Blocks a caller sent, and turns stored before ids existed, have\nnone. `final_answer_from` on the message points at ids, which is how a reader knows which block to\nrender as the reply — see the note there.\n\nReasoning blocks are passed through as the model produced them, `signature` included.\nA client that wants to continue a conversation exactly as the model left it can send\nthem back verbatim; one that only wants to show the answer can drop them. The signature\nis meaningful only to the provider — treat it as opaque and don't parse it.","required":["type","source"],"example":{"type":"image","source":{"type":"base64","media_type":"image/png","data":"iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mP8z8BQDwAEhQGAhKmMIQAAAABJRU5ErkJggg=="}},"properties":{"type":{"type":"string","enum":["image"],"isRequired":true},"source":{"type":"object","required":["type","media_type","data"],"properties":{"type":{"type":"string","enum":["base64"],"isRequired":true},"media_type":{"type":"string","enum":["image/jpeg","image/png","image/gif","image/webp"],"isRequired":true},"data":{"type":"string","description":"The image bytes, base64-encoded.","example":"iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mP8z8BQDwAEhQGAhKmMIQAAAABJRU5ErkJggg==","isRequired":true}},"isRequired":true},"id":{"type":"string","description":"The id this block was produced under, when we produced it. Absent on blocks a caller sent\nand on turns stored before ids existed.","example":"b_c08cf800_01"}}}]}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","scopes":[],"schemeName":"BearerAuth"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"Bearer authentication header of the form `Bearer \u003ctoken>`, where `\u003ctoken>` is your auth token.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"BearerAuth","name":"Authorization"}],"title":"BearerAuth"}]},"originalFileLocation":"https://docs-cdn.narrative.io/api-reference/main/openapi.json"},"subdomain":"narrative-07c7a1f7","siteName":"Narrative I/O Knowledge Base","title":"List conversation messages (delta read by version cursor) - Narrative I/O Knowledge Base","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-06T23:01:16.652Z","originalFileLocation":"api-reference/agent-conversations/list-conversation-messages-delta-read-by-version-cursor.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Returns the messages in this conversation with sequence_no \u0026gt; since, plus the conversation\u0026#x27;s current_version at the moment the response was generated. The messages list is ordered by sequence_no ascending and is gap-free — if the response contains messages with sequence_no 3, 4, 5, you have all three. ## Polling pattern text since = 0 loop forever: r = GET /agents/conversations/{id}/messages?since={since} process r.messages # may be empty since = r.current_version # use the head, not r.messages.last.sequence_no wait briefly current_version is the conversation\u0026#x27;s head at the moment the response was generated — using it as the next request\u0026#x27;s since is the only way to ensure gap-free reads even when new messages land between the time the response was generated and the time your client processed it. ## When messages get added Messages are persisted in a single transaction by the workflow\u0026#x27;s finalize step (when a run reaches a terminal state). You won\u0026#x27;t see partial reads — a run that produces 4 messages either lands all 4 or none. A run\u0026#x27;s id appears in messages[].run_id, so you can correlate messages to the runs that produced them. ## What\u0026#x27;s in content_blocks Five variants, discriminated by type: - text — plain text. The dominant variant. - tool_use — the model requesting a tool call. Carries tool_use_id, the aliased name, and the model\u0026#x27;s arguments. - tool_result — the result of a tool call. Its content holds nested content blocks, and it carries the original tool_use_id plus an is_error flag. - reasoning / redacted_reasoning — the model\u0026#x27;s working, on a turn that asked for thinking. Blocks the platform produced also carry an id. On an assistant turn with an answer, final_answer_from names the blocks the answer came from; render those as the reply. The same tool_use_id appears on the assistant\u0026#x27;s tool_use block and on the subsequent tool (or user, for resume payloads) turn\u0026#x27;s tool_result block — that\u0026#x27;s how a UI matches them up. ## Permission agent_conversations resource with read verb. ## Example: paging from scratch bash curl \u0026quot;$API/agents/conversations/{id}/messages?since=0\u0026quot; \\ -H \u0026quot;Authorization: Bearer $TOKEN\u0026quot; # → { \u0026quot;current_version\u0026quot;: 4, \u0026quot;messages\u0026quot;: [ \u0026lt;4 entries\u0026gt; ] } Then later: bash curl \u0026quot;$API/agents/conversations/{id}/messages?since=4\u0026quot; \\ -H \u0026quot;Authorization: Bearer $TOKEN\u0026quot; # → { \u0026quot;current_version\u0026quot;: 4, \u0026quot;messages\u0026quot;: [] } # nothing new\">\u003cmeta data-mint-head name=\"application-name\" content=\"Narrative I/O Knowledge Base\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/narrative-07c7a1f7/OOk68seBU2ePTAv6/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/narrative-07c7a1f7/OOk68seBU2ePTAv6/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/narrative-07c7a1f7/OOk68seBU2ePTAv6/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/narrative-07c7a1f7/OOk68seBU2ePTAv6/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/narrative-07c7a1f7/OOk68seBU2ePTAv6/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/narrative-07c7a1f7/OOk68seBU2ePTAv6/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/narrative-07c7a1f7/OOk68seBU2ePTAv6/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/narrative-07c7a1f7/OOk68seBU2ePTAv6/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/narrative-07c7a1f7/OOk68seBU2ePTAv6/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"List conversation messages (delta read by version cursor) - Narrative I/O Knowledge Base\">\u003cmeta data-mint-head property=\"og:description\" content=\"Returns the messages in this conversation with sequence_no \u0026gt; since, plus the conversation\u0026#x27;s current_version at the moment the response was generated. The messages list is ordered by sequence_no ascending and is gap-free — if the response contains messages with sequence_no 3, 4, 5, you have all three. ## Polling pattern text since = 0 loop forever: r = GET /agents/conversations/{id}/messages?since={since} process r.messages # may be empty since = r.current_version # use the head, not r.messages.last.sequence_no wait briefly current_version is the conversation\u0026#x27;s head at the moment the response was generated — using it as the next request\u0026#x27;s since is the only way to ensure gap-free reads even when new messages land between the time the response was generated and the time your client processed it. ## When messages get added Messages are persisted in a single transaction by the workflow\u0026#x27;s finalize step (when a run reaches a terminal state). You won\u0026#x27;t see partial reads — a run that produces 4 messages either lands all 4 or none. A run\u0026#x27;s id appears in messages[].run_id, so you can correlate messages to the runs that produced them. ## What\u0026#x27;s in content_blocks Five variants, discriminated by type: - text — plain text. The dominant variant. - tool_use — the model requesting a tool call. Carries tool_use_id, the aliased name, and the model\u0026#x27;s arguments. - tool_result — the result of a tool call. Its content holds nested content blocks, and it carries the original tool_use_id plus an is_error flag. - reasoning / redacted_reasoning — the model\u0026#x27;s working, on a turn that asked for thinking. Blocks the platform produced also carry an id. On an assistant turn with an answer, final_answer_from names the blocks the answer came from; render those as the reply. The same tool_use_id appears on the assistant\u0026#x27;s tool_use block and on the subsequent tool (or user, for resume payloads) turn\u0026#x27;s tool_result block — that\u0026#x27;s how a UI matches them up. ## Permission agent_conversations resource with read verb. ## Example: paging from scratch bash curl \u0026quot;$API/agents/conversations/{id}/messages?since=0\u0026quot; \\ -H \u0026quot;Authorization: Bearer $TOKEN\u0026quot; # → { \u0026quot;current_version\u0026quot;: 4, \u0026quot;messages\u0026quot;: [ \u0026lt;4 entries\u0026gt; ] } Then later: bash curl \u0026quot;$API/agents/conversations/{id}/messages?since=4\u0026quot; \\ -H \u0026quot;Authorization: Bearer $TOKEN\u0026quot; # → { \u0026quot;current_version\u0026quot;: 4, \u0026quot;messages\u0026quot;: [] } # nothing new\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Narrative I/O Knowledge Base\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.narrative.io/api-reference/agent-conversations/list-conversation-messages-delta-read-by-version-cursor\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://narrative-07c7a1f7.mintlify.site/_mintlify/api/og/v2?division=Agent+Conversations\u0026amp;title=List+conversation+messages+%28delta+read+by+version+cursor%29\u0026amp;description=Returns+the+messages+in+this+conversation+with+%60sequence_no+%3E+since%60%2C+plus+the%0Aconversation%27s+%60current_version%60+at+the+moment+the+response+was+generated.+The%0A%60m\u0026amp;theme=ee973f81a9436b7406ccdb45\u0026amp;signature=ee6689c21785d029660399452e4f1c8c01e207452ed0d58bc4914a37bd4b7eff\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"List conversation messages (delta read by version cursor) - Narrative I/O Knowledge Base\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Returns the messages in this conversation with sequence_no \u0026gt; since, plus the conversation\u0026#x27;s current_version at the moment the response was generated. The messages list is ordered by sequence_no ascending and is gap-free — if the response contains messages with sequence_no 3, 4, 5, you have all three. ## Polling pattern text since = 0 loop forever: r = GET /agents/conversations/{id}/messages?since={since} process r.messages # may be empty since = r.current_version # use the head, not r.messages.last.sequence_no wait briefly current_version is the conversation\u0026#x27;s head at the moment the response was generated — using it as the next request\u0026#x27;s since is the only way to ensure gap-free reads even when new messages land between the time the response was generated and the time your client processed it. ## When messages get added Messages are persisted in a single transaction by the workflow\u0026#x27;s finalize step (when a run reaches a terminal state). You won\u0026#x27;t see partial reads — a run that produces 4 messages either lands all 4 or none. A run\u0026#x27;s id appears in messages[].run_id, so you can correlate messages to the runs that produced them. ## What\u0026#x27;s in content_blocks Five variants, discriminated by type: - text — plain text. The dominant variant. - tool_use — the model requesting a tool call. Carries tool_use_id, the aliased name, and the model\u0026#x27;s arguments. - tool_result — the result of a tool call. Its content holds nested content blocks, and it carries the original tool_use_id plus an is_error flag. - reasoning / redacted_reasoning — the model\u0026#x27;s working, on a turn that asked for thinking. Blocks the platform produced also carry an id. On an assistant turn with an answer, final_answer_from names the blocks the answer came from; render those as the reply. The same tool_use_id appears on the assistant\u0026#x27;s tool_use block and on the subsequent tool (or user, for resume payloads) turn\u0026#x27;s tool_result block — that\u0026#x27;s how a UI matches them up. ## Permission agent_conversations resource with read verb. ## Example: paging from scratch bash curl \u0026quot;$API/agents/conversations/{id}/messages?since=0\u0026quot; \\ -H \u0026quot;Authorization: Bearer $TOKEN\u0026quot; # → { \u0026quot;current_version\u0026quot;: 4, \u0026quot;messages\u0026quot;: [ \u0026lt;4 entries\u0026gt; ] } Then later: bash curl \u0026quot;$API/agents/conversations/{id}/messages?since=4\u0026quot; \\ -H \u0026quot;Authorization: Bearer $TOKEN\u0026quot; # → { \u0026quot;current_version\u0026quot;: 4, \u0026quot;messages\u0026quot;: [] } # nothing new\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://narrative-07c7a1f7.mintlify.site/_mintlify/api/og/v2?division=Agent+Conversations\u0026amp;title=List+conversation+messages+%28delta+read+by+version+cursor%29\u0026amp;description=Returns+the+messages+in+this+conversation+with+%60sequence_no+%3E+since%60%2C+plus+the%0Aconversation%27s+%60current_version%60+at+the+moment+the+response+was+generated.+The%0A%60m\u0026amp;theme=ee973f81a9436b7406ccdb45\u0026amp;signature=ee6689c21785d029660399452e4f1c8c01e207452ed0d58bc4914a37bd4b7eff\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/narrative-07c7a1f7/OOk68seBU2ePTAv6/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Narrative I/O Knowledge Base\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#1438F5\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.narrative.io/api-reference/agent-conversations/list-conversation-messages-delta-read-by-version-cursor\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/agent-conversations/list-conversation-messages-delta-read-by-version-cursor.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.narrative.io/#organization\",\"name\":\"Narrative I/O Knowledge Base\",\"url\":\"https://docs.narrative.io\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/narrative-07c7a1f7/ia6SQX79O4nc7uYf/logo/banner.png?fit=max\u0026auto=format\u0026n=ia6SQX79O4nc7uYf\u0026q=85\u0026s=99860b25011c79366624a87d1f648861\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.narrative.io#website\",\"name\":\"Narrative I/O Knowledge Base\",\"url\":\"https://docs.narrative.io\",\"publisher\":{\"@id\":\"https://docs.narrative.io/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.narrative.io/api-reference/agent-conversations/list-conversation-messages-delta-read-by-version-cursor#webpage\",\"url\":\"https://docs.narrative.io/api-reference/agent-conversations/list-conversation-messages-delta-read-by-version-cursor\",\"name\":\"List conversation messages (delta read by version cursor)\",\"description\":\"Returns the messages in this conversation with sequence_no > since, plus the conversation's current_version at the moment the response was generated. The messages list is ordered by sequence_no ascending and is gap-free — if the response contains messages with sequence_no 3, 4, 5, you have all three. ## Polling pattern text since = 0 loop forever: r = GET /agents/conversations/{id}/messages?since={since} process r.messages # may be empty since = r.current_version # use the head, not r.messages.last.sequence_no wait briefly current_version is the conversation's head at the moment the response was generated — using it as the next request's since is the only way to ensure gap-free reads even when new messages land between the time the response was generated and the time your client processed it. ## When messages get added Messages are persisted in a single transaction by the workflow's finalize step (when a run reaches a terminal state). You won't see partial reads — a run that produces 4 messages either lands all 4 or none. A run's id appears in messages[].run_id, so you can correlate messages to the runs that produced them. ## What's in content_blocks Five variants, discriminated by type: - text — plain text. The dominant variant. - tool_use — the model requesting a tool call. Carries tool_use_id, the aliased name, and the model's arguments. - tool_result — the result of a tool call. Its content holds nested content blocks, and it carries the original tool_use_id plus an is_error flag. - reasoning / redacted_reasoning — the model's working, on a turn that asked for thinking. Blocks the platform produced also carry an id. On an assistant turn with an answer, final_answer_from names the blocks the answer came from; render those as the reply. The same tool_use_id appears on the assistant's tool_use block and on the subsequent tool (or user, for resume payloads) turn's tool_result block — that's how a UI matches them up. ## Permission agent_conversations resource with read verb. ## Example: paging from scratch bash curl \\\"$API/agents/conversations/{id}/messages?since=0\\\" \\\\ -H \\\"Authorization: Bearer $TOKEN\\\" # → { \\\"current_version\\\": 4, \\\"messages\\\": [ \\u003c4 entries> ] } Then later: bash curl \\\"$API/agents/conversations/{id}/messages?since=4\\\" \\\\ -H \\\"Authorization: Bearer $TOKEN\\\" # → { \\\"current_version\\\": 4, \\\"messages\\\": [] } # nothing new\",\"dateModified\":\"2026-11-06T23:01:16.652Z\",\"isPartOf\":{\"@id\":\"https://docs.narrative.io#website\"},\"breadcrumb\":{\"@id\":\"https://docs.narrative.io/api-reference/agent-conversations/list-conversation-messages-delta-read-by-version-cursor#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.narrative.io/api-reference/agent-conversations/list-conversation-messages-delta-read-by-version-cursor#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Agent Conversations\",\"item\":\"https://docs.narrative.io/api-reference/agent-conversations/list-the-calling-users-agent-conversations\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"List conversation messages (delta read by version cursor)\",\"item\":\"https://docs.narrative.io/api-reference/agent-conversations/list-conversation-messages-delta-read-by-version-cursor\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.narrative.io/api-reference/agent-conversations/list-conversation-messages-delta-read-by-version-cursor#apireference\",\"headline\":\"List conversation messages (delta read by version cursor)\",\"name\":\"List conversation messages (delta read by version cursor)\",\"description\":\"Returns the messages in this conversation with sequence_no > since, plus the conversation's current_version at the moment the response was generated. The messages list is ordered by sequence_no ascending and is gap-free — if the response contains messages with sequence_no 3, 4, 5, you have all three. ## Polling pattern text since = 0 loop forever: r = GET /agents/conversations/{id}/messages?since={since} process r.messages # may be empty since = r.current_version # use the head, not r.messages.last.sequence_no wait briefly current_version is the conversation's head at the moment the response was generated — using it as the next request's since is the only way to ensure gap-free reads even when new messages land between the time the response was generated and the time your client processed it. ## When messages get added Messages are persisted in a single transaction by the workflow's finalize step (when a run reaches a terminal state). You won't see partial reads — a run that produces 4 messages either lands all 4 or none. A run's id appears in messages[].run_id, so you can correlate messages to the runs that produced them. ## What's in content_blocks Five variants, discriminated by type: - text — plain text. The dominant variant. - tool_use — the model requesting a tool call. Carries tool_use_id, the aliased name, and the model's arguments. - tool_result — the result of a tool call. Its content holds nested content blocks, and it carries the original tool_use_id plus an is_error flag. - reasoning / redacted_reasoning — the model's working, on a turn that asked for thinking. Blocks the platform produced also carry an id. On an assistant turn with an answer, final_answer_from names the blocks the answer came from; render those as the reply. The same tool_use_id appears on the assistant's tool_use block and on the subsequent tool (or user, for resume payloads) turn's tool_result block — that's how a UI matches them up. ## Permission agent_conversations resource with read verb. ## Example: paging from scratch bash curl \\\"$API/agents/conversations/{id}/messages?since=0\\\" \\\\ -H \\\"Authorization: Bearer $TOKEN\\\" # → { \\\"current_version\\\": 4, \\\"messages\\\": [ \\u003c4 entries> ] } Then later: bash curl \\\"$API/agents/conversations/{id}/messages?since=4\\\" \\\\ -H \\\"Authorization: Bearer $TOKEN\\\" # → { \\\"current_version\\\": 4, \\\"messages\\\": [] } # nothing new\",\"url\":\"https://docs.narrative.io/api-reference/agent-conversations/list-conversation-messages-delta-read-by-version-cursor\",\"mainEntityOfPage\":{\"@id\":\"https://docs.narrative.io/api-reference/agent-conversations/list-conversation-messages-delta-read-by-version-cursor#webpage\"},\"dateModified\":\"2026-11-06T23:01:16.652Z\",\"publisher\":{\"@id\":\"https://docs.narrative.io/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.narrative.io#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Narrative I/O Knowledge Base\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Narrative I/O Knowledge Base","nav":{"global":{"anchors":[{"anchor":"Release Notes","icon":"clock-rotate-left","href":"/release-notes"}]},"tabs":[{"tab":"Getting Started","pages":[{"title":"Getting Started","href":"/getting-started/create-account"}]},{"tab":"Concepts","pages":[{"title":"Concepts","href":"/concepts"}]},{"tab":"Guides","pages":[{"title":"Guides","href":"/guides"}]},{"tab":"Cookbooks","pages":[{"title":"Cookbooks","href":"/cookbooks"}]},{"tab":"Reference","pages":[{"title":"Reference","href":"/reference"}]},{"tab":"Connectors","pages":[{"title":"Connectors","href":"/reference/connectors"}]},{"tab":"NQL","pages":[{"title":"NQL","href":"/nql"}]},{"tab":"API Documentation","groups":[{"group":"Overview","pages":[{"title":"REST API","href":"/api-reference/introduction"}]},{"group":"Access Rules","pages":[{"title":"Get an Access Rule by id (V2)","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json get /v2/access-rules/{access_rule_id}","href":"/api-reference/access-rules/get-an-access-rule-by-id-v2"},{"title":"Update an Access Rule by id (V2)","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json put /v2/access-rules/{access_rule_id}","href":"/api-reference/access-rules/update-an-access-rule-by-id-v2"},{"title":"Delete an access rule","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json delete /v2/access-rules/{access_rule_id}","href":"/api-reference/access-rules/delete-an-access-rule"},{"title":"Get the query policy of an Access Rule","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json get /v2/access-rules/{access_rule_id}/query-policy","href":"/api-reference/access-rules/get-the-query-policy-of-an-access-rule"},{"title":"Set the query policy of an Access Rule","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json put /v2/access-rules/{access_rule_id}/query-policy","href":"/api-reference/access-rules/set-the-query-policy-of-an-access-rule"},{"title":"Remove the query policy of an Access Rule","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json delete /v2/access-rules/{access_rule_id}/query-policy","href":"/api-reference/access-rules/remove-the-query-policy-of-an-access-rule"},{"title":"Get an Access Rule by name (V2)","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json get /v2/access-rules/{company_slug}/{access_rule_name}","href":"/api-reference/access-rules/get-an-access-rule-by-name-v2"},{"title":"Get all accessible Access Rules (V2)","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json get /v2/access-rules","href":"/api-reference/access-rules/get-all-accessible-access-rules-v2"},{"title":"Create a new Access Rule","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json post /v2/access-rules","href":"/api-reference/access-rules/create-a-new-access-rule"}]},{"group":"Access Tokens","pages":[{"title":"List System Access Tokens","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json get /access-tokens/tokens","href":"/api-reference/access-tokens/list-system-access-tokens"},{"title":"Create a System Access Token","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json post /access-tokens/tokens","href":"/api-reference/access-tokens/create-a-system-access-token"},{"title":"Get a System Access Token by id","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json get /access-tokens/tokens/{access_token_id}","href":"/api-reference/access-tokens/get-a-system-access-token-by-id"},{"title":"Update a System Access Token","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json put /access-tokens/tokens/{access_token_id}","href":"/api-reference/access-tokens/update-a-system-access-token"},{"title":"Delete a System Access Token","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json delete /access-tokens/tokens/{access_token_id}","href":"/api-reference/access-tokens/delete-a-system-access-token"}]},{"group":"Agent Conversations","pages":[{"title":"List the calling user's agent conversations","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json get /agents/conversations","href":"/api-reference/agent-conversations/list-the-calling-users-agent-conversations"},{"title":"Create an agent conversation","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json post /agents/conversations","href":"/api-reference/agent-conversations/create-an-agent-conversation"},{"title":"Get an agent conversation","description":"Fetches the conversation's metadata plus its current `version`. Use the `version`\nimmediately before posting a run as `expected_version` — that's how the platform's\ncompare-and-swap guard knows whether the conversation has advanced since you last\nlooked.\n\n## When to call this\n\n- Before starting a new run: read `version`, post it as `expected_version`. If you\n cache the value across long delays you'll hit\n [Version Conflict](https://docs.narrative.io/reference/architecture/agent-conversations/errors/version-conflict)\n more often.\n- When resuming a `requires_action` run: the conversation's version has advanced\n because the assistant turn was persisted on the run row's finalize. Re-read it\n before posting `tool_outputs`.\n- To inspect a conversation's `defaults` if you've forgotten what was pinned.\n\n## What you cannot do here\n\nThere is no `PATCH` / `PUT` for conversations. The `system_prompt` and `defaults` are\nimmutable at the conversation level. To change behavior, override per-run via\n`config_override`, or create a new conversation.\n\n## Scope: per-user, not per-company\n\nConversations are scoped to the **`(company_id, user_id)`** pair that created them.\nPeers in the same company cannot see each other's conversations — the endpoint\nreturns 404 for \"does not exist\", \"belongs to a different company\", and \"belongs to\na different user in the same company\" alike. This is deliberate: distinguishing them\nwould leak existence.\n\n## Permission\n\n`agent_conversations` resource with `read` verb.","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json get /agents/conversations/{id}","href":"/api-reference/agent-conversations/get-an-agent-conversation"},{"title":"List conversation messages (delta read by version cursor)","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json get /agents/conversations/{id}/messages","href":"/api-reference/agent-conversations/list-conversation-messages-delta-read-by-version-cursor"},{"title":"Start a new run on the conversation","description":"Inserts a row in `agent_runs`, kicks off the workflow that drives the agent loop, and\nreturns immediately. The response has `status: \"pending\"` — poll\n`GET /agents/runs/{id}` to track progress.\n\nRuns are **asynchronous**. This endpoint does not wait for the model to reply.\nTypical end-to-end latency is 3–10 seconds for a single-iteration run, longer for\nmulti-iteration tool-use loops (60–120 seconds is common for 6–8 iterations against\nan MCP server).\n\n## Required fields\n\n- **`client_op_id`** — UUID you generate. Used as the idempotency key, scoped to\n `(company_id, user_id, client_op_id)`. Re-sending the same value returns the\n original run row unchanged, whichever conversation that run is on. Always generate\n a fresh UUID for a fresh logical request; reusing one is only safe if the second\n call is a retry of the first.\n- **`expected_version`** — the conversation's current version, read from\n `GET /agents/conversations/{id}` just before this call. If it doesn't match at\n run-creation time, you get a 409\n [Version Conflict](https://docs.narrative.io/reference/architecture/agent-conversations/errors/version-conflict).\n Recovery: refetch the conversation, re-read `version`, retry the run with the\n fresh value.\n- **`payload`** — `kind: \"user_message\"` to start a fresh user turn, or\n `kind: \"tool_outputs\"` to resume a previously-paused (`requires_action`) run.\n\n## Optional fields\n\n- **`tool_choice`** — bias the model toward (or away from) using tools on iteration 1\n **of this run**. Three values: `auto`, `any`, `specific_tool` (see schema). Applies\n only to iteration 1 of this run; iteration 2+ are back on `auto`. To re-force a\n specific tool on the next run, set `tool_choice` again on its request body.\n- **`config_override`** — sparse override of the conversation's `defaults`. Any field\n you set replaces the conversation-level value for this single run. The two list\n fields (`mcp_servers`, `tools`) are **wholesale-replaced**, not merged. The\n `system_prompt` cannot be overridden.\n\n## Run lifecycle (state diagram)\n\n```text\npending → running → completed ← model produced a final answer\n ↘ requires_action ← model called a caller-declared tool\n ↘ failed ← non-recoverable error\n```\n\nYou stop polling on any of the three terminal states. For `requires_action`, the run\ncan be **resumed** by posting a new run on the same conversation with\n`payload.kind: \"tool_outputs\"`. For `completed` and `failed`, the run is done.\n\n## One active run per conversation\n\nA conversation runs one turn at a time. While a run is `pending` or `running`, posting\nanother run on the same conversation returns a 409\n[Run Already In Progress](https://docs.narrative.io/reference/architecture/agent-conversations/errors/run-in-progress).\nThe `detail` names the active run's id — and, when the run has produced a live turn,\nwhat it is currently doing (for example waiting on a Narrative job).\n\nRecovery: poll `GET /agents/runs/{active_run_id}` until it reaches a terminal state,\nre-read the conversation's `version`, then post your run. A run parked on a long job\ncan stay non-terminal for a while; `live.messages` on the run response shows what it is\nwaiting for.\n\nThe three terminal states do **not** block a new run — in particular a\n`requires_action` run is done, so the run that resumes it with `tool_outputs` is\naccepted as normal.\n\nRe-posting a `client_op_id` that already has a run **on this conversation** is not\nrefused: you get that run back, even while a different run is active. The bypass is\nper-conversation, while idempotency itself is per-owner — so a `client_op_id` whose\nrun lives on *another* conversation does not bypass this check, and you get the 409\nwhile a run here is active. Let the active run finish and re-post; you will then get\nthe original run back as usual.\n\n## Examples\n\n### Example 1 — fresh user message, no tools\n\n```json\n{\n \"client_op_id\": \"696b022c-e86d-4b3e-b6d7-ceb7eb1a495e\",\n \"expected_version\": 0,\n \"payload\": { \"kind\": \"user_message\", \"text\": \"What is 2 + 2?\" }\n}\n```\n\nReturns:\n\n```json\n{\n \"id\": \"82eb9cb7-619e-46bb-ac1c-8a32b0112c1c\",\n \"status\": \"pending\",\n \"started_at\": \"2026-05-18T13:21:30.355180Z\",\n \"submitted_inference_job_ids\": [],\n \"pending_tool_calls\": [],\n \"effective_config\": { ... },\n ...\n}\n```\n\nThen poll `GET /agents/runs/{id}` until `status: completed`. Final\n`final_text: \"4\"`.\n\n### Example 2 — force a specific tool, override max_iterations\n\n```json\n{\n \"client_op_id\": \"c8aef867-eca6-46f7-8a99-e22dd0ee6062\",\n \"expected_version\": 0,\n \"payload\": { \"kind\": \"user_message\", \"text\": \"Find me a meeting time for tomorrow afternoon.\" },\n \"tool_choice\": { \"kind\": \"specific_tool\", \"name\": \"confirm_booking\" },\n \"config_override\": { \"max_iterations\": 10 }\n}\n```\n\nThe model is forced to call `confirm_booking` on iteration 1. Since `confirm_booking`\nis a caller-declared tool (dash-free name, listed in `tools[]`), the run terminates\nwith `status: requires_action` after one iteration; `pending_tool_calls` contains the\nmodel's proposed arguments.\n\nTo pin an MCP-resolved tool instead, include the `mcp_alias` field:\n\n```json\n\"tool_choice\": { \"kind\": \"specific_tool\", \"mcp_alias\": \"docs\", \"name\": \"search_kb\" }\n```\n\n### Example 3 — resume a paused run\n\nFirst, refetch the conversation to get the new version (it has advanced because the\npaused run's assistant turn was persisted):\n\n```bash\ncurl \"$API/agents/conversations/{id}\" -H \"Authorization: Bearer $TOKEN\"\n# → { \"version\": 2, ... }\n```\n\nThen post the resume:\n\n```json\n{\n \"client_op_id\": \"7fb6795c-60a2-4cf9-a0db-0cc645279704\",\n \"expected_version\": 2,\n \"payload\": {\n \"kind\": \"tool_outputs\",\n \"outputs\": [{\n \"tool_use_id\": \"tooluse_DWXPKZ50JDGib5GmShyUgJ\",\n \"content\": \"User confirmed the proposed slot.\",\n \"is_error\": false\n }]\n }\n}\n```\n\nThe model sees the tool result and continues; this run usually terminates\n`completed` after one iteration with a contextual final answer.\n\n## Idempotency\n\nRe-sending the same body with the same `client_op_id` returns the original\n`agent_runs` row, with a 202 like the first call. Idempotency is on\n`(company_id, user_id, client_op_id)`:\n\n- **Same `client_op_id`, same conversation** → same run row returned, no new\n workflow started.\n- **Same `client_op_id`, different conversation** → the original run is returned\n again, and no run is created on the conversation you posted to. The response\n body's `conversation_id` is the one the original run belongs to, so check it if\n you reuse ids.\n\nThe conversation checks run first, so a retry only gets the original run back while\n`expected_version` still matches. Once that run finishes and its messages land, the\nconversation's version moves on and the same retry gets a 409 Version Conflict. Read the\noriginal run with `GET /agents/runs/{id}` instead.\n\nUse a fresh UUID per logical request, never per retry of an in-flight request.\n\n## Common error responses\n\n| Status | `type` slug | Cause | Recovery |\n|---|---|---|---|\n| 400 | `/invalid-tool-alias` | `config_override.mcp_servers[]` has a bad alias | Fix the alias |\n| 400 | `/tool-name-too-long` | `config_override` introduced a wire name > 64 chars | Shorten alias or tool name |\n| 400 | `/unknown-tool-use-id` | `tool_outputs` references an id not on the latest assistant turn | Refetch the prior run's `pending_tool_calls` |\n| 400 | `/not-a-client-tool-call` | `tool_outputs` references a server-resolved call | Filter to client-side ids only |\n| 400 | `/incomplete-tool-outputs` | Missing or extra `outputs[]` entries | Match the pending set exactly |\n| 400 | `/no-assistant-turn` | `tool_outputs` payload on a conversation with no assistant turn yet | Use `user_message` payload instead |\n| 400 | `/unknown-tool-choice-name` | `tool_choice.name` is not a declared tool | Fix the name |\n| 400 | `/unknown-tool-choice-mcp-alias` | `tool_choice.mcp_alias` is not one of the run's MCP servers | Fix the alias |\n| 400 | `/thinking-with-forced-tool-choice` | `specific_tool` or `any` combined with `thinking` | Drop one of them |\n| 400 | `/forced-tool-choice-not-supported` | The model can't be forced to call a tool | Use `auto`, or another model |\n| 403 | none (`type` is null) | The company is over its credit limit, or has no credit account | Contact your account manager |\n| 404 | `/conversation-not-found` | The conversation was not found | Verify the id |\n| 409 | `/version-conflict` | `expected_version` mismatch | Refetch the conversation, retry |\n| 409 | `/run-in-progress` | Another run on this conversation is `pending` or `running` | Poll the active run named in `detail` until terminal, then retry |\n| 500 | `/workflow-start-failed` | Platform couldn't reach the workflow engine | Retry with the same `client_op_id` |\n\n## Permission\n\n`agent_conversations` resource with `write` verb.","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json post /agents/conversations/{id}/runs","href":"/api-reference/agent-conversations/start-a-new-run-on-the-conversation"},{"title":"Stop waiting on a handle","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json post /agents/conversations/{id}/waitables/{handle}/cancel","href":"/api-reference/agent-conversations/stop-waiting-on-a-handle"},{"title":"Get a run's current state","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json get /agents/runs/{id}","href":"/api-reference/agent-conversations/get-a-runs-current-state"}]},{"group":"App API","pages":[{"title":"Delivery Commands","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json get /v1/app/commands/delivery","href":"/api-reference/app-api/delivery-commands"},{"title":"Delivery Files","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json get /v1/app/commands/delivery/{delivery_id}/files","href":"/api-reference/app-api/delivery-files"},{"title":"Download file","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json post /v1/app/commands/delivery/{delivery_id}/download/{filename}","href":"/api-reference/app-api/download-file"}]},{"group":"App Invites","pages":[{"title":"List App Invites","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json get /app-invites","href":"/api-reference/app-invites/list-app-invites"},{"title":"Create App Invite","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json post /app-invites","href":"/api-reference/app-invites/create-app-invite"},{"title":"Get App Invite","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json get /app-invites/{id}","href":"/api-reference/app-invites/get-app-invite"},{"title":"Archive App Invite","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json delete /app-invites/{id}","href":"/api-reference/app-invites/archive-app-invite"},{"title":"Activate App Invite","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json post /app-invites/{id}/activate","href":"/api-reference/app-invites/activate-app-invite"},{"title":"Get App Invite By Code","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json get /app-invites/codes/{code}","href":"/api-reference/app-invites/get-app-invite-by-code"}]},{"group":"Apps","pages":[{"title":"Lists apps","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json get /apps","href":"/api-reference/apps/lists-apps"},{"title":"Publish app event","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json post /apps/events","href":"/api-reference/apps/publish-app-event"},{"title":"List installed app interfaces","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json get /apps/installed/interfaces","href":"/api-reference/apps/list-installed-app-interfaces"},{"title":"List app interfaces","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json get /apps/{app_id}/interfaces","href":"/api-reference/apps/list-app-interfaces"},{"title":"Get an app interface","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json get /apps/{app_id}/interfaces/{interface_id}","href":"/api-reference/apps/get-an-app-interface"},{"title":"Lists profiles","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json get /apps/{app_slug}/profiles","href":"/api-reference/apps/lists-profiles"},{"title":"Get an app's v1 manifest","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json get /apps/{app_slug}/manifest","href":"/api-reference/apps/get-an-apps-v1-manifest"},{"title":"List Apps","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json get /v2/apps","href":"/api-reference/apps/list-apps"},{"title":"Create App","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json post /v2/apps","href":"/api-reference/apps/create-app"},{"title":"Get App","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json get /v2/apps/{slug}","href":"/api-reference/apps/get-app"},{"title":"Archive App","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json delete /v2/apps/{slug}","href":"/api-reference/apps/archive-app"},{"title":"Replace App Manifest","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json put /v2/apps/{slug}/manifest","href":"/api-reference/apps/replace-app-manifest"},{"title":"Patch App Manifest","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json patch /v2/apps/{slug}/manifest","href":"/api-reference/apps/patch-app-manifest"},{"title":"Replace App Collaborators","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json put /v2/apps/{slug}/collaborators","href":"/api-reference/apps/replace-app-collaborators"},{"title":"Generate App Credentials","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json post /v2/apps/{slug}/credentials/generate","href":"/api-reference/apps/generate-app-credentials"}]},{"group":"Attributes","pages":[{"title":"Get attributes","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json get /attributes","href":"/api-reference/attributes/get-attributes"},{"title":"Create an attribute","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json post /attributes","href":"/api-reference/attributes/create-an-attribute"},{"title":"Get an attribute","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json get /attributes/{attribute_name_or_id}","href":"/api-reference/attributes/get-an-attribute"},{"title":"Update an attribute","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json put /attributes/{attribute_name_or_id}","href":"/api-reference/attributes/update-an-attribute"},{"title":"Delete an attribute","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json delete /attributes/{attribute_name_or_id}","href":"/api-reference/attributes/delete-an-attribute"},{"title":"Get attribute references.","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json get /attributes/{attribute_name_or_id}/references","href":"/api-reference/attributes/get-attribute-references"},{"title":"Get the derivation graph around an attribute.","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json get /attributes/{attribute_name_or_id}/derivation-graph","href":"/api-reference/attributes/get-the-derivation-graph-around-an-attribute"}]},{"group":"Auth","pages":[{"title":"Request or refresh an OAuth token","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json post /oauth/token","href":"/api-reference/auth/request-or-refresh-an-oauth-token"}]},{"group":"Authentication","pages":[{"title":"Sign in with a Stytch B2B session token","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json post /authentication/b2b/login","href":"/api-reference/authentication/sign-in-with-a-stytch-b2b-session-token"},{"title":"Register with a Stytch B2B session token","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json post /authentication/b2b/register","href":"/api-reference/authentication/register-with-a-stytch-b2b-session-token"},{"title":"Check whether a Stytch B2B member is registered on Narrative","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json post /authentication/b2b/registration-status","href":"/api-reference/authentication/check-whether-a-stytch-b2b-member-is-registered-on-narrative"},{"title":"Exchange a user token for one scoped to another company","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json post /authentication/exchange-token","href":"/api-reference/authentication/exchange-a-user-token-for-one-scoped-to-another-company"},{"title":"Sign in with a Stytch session token","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json post /authentication/login","href":"/api-reference/authentication/sign-in-with-a-stytch-session-token"},{"title":"Register with a Stytch session token","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json post /authentication/register","href":"/api-reference/authentication/register-with-a-stytch-session-token"},{"title":"Check whether a Stytch Magic Links or OAuth user is registered on Narrative","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json post /authentication/registration-status","href":"/api-reference/authentication/check-whether-a-stytch-magic-links-or-oauth-user-is-registered-on-narrative"}]},{"group":"Billings","pages":[{"title":"Get dataset storage billing","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json get /admin/billings/dataset-storage-billing","href":"/api-reference/billings/get-dataset-storage-billing"},{"title":"Get dataset storage billing for company","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json get /billings/dataset-storage-billing","href":"/api-reference/billings/get-dataset-storage-billing-for-company"}]},{"group":"Companies","pages":[{"title":"Lists Company Domains","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json get /companies/{company_id}/domains","href":"/api-reference/companies/lists-company-domains"},{"title":"Get a presigned URL to upload company logo","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json post /admin/companies/logo-upload-url","href":"/api-reference/companies/get-a-presigned-url-to-upload-company-logo"}]},{"group":"Company","pages":[{"title":"Get a company","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json get /companies/{company_id}","href":"/api-reference/company/get-a-company"},{"title":"Get a company","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json get /company/{company_id}","href":"/api-reference/company/get-a-company-1"},{"title":"Update a company","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json put /company/{company_id}","href":"/api-reference/company/update-a-company"},{"title":"Delete (archive) a company","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json delete /company/{company_id}","href":"/api-reference/company/delete-archive-a-company"},{"title":"Clear the company's default compute pool for a data plane","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json delete /company/{company_id}/data-planes/{data_plane_id}/default-compute-pool","href":"/api-reference/company/clear-the-companys-default-compute-pool-for-a-data-plane"},{"title":"Set the company's default compute pool for a data plane","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json put /company/{company_id}/data-planes/{data_plane_id}/default-compute-pool/{compute_pool_id}","href":"/api-reference/company/set-the-companys-default-compute-pool-for-a-data-plane"},{"title":"Update a user","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json put /users/{user_id}","href":"/api-reference/company/update-a-user"}]},{"group":"Company Marketing Information","pages":[{"title":"Returns the company and user associated with the token","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json get /company-info/whoami","href":"/api-reference/company-marketing-information/returns-the-company-and-user-associated-with-the-token"},{"title":"Get marketing details on a company","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json get /company-info/{company_id}","href":"/api-reference/company-marketing-information/get-marketing-details-on-a-company"}]},{"group":"Compute Pools","pages":[{"title":"List compute pools","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json get /data-planes/{data_plane_id}/compute-pools","href":"/api-reference/compute-pools/list-compute-pools"},{"title":"Create a compute pool","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json post /data-planes/{data_plane_id}/compute-pools","href":"/api-reference/compute-pools/create-a-compute-pool"},{"title":"Get a compute pool by ID","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json get /data-planes/{data_plane_id}/compute-pools/{compute_pool_id}","href":"/api-reference/compute-pools/get-a-compute-pool-by-id"},{"title":"Update a compute pool","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json put /data-planes/{data_plane_id}/compute-pools/{compute_pool_id}","href":"/api-reference/compute-pools/update-a-compute-pool"},{"title":"Archive a compute pool","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json delete /data-planes/{data_plane_id}/compute-pools/{compute_pool_id}","href":"/api-reference/compute-pools/archive-a-compute-pool"}]},{"group":"Connections","pages":[{"title":"List connections","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json get /v2/connections","href":"/api-reference/connections/list-connections"},{"title":"Create a connection","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json post /v2/connections","href":"/api-reference/connections/create-a-connection"},{"title":"Get a connection","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json get /v2/connections/{connection_id}","href":"/api-reference/connections/get-a-connection"},{"title":"Archive a connection","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json delete /v2/connections/{connection_id}","href":"/api-reference/connections/archive-a-connection"}]},{"group":"Data Planes","pages":[{"title":"List data planes","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json get /data-planes","href":"/api-reference/data-planes/list-data-planes"},{"title":"Create a data plane","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json post /data-planes","href":"/api-reference/data-planes/create-a-data-plane"},{"title":"Get a data plane by ID","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json get /data-planes/{data_plane_id}","href":"/api-reference/data-planes/get-a-data-plane-by-id"},{"title":"Archive a data plane","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json delete /data-planes/{data_plane_id}","href":"/api-reference/data-planes/archive-a-data-plane"},{"title":"Update a data plane","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json patch /data-planes/{data_plane_id}","href":"/api-reference/data-planes/update-a-data-plane"},{"title":"Data plane heartbeat","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json post /data-planes/{data_plane_id}/heartbeat","href":"/api-reference/data-planes/data-plane-heartbeat"},{"title":"Trigger a health check","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json post /data-planes/{data_plane_id}/health-check","href":"/api-reference/data-planes/trigger-a-health-check"},{"title":"Replace the collaborators on a data plane","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json put /data-planes/{data_plane_id}/collaborators","href":"/api-reference/data-planes/replace-the-collaborators-on-a-data-plane"},{"title":"Add a collaborator to a data plane","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json put /data-planes/{data_plane_id}/collaborators/{collaborator_company_id}","href":"/api-reference/data-planes/add-a-collaborator-to-a-data-plane"},{"title":"Remove a collaborator from a data plane","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json delete /data-planes/{data_plane_id}/collaborators/{collaborator_company_id}","href":"/api-reference/data-planes/remove-a-collaborator-from-a-data-plane"},{"title":"Set the default compute pool for a data plane","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json put /data-planes/{data_plane_id}/default-compute-pool/{compute_pool_id}","href":"/api-reference/data-planes/set-the-default-compute-pool-for-a-data-plane"},{"title":"Clear the default compute pool for a data plane","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json delete /data-planes/{data_plane_id}/default-compute-pool","href":"/api-reference/data-planes/clear-the-default-compute-pool-for-a-data-plane"}]},{"group":"Dataset Configuration","pages":[{"title":"Preview snapshot expirations","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json post /datasets/{dataset_id}/retention-policy/preview","href":"/api-reference/dataset-configuration/preview-snapshot-expirations"},{"title":"Upsert retention policies for a dataset","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json put /datasets/{dataset_id}/retention-policy","href":"/api-reference/dataset-configuration/upsert-retention-policies-for-a-dataset"}]},{"group":"Dataset Files","pages":[{"title":"Files added","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json get /datasets/{dataset_id}/snapshots/{snapshot_id}/files-added","href":"/api-reference/dataset-files/files-added"},{"title":"Find snapshots","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json get /datasets/{dataset_id}/find-snapshots","href":"/api-reference/dataset-files/find-snapshots"},{"title":"Find files","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json get /datasets/{dataset_id}/find-files","href":"/api-reference/dataset-files/find-files"},{"title":"Issue file download url","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json post /datasets/{dataset_id}/snapshots/{snapshot_id}/files-added/{file_id}/download","href":"/api-reference/dataset-files/issue-file-download-url"}]},{"group":"Dataset Refresh","pages":[{"title":"Update the materialized view refresh configuration","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json put /datasets/{dataset_id}/refresh-schedule","href":"/api-reference/dataset-refresh/update-the-materialized-view-refresh-configuration"},{"title":"Create a refresh schedule for an existing materialized view","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json post /datasets/{dataset_id}/refresh-schedule","href":"/api-reference/dataset-refresh/create-a-refresh-schedule-for-an-existing-materialized-view"},{"title":"Archive the materialized view refresh configuration","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json delete /datasets/{dataset_id}/refresh-schedule","href":"/api-reference/dataset-refresh/archive-the-materialized-view-refresh-configuration"},{"title":"Run a materialized view refresh now","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json post /datasets/{dataset_id}/refresh-materialized-view","href":"/api-reference/dataset-refresh/run-a-materialized-view-refresh-now"}]},{"group":"Dataset Samples","pages":[{"title":"Sample a dataset","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json get /datasets/{dataset_id}/sample","href":"/api-reference/dataset-samples/sample-a-dataset"},{"title":"Upload a sample","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json put /datasets/{dataset_id}/sample","href":"/api-reference/dataset-samples/upload-a-sample"},{"title":"Delete a sample","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json delete /datasets/{dataset_id}/sample","href":"/api-reference/dataset-samples/delete-a-sample"},{"title":"Sample a dataset (Admin)","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json get /datasets/{dataset_id}/admin/sample","href":"/api-reference/dataset-samples/sample-a-dataset-admin"},{"title":"Request Dataset Sample","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json post /datasets/{dataset_id}/request-sample","href":"/api-reference/dataset-samples/request-dataset-sample"},{"title":"Sample a dataset and redact the sample","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json post /v2/datasets/{dataset_id}/request-sample","href":"/api-reference/dataset-samples/sample-a-dataset-and-redact-the-sample"},{"title":"Get a dataset's sample redaction","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json get /datasets/{dataset_id}/redaction","href":"/api-reference/dataset-samples/get-a-datasets-sample-redaction"},{"title":"Upload a dataset's sample redaction","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json put /datasets/{dataset_id}/redaction","href":"/api-reference/dataset-samples/upload-a-datasets-sample-redaction"},{"title":"Delete a dataset's sample redaction","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json delete /datasets/{dataset_id}/redaction","href":"/api-reference/dataset-samples/delete-a-datasets-sample-redaction"},{"title":"Sample a dataset with its redaction applied","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json get /datasets/{dataset_id}/sample/redacted","href":"/api-reference/dataset-samples/sample-a-dataset-with-its-redaction-applied"},{"title":"Sampled Mappings","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json get /datasets/{dataset_id}/sample/mappings","href":"/api-reference/dataset-samples/sampled-mappings"}]},{"group":"Dataset Statistics","pages":[{"title":"Get Statistics Configuration","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json get /datasets/{dataset_id}/statistics-configuration","href":"/api-reference/dataset-statistics/get-statistics-configuration"},{"title":"Put Statistics Configuration","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json put /datasets/{dataset_id}/statistics-configuration","href":"/api-reference/dataset-statistics/put-statistics-configuration"},{"title":"Disable Statistics Configuration","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json delete /datasets/{dataset_id}/statistics-configuration","href":"/api-reference/dataset-statistics/disable-statistics-configuration"}]},{"group":"Datasets","pages":[{"title":"Get datasets","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json get /datasets","href":"/api-reference/datasets/get-datasets"},{"title":"Create a dataset","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json post /datasets","href":"/api-reference/datasets/create-a-dataset"},{"title":"Get a dataset","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json get /datasets/{dataset_id}","href":"/api-reference/datasets/get-a-dataset"},{"title":"Update a dataset","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json put /datasets/{dataset_id}","href":"/api-reference/datasets/update-a-dataset"},{"title":"Delete a dataset","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json delete /datasets/{dataset_id}","href":"/api-reference/datasets/delete-a-dataset"},{"title":"Activate a dataset","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json put /datasets/{dataset_id}/activate","href":"/api-reference/datasets/activate-a-dataset"},{"title":"Activate a dataset","deprecated":true,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json post /datasets/{dataset_id}/activate","href":"/api-reference/datasets/activate-a-dataset-1"},{"title":"Truncate a dataset","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json post /datasets/{dataset_id}/truncate","href":"/api-reference/datasets/truncate-a-dataset"},{"title":"Get admin info for a dataset","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json get /datasets/{dataset_id}/admin","href":"/api-reference/datasets/get-admin-info-for-a-dataset"},{"title":"Update a dataset's partition spec","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json post /datasets/{dataset_id}/admin/partition-spec","href":"/api-reference/datasets/update-a-datasets-partition-spec"},{"title":"Get dataset statistics","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json get /datasets/{dataset_id}/stats","href":"/api-reference/datasets/get-dataset-statistics"},{"title":"Get detailed statistics","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json get /datasets/{dataset_id}/column-stats","href":"/api-reference/datasets/get-detailed-statistics"},{"title":"Create or Update detailed statistics","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json put /datasets/{dataset_id}/column-stats","href":"/api-reference/datasets/create-or-update-detailed-statistics"},{"title":"Submit recalculation","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json post /datasets/{dataset_id}/column-stats/recalculate","href":"/api-reference/datasets/submit-recalculation"},{"title":"Ingest a file","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json post /datasets/{dataset_id}/upload","href":"/api-reference/datasets/ingest-a-file"},{"title":"Issue an ingestion token","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json post /datasets/{dataset_id}/upload/token","href":"/api-reference/datasets/issue-an-ingestion-token"},{"title":"List connector interfaces compatible with a dataset","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json get /datasets/{dataset_id}/interfaces","href":"/api-reference/datasets/list-connector-interfaces-compatible-with-a-dataset"}]},{"group":"Derivations","pages":[{"title":"Get derivation rules","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json get /derivations","href":"/api-reference/derivations/get-derivation-rules"},{"title":"Create a derivation rule","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json post /derivations","href":"/api-reference/derivations/create-a-derivation-rule"},{"title":"Get a derivation rule","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json get /derivations/{derivation_id}","href":"/api-reference/derivations/get-a-derivation-rule"},{"title":"Delete a derivation rule","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json delete /derivations/{derivation_id}","href":"/api-reference/derivations/delete-a-derivation-rule"},{"title":"Update a derivation rule","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json patch /derivations/{derivation_id}","href":"/api-reference/derivations/update-a-derivation-rule"}]},{"group":"Encryption Materials","pages":[{"title":"List encryption materials","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json get /encryption-materials","href":"/api-reference/encryption-materials/list-encryption-materials"},{"title":"Create an encryption material","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json post /encryption-materials","href":"/api-reference/encryption-materials/create-an-encryption-material"},{"title":"List decrypted encryption materials","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json get /encryption-materials/decrypted","href":"/api-reference/encryption-materials/list-decrypted-encryption-materials"},{"title":"Get an encryption material","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json get /encryption-materials/{encryption_material_id}","href":"/api-reference/encryption-materials/get-an-encryption-material"},{"title":"Update an encryption material","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json put /encryption-materials/{encryption_material_id}","href":"/api-reference/encryption-materials/update-an-encryption-material"},{"title":"Archive an encryption material","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json delete /encryption-materials/{encryption_material_id}","href":"/api-reference/encryption-materials/archive-an-encryption-material"}]},{"group":"Installations","pages":[{"title":"List Installations","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json get /installations","href":"/api-reference/installations/list-installations"},{"title":"Create Installation","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json post /installations","href":"/api-reference/installations/create-installation"},{"title":"Whoami Installation","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json get /installations/whoami","href":"/api-reference/installations/whoami-installation"},{"title":"Get Installation","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json get /installations/{id}","href":"/api-reference/installations/get-installation"},{"title":"Delete Installation","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json delete /installations/{id}","href":"/api-reference/installations/delete-installation"},{"title":"Create Installation Token","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json post /installations/{id}/token","href":"/api-reference/installations/create-installation-token"}]},{"group":"Jobs","pages":[{"title":"Get jobs","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json get /jobs","href":"/api-reference/jobs/get-jobs"},{"title":"Get a job","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json get /jobs/{job_id}","href":"/api-reference/jobs/get-a-job"},{"title":"Run a job","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json post /jobs/{job_id}/run","href":"/api-reference/jobs/run-a-job"},{"title":"Schedule a job","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json post /jobs/{job_id}/schedule","href":"/api-reference/jobs/schedule-a-job"},{"title":"Complete a job","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json post /jobs/{job_id}/complete","href":"/api-reference/jobs/complete-a-job"},{"title":"Fail a job","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json post /jobs/{job_id}/fail","href":"/api-reference/jobs/fail-a-job"},{"title":"Request cancellation of a job","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json post /jobs/{job_id}/request-cancellation","href":"/api-reference/jobs/request-cancellation-of-a-job"},{"title":"Cancel a job","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json post /jobs/{job_id}/cancel","href":"/api-reference/jobs/cancel-a-job"},{"title":"Reschedule a job","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json post /jobs/{job_id}/reschedule","href":"/api-reference/jobs/reschedule-a-job"}]},{"group":"Mappings","pages":[{"title":"Get mappings","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json get /mappings","href":"/api-reference/mappings/get-mappings"},{"title":"Get mapping","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json get /mappings/{mapping_id}","href":"/api-reference/mappings/get-mapping"},{"title":"Update a mapping","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json put /mappings/{mapping_id}","href":"/api-reference/mappings/update-a-mapping"},{"title":"Delete a mapping","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json delete /mappings/{mapping_id}","href":"/api-reference/mappings/delete-a-mapping"},{"title":"Accept a mapping","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json post /mappings/{mapping_id}/accept","href":"/api-reference/mappings/accept-a-mapping"},{"title":"Get mappings for a company","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json get /mappings/companies/{company_id}","href":"/api-reference/mappings/get-mappings-for-a-company"},{"title":"Create a mapping","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json post /mappings/companies/{company_id}","href":"/api-reference/mappings/create-a-mapping"},{"title":"Get mapping preview","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json get /mappings/{mapping_id}/sample","href":"/api-reference/mappings/get-mapping-preview"},{"title":"Test Mapping","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json post /mappings/test","href":"/api-reference/mappings/test-mapping"}]},{"group":"MCP Connections","pages":[{"title":"List the calling user's external MCP connections","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json get /mcp-connections","href":"/api-reference/mcp-connections/list-the-calling-users-external-mcp-connections"},{"title":"Begin connecting an external MCP server","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json post /mcp-connections","href":"/api-reference/mcp-connections/begin-connecting-an-external-mcp-server"},{"title":"OAuth redirect target that receives the authorization code","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json get /mcp-connections/callback","href":"/api-reference/mcp-connections/oauth-redirect-target-that-receives-the-authorization-code"},{"title":"Finish connecting an external MCP server","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json post /mcp-connections/complete","href":"/api-reference/mcp-connections/finish-connecting-an-external-mcp-server"},{"title":"Get one of the calling user's MCP connections","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json get /mcp-connections/{id}","href":"/api-reference/mcp-connections/get-one-of-the-calling-users-mcp-connections"},{"title":"Delete one of the calling user's MCP connections","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json delete /mcp-connections/{id}","href":"/api-reference/mcp-connections/delete-one-of-the-calling-users-mcp-connections"}]},{"group":"Model Inference","pages":[{"title":"Run model inference","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json post /model-inference/run","href":"/api-reference/model-inference/run-model-inference"}]},{"group":"Model Training","pages":[{"title":"Fine-tune a model","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json post /model-training/run","href":"/api-reference/model-training/fine-tune-a-model"},{"title":"Train a classifier","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json post /v1/model-training/train-classifier","href":"/api-reference/model-training/train-a-classifier"}]},{"group":"Models","pages":[{"title":"Get models","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json get /models","href":"/api-reference/models/get-models"},{"title":"Get a model","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json get /models/{model_id}","href":"/api-reference/models/get-a-model"},{"title":"Update a model","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json put /models/{model_id}","href":"/api-reference/models/update-a-model"},{"title":"Archive a model","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json delete /models/{model_id}","href":"/api-reference/models/archive-a-model"}]},{"group":"NQL","pages":[{"title":"Validate an NQL statement","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json post /nql/validate","href":"/api-reference/nql/validate-an-nql-statement"},{"title":"Simulate an NQL query against access rules","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json post /v2/nql/simulate","href":"/api-reference/nql/simulate-an-nql-query-against-access-rules"},{"title":"Parse an NQL statement","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json post /nql/parse","href":"/api-reference/nql/parse-an-nql-statement"},{"title":"Check Name Availability","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json get /nql/name-availability","href":"/api-reference/nql/check-name-availability"},{"title":"Execute an NQL statement","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json post /v1/nql/execute","href":"/api-reference/nql/execute-an-nql-statement"},{"title":"Get a forecast job","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json get /nql/{job_id}","href":"/api-reference/nql/get-a-forecast-job"}]},{"group":"Permissions","pages":[{"title":"Create a permission","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json post /admin/permissions","href":"/api-reference/permissions/create-a-permission"}]},{"group":"Profiles","pages":[{"title":"Returns app profiles","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json get /installations/{installation_id}/profiles","href":"/api-reference/profiles/returns-app-profiles"},{"title":"Creates an app profile","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json post /installations/{installation_id}/profiles","href":"/api-reference/profiles/creates-an-app-profile"},{"title":"Returns profile with {profile_id}","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json get /installations/{installation_id}/profiles/{app_profile_id}","href":"/api-reference/profiles/returns-profile-with-"},{"title":"Updates an existing app profile","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json put /installations/{installation_id}/profiles/{app_profile_id}","href":"/api-reference/profiles/updates-an-existing-app-profile"},{"title":"Enables a profile","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json post /installations/{installation_id}/profiles/{app_profile_id}/enable","href":"/api-reference/profiles/enables-a-profile"},{"title":"Disables a profile","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json post /installations/{installation_id}/profiles/{app_profile_id}/disable","href":"/api-reference/profiles/disables-a-profile"},{"title":"Archives a profile","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json post /installations/{installation_id}/profiles/{app_profile_id}/archive","href":"/api-reference/profiles/archives-a-profile"}]},{"group":"Queries","pages":[{"title":"Get a query by id","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json get /v2/queries/{query_id}","href":"/api-reference/queries/get-a-query-by-id"},{"title":"Deletes a query","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json delete /v2/queries/{query_id}","href":"/api-reference/queries/deletes-a-query"},{"title":"Get accessible queries","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json get /v2/queries","href":"/api-reference/queries/get-accessible-queries"},{"title":"Create a query","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json post /v2/queries","href":"/api-reference/queries/create-a-query"}]},{"group":"Resources","pages":[{"title":"Get buckets","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json get /resources/buckets","href":"/api-reference/resources/get-buckets"},{"title":"Create bucket","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json post /resources/buckets","href":"/api-reference/resources/create-bucket"},{"title":"Update access type","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json post /resources/update-access","href":"/api-reference/resources/update-access-type"}]},{"group":"Schema Inference","pages":[{"title":"Infer the dataset schema of a file passed by multipart file.","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json post /v2/inference","href":"/api-reference/schema-inference/infer-the-dataset-schema-of-a-file-passed-by-multipart-file"}]},{"group":"Uploads","pages":[{"title":"Upload a file","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json post /uploads/{upload_path}","href":"/api-reference/uploads/upload-a-file"}]},{"group":"Usage","pages":[{"title":"Create a usage event","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json post /usage","href":"/api-reference/usage/create-a-usage-event"}]},{"group":"Views","pages":[{"title":"Get a view by id","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json get /v2/views/{view_id}","href":"/api-reference/views/get-a-view-by-id"},{"title":"Updates a view","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json put /v2/views/{view_id}","href":"/api-reference/views/updates-a-view"},{"title":"Archives a view","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json delete /v2/views/{view_id}","href":"/api-reference/views/archives-a-view"},{"title":"Get accessible views","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json get /v2/views","href":"/api-reference/views/get-accessible-views"},{"title":"Create a view","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json post /v2/views","href":"/api-reference/views/create-a-view"}]},{"group":"Webhooks","pages":[{"title":"List webhook subscriptions","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json get /webhooks","href":"/api-reference/webhooks/list-webhook-subscriptions"},{"title":"Create a webhook subscription","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json post /webhooks","href":"/api-reference/webhooks/create-a-webhook-subscription"},{"title":"Get a webhook subscription by ID","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json get /webhooks/{webhook_subscription_id}","href":"/api-reference/webhooks/get-a-webhook-subscription-by-id"},{"title":"Archive a webhook subscription","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json delete /webhooks/{webhook_subscription_id}","href":"/api-reference/webhooks/archive-a-webhook-subscription"},{"title":"Event delivery","version":null,"deprecated":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json webhook webhookDelivery","href":"/api-reference/webhooks/event-delivery"}]},{"group":"Whoami","pages":[{"title":"Get a current user","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json get /whoami","href":"/api-reference/whoami/get-a-current-user"}]},{"group":"Workflows","pages":[{"title":"List workflows","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json get /workflows","href":"/api-reference/workflows/list-workflows"},{"title":"Create a workflow","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json post /workflows","href":"/api-reference/workflows/create-a-workflow"},{"title":"Get a workflow","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json get /workflows/{workflow_id}","href":"/api-reference/workflows/get-a-workflow"},{"title":"Archive a workflow","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json delete /workflows/{workflow_id}","href":"/api-reference/workflows/archive-a-workflow"},{"title":"Trigger a workflow","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json post /workflows/{workflow_id}/trigger","href":"/api-reference/workflows/trigger-a-workflow"},{"title":"Schedule a workflow","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json post /workflows/{workflow_id}/schedule","href":"/api-reference/workflows/schedule-a-workflow"},{"title":"Remove a workflow schedule","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json delete /workflows/{workflow_id}/schedule","href":"/api-reference/workflows/remove-a-workflow-schedule"},{"title":"Cancel a workflow execution","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json post /workflows/{workflow_id}/cancel","href":"/api-reference/workflows/cancel-a-workflow-execution"},{"title":"List workflow runs","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json get /workflows/{workflow_id}/runs","href":"/api-reference/workflows/list-workflow-runs"},{"title":"Cancel a specific workflow run","deprecated":null,"version":null,"openapi":"https://docs-cdn.narrative.io/api-reference/main/openapi.json post /workflows/{workflow_id}/runs/{run_id}/cancel","href":"/api-reference/workflows/cancel-a-specific-workflow-run"}]}]}]},"basePath":"","title":"List conversation messages (delta read by version cursor) - Narrative I/O Knowledge Base","buildId":"dpl_FWZhTb2vab28gFGFH4ojka6qEznQ","deploymentId":"dpl_FWZhTb2vab28gFGFH4ojka6qEznQ","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-CBsVopKK.js","utils-DZAk68jJ.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-D32AYZrP.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-D_A5_cny.js","snippetPresets-xNRfS9th.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","conditional-requirements-CFM0id0Q.js","ApiExamples-BIB25-tq.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-CydJ4w4j.js","shallow-CYPBeQSG.js","getApiPlaygroundDisplay-A5xJVBOu.js","CodeSnippet-BVRTgi3m.js","CodeSnippets-DjD6BSlt.js","Page-Dr40SSJq.js","getPastedJson-D4V4JyrR.js","icon-uhcnG22T.js","MethodPill-CM-ZQdGH.js","DuplicateIcon-B_WnOiNf.js","createIcon-CJsb8utt.js","DynamicMarkdown-D-2HDKEp.js","SectionHeading-KP5xmMgQ.js","axios-vUo_bRtp.js","Markdown-D_k0dg6k.js","clsx-DK3K4Z1S.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-DE3EVdvd.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-fN9H9n9g.js"]}