---
title: "Start Customer Agent Training Run"
description: "How to call Start Customer Agent Training Run (POST /api/customer-agent-training-runs) in the Klaviyo REST API: authentication, parameters, request and response bodies, and an example request."
url: "https://developers.klaviyo.com/en/reference/start_customer_agent_training_run_beta"
revision: "2026-10-15.pre"
operationId: "start_customer_agent_training_run_beta"
aliases: ["create_customer_agent_training_run"]
method: "POST"
endpoint: "https://a.klaviyo.com/api/customer-agent-training-runs"
authentication: "privateKey"
scopes: ["agents:write"]
rateLimits: {"burst":"3/s","steady":"60/m"}
revisionHeader: {"name":"revision","required":true}
deprecated: false
preRelease: "BETA"
openApi: "https://raw.githubusercontent.com/klaviyo/openapi/2026-10-15.pre/openapi/beta/apis/start_customer_agent_training_run_beta.json"
jsonApi: {"fields":{"customer-agent-training-run":["error","id","source","stage","started_at","status"]}}
related: ["https://developers.klaviyo.com/en/reference/customer-agent-beta/llms.txt","https://developers.klaviyo.com/en/reference/create_customer_agent_conversation_context_beta.md","https://developers.klaviyo.com/en/reference/get_customer_agents_beta.md","https://developers.klaviyo.com/en/reference/get_customer_agent_beta.md","https://developers.klaviyo.com/en/reference/create_customer_agent_beta.md","https://developers.klaviyo.com/en/reference/update_customer_agent_beta.md","https://developers.klaviyo.com/en/reference/get_customer_agent_training_runs_beta.md","https://developers.klaviyo.com/en/reference/create_customer_agent_response_beta.md","https://developers.klaviyo.com/en/reference/get_agent_conversation_context_ids_for_customer_agent_conversation_beta.md","https://developers.klaviyo.com/en/reference/get_agent_conversation_contexts_for_customer_agent_conversation_beta.md"]
---

# Start Customer Agent Training Run

> This is the Markdown version of https://developers.klaviyo.com/en/reference/start_customer_agent_training_run_beta

```http
POST https://a.klaviyo.com/api/customer-agent-training-runs
```


> [!WARNING]
> **This endpoint is in beta and subject to change.**
> A beta revision header (2026-10-15.pre) is required to use our beta APIs. Klaviyo APIs in beta are not intended for use in production. See our [versioning and deprecation policy](https://developers.klaviyo.com/en/docs/api_versioning_and_deprecation_policy.md) for more information.


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.pre` (required)
- Scopes: `agents:write`
- Rate limits: Burst: `3/s`, Steady: `60/m`
- OpenAPI: [Download this endpoint's OpenAPI document](https://raw.githubusercontent.com/klaviyo/openapi/2026-10-15.pre/openapi/beta/apis/start_customer_agent_training_run_beta.json)

## Example request

### curl

```bash
curl --request POST \
     --url 'https://a.klaviyo.com/api/customer-agent-training-runs' \
     --header 'Authorization: Klaviyo-API-Key your-private-api-key' \
     --header 'accept: application/vnd.api+json' \
     --header 'revision: 2026-10-15.pre' \
     --header 'content-type: application/vnd.api+json' \
     --data '{
  "data": {
    "type": "customer-agent-training-run",
    "relationships": {
      "customer-agent": {
        "data": {
          "type": "customer-agent",
          "id": "string"
        }
      }
    }
  }
}'
```

### CLI

```bash
klaviyo beta customer-agent start-customer-agent-training-run \
  -d '{
  "data": {
    "type": "customer-agent-training-run",
    "relationships": {
      "customer-agent": {
        "data": {
          "type": "customer-agent",
          "id": "string"
        }
      }
    }
  }
}'
```

Sign in first with `klaviyo auth login`. [Install the Klaviyo CLI](https://developers.klaviyo.com/en/docs/klaviyo_cli.md)

## Query parameters

- `fields[customer-agent-training-run]` (string[]): For more information please visit [API overview](https://developers.klaviyo.com/en/reference.md) Allowed values: `error`, `id`, `source`, `stage`, `started_at`, `status`

## Headers

- `revision` (string, required): API endpoint revision (format: YYYY-MM-DD[.suffix]) Default: `2026-10-15.pre`

## Request body

Content type: `application/vnd.api+json` (required)

- `data` (object, required)
  - `type` (string, required): Allowed values: `customer-agent-training-run`
  - `relationships` (object, required)
    - `customer-agent` (object, required)
      - `data` (object, required): Fields nested this deep are in [the endpoint's OpenAPI document](https://raw.githubusercontent.com/klaviyo/openapi/2026-10-15.pre/openapi/beta/apis/start_customer_agent_training_run_beta.json).

### Example request body

```json
{
  "data": {
    "type": "customer-agent-training-run",
    "relationships": {
      "customer-agent": {
        "data": {
          "type": "customer-agent",
          "id": "string"
        }
      }
    }
  }
}
```

## Responses

### 202: Success

Content type: `application/vnd.api+json`

- `data` (object, required)
  - `type` (string, required): Allowed values: `customer-agent-training-run`
  - `id` (string, required): The account's ID. Example: `AbC123`
  - `attributes` (object, required)
    - `status` (string, required): 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` (string, nullable): 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` (string, nullable): Selected training corpus: `customer_agent`, `third_party_helpdesk`, or `canonical`. Null until selected. Allowed values: `customer_agent`, `third_party_helpdesk`, `canonical`
    - `error` (string, nullable): 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`
  - `links` (object, required)
    - `self` (string<uri>, required)
- `links` (ObjectLinks): Same fields as the first ObjectLinks above.

#### Example response body

```json
{
  "data": {
    "type": "customer-agent-training-run",
    "id": "AbC123",
    "attributes": {
      "status": "not_started",
      "stage": "selecting_source",
      "source": "customer_agent",
      "error": "string",
      "started_at": "2022-11-08T00:00:00+00:00"
    },
    "links": {
      "self": "https://www.example.com"
    }
  },
  "links": {
    "self": "https://www.example.com"
  }
}
```

### 4XX: Client Error

Content type: `application/vnd.api+json`

- `errors` (object[], required)
  - `id` (string, required)
  - `code` (string, required)
  - `title` (string, required)
  - `detail` (string, required)
  - `source` (object)
    - `pointer` (string)
    - `parameter` (string)

#### Example response body

```json
{
  "errors": [
    {
      "id": "string",
      "code": "string",
      "title": "string",
      "detail": "string",
      "source": {
        "pointer": "string",
        "parameter": "string"
      }
    }
  ]
}
```

### 5XX: Server Error

Content type: `application/vnd.api+json`

- `errors` (object[], required)
  - `id` (string, required)
  - `code` (string, required)
  - `title` (string, required)
  - `detail` (string, required)
  - `source` (object)
    - `pointer` (string)
    - `parameter` (string)

#### Example response body

```json
{
  "errors": [
    {
      "id": "string",
      "code": "string",
      "title": "string",
      "detail": "string",
      "source": {
        "pointer": "string",
        "parameter": "string"
      }
    }
  ]
}
```
