Skip to content

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

KlaviyoKlaviyoDevelopers
v2026-10-15

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.

Start Customer Agent Training Run

POSThttps://a.klaviyo.com/api/customer-agent-training-runs

Start training for the specified Customer Agent and return its current status.

Returns 409 Conflict if training is already pending or running. Poll Get Customer Agent Training Runs to monitor progress. You can start another run after the current run succeeds or fails.

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

Query parameters

  • fields[customer-agent-training-run]#string[]

    For more information please visit API overview

    Allowed values:
    • error
    • id
    • source
    • stage
    • started_at
    • status

Headers

  • revision#stringrequired

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

    2026-10-15.pre

Request body

Content type: application/vnd.api+jsonrequired

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

            Customer Agent to train. Use the ID returned by Get Customer Agents.

Responses

202Success

Content type: application/vnd.api+json

  • data#objectrequired
    Show 4 fields
    • type#stringrequired
      Allowed values:
      • customer-agent-training-run
    • id#stringrequired

      The account's ID.

      Example: AbC123

    • attributes#objectrequired
      Show 5 fields
      • status#stringrequired

        Training lifecycle status. Stop polling only when this is succeeded or failed, regardless of stage. Accounts that have never trained return not_started.

        Allowed values:
        • not_started
        • pending
        • running
        • succeeded
        • failed
      • stage#stringnullable

        Current pipeline step. May be null during training; never use it to stop polling.

        Allowed values:
        • selecting_source
        • importing_conversations
        • clustering_conversations
        • preparing_scenario_inputs
        • generating_scenarios
        • running_simulations
        • complete
      • source#stringnullable

        Selected training corpus: customer_agent, third_party_helpdesk, or canonical. Null until selected.

        Allowed values:
        • customer_agent
        • third_party_helpdesk
        • canonical
      • error#stringnullable

        Customer-safe explanation when training did not finish, otherwise null.

      • started_at#string<date-time>nullable

        When the most recent training was requested. Null before the first run.

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

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