Visitar URL original
Get Agent Knowledge | Klaviyo API ReferenceSkip to content

This page is available as Markdown at https://developers.klaviyo.com/en/reference/get_agent_knowledge_beta.md. Its OpenAPI document is at https://raw.githubusercontent.com/klaviyo/openapi/2026-10-15.pre/openapi/beta/apis/get_agent_knowledge_beta.json. An index of every page is at https://developers.klaviyo.com/llms.txt.

KlaviyoKlaviyoDevelopers

This endpoint is in beta. Call it with the revision header 2026-10-15.pre. Beta endpoints may change before they're generally available. See our versioning and deprecation policy for more information.

GEThttps://a.klaviyo.com/api/agent-knowledge/{id}

Returns one Agent Knowledge resource by id.

Resources are fetchable immediately after creation, including while pending, indexing, failed, or rejected.

Revision header
revision: 2026-10-15.prerequired
Scopes
agents:read
Rate limits
Burst: 10/sSteady: 150/m

Path parameters

  • id#stringrequired

Query parameters

  • fields[agent-knowledge]#string[]

    For more information please visit API overview

    Show 20 allowed values
    • countries
    • created_at
    • error
    • id
    • indexed_at
    • source
    • source.answer
    • source.auto_reindex
    • source.child_count
    • source.content
    • source.exclude_prefixes
    • source.indexed_child_count
    • source.pending_child_count
    • source.question
    • source.scope
    • source.source_type
    • source.title
    • source.url
    • status
    • updated_at

Headers

  • revision#stringrequired

    API endpoint revision (format: YYYY-MM-DD[.suffix])

    2026-10-15.pre

Responses

200Success

Content type: application/vnd.api+json

  • data#objectrequired
    Show 4 fields
    • type#stringrequired
      Allowed values:
      • agent-knowledge
    • id#stringrequired

      Unique Agent Knowledge identifier.

    • attributes#objectrequired
      Show 7 fields
      • source#oneOfrequired

        Source payload for the knowledge item.

        One of:

        1. Option 1: AgentKnowledgeSnippetResponseSource
          • source_type#stringrequired

            The knowledge item was created from caller-provided content.

            Allowed values:
            • snippet
          • title#stringnullable

            Human-readable title for the snippet.

          • content#stringnullable

            Text body for the snippet.

        2. Option 2: AgentKnowledgeWebpageResponseSource
          • source_type#stringrequired

            The knowledge item was created from a webpage.

            Allowed values:
            • webpage
          • url#stringnullable

            Normalized URL for the webpage-backed knowledge item.

          • title#stringnullable

            Page title from the webpage's HTML, once crawled; otherwise null.

          • scope#stringnullable

            Crawl scope for the webpage-backed knowledge item.

            Allowed values:
            • single-page
            • entire-site
            • selected-pages
          • auto_reindex#booleannullable

            Whether the webpage is periodically re-indexed.

          • exclude_prefixes#string[]nullable

            URL paths skipped when crawling a selected-pages webpage. Values are normalized and may include paths Customer Agent excludes automatically.

          • child_count#integernullable

            Total number of pages discovered beneath this webpage, at any depth, in every indexing state. Use it with indexed_child_count and pending_child_count to track the progress of a site crawl, which can take hours. Only populated when listed via GET /agent-knowledge; null when fetched by id via GET /agent-knowledge/{id}, and null for every non-webpage source. 0 is not null: it means a webpage with no pages beneath it yet.

          • indexed_child_count#integernullable

            Number of those pages that have finished indexing. Null under the same conditions as child_count. This and pending_child_count do not necessarily add up to child_count, which also counts pages that failed or were rejected.

          • pending_child_count#integernullable

            Number of those pages still waiting to be indexed. Null under the same conditions as child_count. Pages that failed or were rejected are not counted here, so this is not child_count minus indexed_child_count.

        3. Option 3: AgentKnowledgeFileResponseSource
          • source_type#stringrequired

            The knowledge item was created from an uploaded file.

            Allowed values:
            • file
          • title#stringnullable

            Human-readable title for the file-backed knowledge item.

        4. Option 4: AgentKnowledgeFolderResponseSource
          • source_type#stringrequired

            The knowledge item is a folder that organizes other knowledge items.

            Allowed values:
            • folder
          • title#stringnullable

            Human-readable title for the folder.

          • child_count#integernullable

            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}.

        5. Option 5: AgentKnowledgeQaResponseSource
          • source_type#stringrequired

            The knowledge item is a question-and-answer pair.

            Allowed values:
            • qa
          • question#stringnullable

            Question text for the Q&A pair.

          • answer#stringnullable

            Answer text for the Q&A pair.

      • status#stringrequired

        Indexing lifecycle state for the knowledge item.

        Allowed values:
        • pending
        • indexing
        • indexed
        • failed
        • rejected
      • created_at#string<date-time>required

        Date and time when the knowledge item was created.

        Example: 2022-11-08T00:00:00+00:00

      • updated_at#string<date-time>required

        Date and time when the knowledge item was last updated.

        Example: 2022-11-08T00:00:00+00:00

      • indexed_at#string<date-time>nullable

        Date and time when indexing completed, if available.

        Example: 2022-11-08T00:00:00+00:00

      • error#stringnullable

        Error message when indexing failed; otherwise null.

      • countries#string[]nullable

        ISO 3166-1 alpha-2 codes of the countries the knowledge item is available in. Null means it is available in every country.

4XXClient Error

Content type: application/vnd.api+json

  • errors#object[]required
    Show 5 fields
    • id#stringrequired
    • code#stringrequired
    • title#stringrequired
    • detail#stringrequired
    • source#object
      Show 2 fields
      • pointer#string
      • parameter#string

5XXServer Error

Content type: application/vnd.api+json

  • errors#object[]required
    Show 5 fields
    • id#stringrequired
    • code#stringrequired
    • title#stringrequired
    • detail#stringrequired
    • source#object
      Show 2 fields
      • pointer#string
      • parameter#string