Skip to content

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

KlaviyoKlaviyoDevelopers
v2026-07-15

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

You're reading the reference for API revision 2026-07-15. The latest revision is 2026-10-15. See this page in the latest revision.

Create Conversation Context

POSThttps://a.klaviyo.com/api/customer-agent-conversation-contexts

Attach background the caller already has to an existing conversation.

Unlike POST /api/customer-agent-responses, this never runs the agent or produces a reply -- it only records the context. Requires an open conversation.

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

Query parameters

  • fields[customer-agent-conversation-context]#string[]

    For more information please visit API overview

    Allowed values:
    • entries
    • event_type
    • id

Headers

  • revision#stringrequired

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

    2026-07-15.pre

Request body

Content type: application/vnd.api+jsonrequired

  • data#objectrequired
    Show 3 fields
    • type#stringrequired
      Allowed values:
      • customer-agent-conversation-context
    • attributes#objectrequired
      Show 2 fields
      • event_type#stringrequired
        Allowed values:
        • survey-response
      • entries#object[]required

        Question/answer pairs already collected from the customer.

        Show 2 fields
        • question#stringrequired

          The question asked.

          Example: What's your budget?

        • answer#stringrequired

          The customer's answer.

          Example: Under $50

    • relationships#objectrequired
      Show 1 field
      • conversation#objectrequired
        Show 1 field
        • data#object
          Show 2 fields
          • type#stringrequired
            Allowed values:
            • customer-agent-conversation
          • id#stringrequired

            Conversation to attach this context to. Create one first via POST /api/customer-agent-conversations.

Responses

201Success

Content type: application/vnd.api+json

  • data#objectrequired
    Show 5 fields
    • type#stringrequired
      Allowed values:
      • customer-agent-conversation-context
    • id#stringrequired

      Conversation context id, unique per submission.

    • attributes#objectrequired
      Show 2 fields
      • event_type#stringrequired
        Allowed values:
        • survey-response
      • entries#object[]required

        Question/answer pairs already collected from the customer.

        Show 2 fields
        • question#stringrequired

          The question asked.

          Example: What's your budget?

        • answer#stringrequired

          The customer's answer.

          Example: Under $50

    • relationships#objectrequired
      Show 1 field
      • conversation#objectrequired
        Show 1 field
        • data#object
          Show 2 fields
          • type#stringrequired
            Allowed values:
            • customer-agent-conversation
          • id#stringrequired

            Conversation this context was attached to.

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