Create Agent Knowledge
POSThttps://a.klaviyo.com/api/agent-knowledge
Adds an Agent Knowledge item from a text snippet (source.source_type: snippet, requires title and content), a single URL (source.source_type: webpage, requires url), or a Q&A pair (source.source_type: qa, requires question and answer).
The URL is normalized before the uniqueness check; duplicate normalized URLs or duplicate Q&A questions return 409 Conflict. The resource is fetchable immediately; clients can poll its status until indexing completes. For files, use POST /agent-knowledge-files.
- Revision header
revision: 2026-07-15.prerequired- Scopes
agents:write- Rate limits
- Burst:
10/sSteady:150/m
Query parameters
For more information please visit API overview
Headers
API endpoint revision (format: YYYY-MM-DD[.suffix])
2026-07-15.pre
Request body
Content type: application/vnd.api+jsonrequired
Show 2 fields
Show 1 field
Source payload for the new item.
snippetrequirestitleandcontent;webpagerequiresurland does not accept caller-provided content;qarequiresquestionandanswer. To upload a file, usePOST /agent-knowledge-files.Option 2:
AgentKnowledgeWebpageCreateSourceRequestCreate a webpage-backed knowledge source from a URL.
URL to scrape and index.
Crawl scope for the webpage.
single-pageindexes only the given URL;entire-sitecrawls URLs listed in the site's root sitemap.Whether to periodically re-index the webpage.
Responses
201Success
Content type: application/vnd.api+json
Show 4 fields
Unique Agent Knowledge identifier.
Show 6 fields
Source payload for the knowledge item.
Option 2:
AgentKnowledgeWebpageResponseSourceThe knowledge item was created from a webpage.
Normalized URL for the webpage-backed knowledge item.
Crawl scope for the webpage-backed knowledge item.
Whether the webpage is periodically re-indexed.
Option 4:
AgentKnowledgeFolderResponseSourceThe knowledge item is a folder that organizes other knowledge items.
Human-readable title for the folder.
Number of knowledge items nested under this folder at any depth (nested folders don't count themselves, only their contents do). Only populated when listed via GET /agent-knowledge; null when fetched by id via GET /agent-knowledge/{id}.
Indexing lifecycle state for the knowledge item.
Date and time when the knowledge item was created.
Date and time when the knowledge item was last updated.
Date and time when indexing completed, if available.
Error message when indexing failed; otherwise null.
Show 1 field
4XXClient Error
Content type: application/vnd.api+json
5XXServer Error
Content type: application/vnd.api+json