# Request 1: Create new training with active statuscurl -X POST "https://app.talkover.ai/api/v1/agents/550e8400-e29b-41d4-a716-446655440000/trainings" \ -H "Authorization: Bearer talq_your_environment_token_here" \ -H "Content-Type: application/json" \ -d '{ "node_id": "training-node-123", "subject": "Product Knowledge", "instructions": "Learn about our product features, pricing, and common use cases. Focus on the main benefits and how to address common customer questions. Always provide accurate information about our services.", "current_status": "active" }'
// Request 1: Create new training with active statusconst response = await fetch('https://app.talkover.ai/api/v1/agents/550e8400-e29b-41d4-a716-446655440000/trainings', { method: 'POST', headers: { 'Authorization': 'Bearer talq_your_environment_token_here', 'Content-Type': 'application/json' }, body: JSON.stringify({ node_id: "training-node-123", subject: "Product Knowledge", instructions: "Learn about our product features, pricing, and common use cases. Focus on the main benefits and how to address common customer questions. Always provide accurate information about our services.", current_status: "active" })});const result = await response.json();console.log(result);
{ "success": true, "message": "Agent training updated successfully", "data": { "id": "training-uuid-1", "subject": "Product Knowledge", "instructions": "Learn about our product features, pricing, and common use cases. Focus on the main benefits and how to address common customer questions. Always provide accurate information about our services.", "current_status": "active", "created_at": "2024-01-15T10:30:00Z", "updated_at": "2024-01-15T12:00:00Z" }}
Trainings
Create/Update Training
Create new training data or update existing training for a voice agent
POST
/
api
/
v1
/
agents
/
{agent_id}
/
trainings
# Request 1: Create new training with active statuscurl -X POST "https://app.talkover.ai/api/v1/agents/550e8400-e29b-41d4-a716-446655440000/trainings" \ -H "Authorization: Bearer talq_your_environment_token_here" \ -H "Content-Type: application/json" \ -d '{ "node_id": "training-node-123", "subject": "Product Knowledge", "instructions": "Learn about our product features, pricing, and common use cases. Focus on the main benefits and how to address common customer questions. Always provide accurate information about our services.", "current_status": "active" }'
// Request 1: Create new training with active statusconst response = await fetch('https://app.talkover.ai/api/v1/agents/550e8400-e29b-41d4-a716-446655440000/trainings', { method: 'POST', headers: { 'Authorization': 'Bearer talq_your_environment_token_here', 'Content-Type': 'application/json' }, body: JSON.stringify({ node_id: "training-node-123", subject: "Product Knowledge", instructions: "Learn about our product features, pricing, and common use cases. Focus on the main benefits and how to address common customer questions. Always provide accurate information about our services.", current_status: "active" })});const result = await response.json();console.log(result);
{ "success": true, "message": "Agent training updated successfully", "data": { "id": "training-uuid-1", "subject": "Product Knowledge", "instructions": "Learn about our product features, pricing, and common use cases. Focus on the main benefits and how to address common customer questions. Always provide accurate information about our services.", "current_status": "active", "created_at": "2024-01-15T10:30:00Z", "updated_at": "2024-01-15T12:00:00Z" }}
Create/Update Training
Create new training data or update existing training for a voice agent. Provides the agent with specific instructions and knowledge to improve its responses and behavior.
Endpoint
POST /api/v1/agents/{agent_id}/trainings
Path parameters
string
required
The unique identifier of the voice agent.
Request headers
string
required
Bearer token for authentication. Format: Bearer talq_your_environment_token_here
string
required
Must be set to application/json
Request body
string
Training node ID for workflow integration
string
required
Training subject or title (max 255 characters)
string
required
Detailed training instructions that the agent will learn from
string
Training status. Options: active, inactive. Default: active
Example requests
# Request 1: Create new training with active statuscurl -X POST "https://app.talkover.ai/api/v1/agents/550e8400-e29b-41d4-a716-446655440000/trainings" \ -H "Authorization: Bearer talq_your_environment_token_here" \ -H "Content-Type: application/json" \ -d '{ "node_id": "training-node-123", "subject": "Product Knowledge", "instructions": "Learn about our product features, pricing, and common use cases. Focus on the main benefits and how to address common customer questions. Always provide accurate information about our services.", "current_status": "active" }'
// Request 1: Create new training with active statusconst response = await fetch('https://app.talkover.ai/api/v1/agents/550e8400-e29b-41d4-a716-446655440000/trainings', { method: 'POST', headers: { 'Authorization': 'Bearer talq_your_environment_token_here', 'Content-Type': 'application/json' }, body: JSON.stringify({ node_id: "training-node-123", subject: "Product Knowledge", instructions: "Learn about our product features, pricing, and common use cases. Focus on the main benefits and how to address common customer questions. Always provide accurate information about our services.", current_status: "active" })});const result = await response.json();console.log(result);
# Request 2: Create training with minimal required fieldscurl -X POST "https://app.talkover.ai/api/v1/agents/550e8400-e29b-41d4-a716-446655440000/trainings" \ -H "Authorization: Bearer talq_your_environment_token_here" \ -H "Content-Type: application/json" \ -d '{ "subject": "Customer Service Best Practices", "instructions": "Understand how to handle customer complaints and provide excellent service. Always be polite, patient, and solution-oriented. Escalate issues when necessary." }'
// Request 2: Create training with minimal required fieldsconst response = await fetch('https://app.talkover.ai/api/v1/agents/550e8400-e29b-41d4-a716-446655440000/trainings', { method: 'POST', headers: { 'Authorization': 'Bearer talq_your_environment_token_here', 'Content-Type': 'application/json' }, body: JSON.stringify({ subject: "Customer Service Best Practices", instructions: "Understand how to handle customer complaints and provide excellent service. Always be polite, patient, and solution-oriented. Escalate issues when necessary." })});const result = await response.json();console.log(result);
# Request 3: Create inactive training for future usecurl -X POST "https://app.talkover.ai/api/v1/agents/550e8400-e29b-41d4-a716-446655440000/trainings" \ -H "Authorization: Bearer talq_your_environment_token_here" \ -H "Content-Type: application/json" \ -d '{ "subject": "Technical Support", "instructions": "Provide technical support for common issues. Guide users through troubleshooting steps and escalate when necessary. Use clear, simple language.", "current_status": "inactive" }'
// Request 3: Create inactive training for future useconst response = await fetch('https://app.talkover.ai/api/v1/agents/550e8400-e29b-41d4-a716-446655440000/trainings', { method: 'POST', headers: { 'Authorization': 'Bearer talq_your_environment_token_here', 'Content-Type': 'application/json' }, body: JSON.stringify({ subject: "Technical Support", instructions: "Provide technical support for common issues. Guide users through troubleshooting steps and escalate when necessary. Use clear, simple language.", current_status: "inactive" })});const result = await response.json();console.log(result);
Response
Success Response (200 OK)
{ "success": true, "message": "Agent training updated successfully", "data": { "id": "training-uuid-1", "subject": "Product Knowledge", "instructions": "Learn about our product features, pricing, and common use cases. Focus on the main benefits and how to address common customer questions. Always provide accurate information about our services.", "current_status": "active", "created_at": "2024-01-15T10:30:00Z", "updated_at": "2024-01-15T12:00:00Z" }}
Response fields
boolean
required
Indicates if the operation was successful.
string
required
Success message confirming the training was created or updated.
object
required
The created or updated training object.
Show Training Object
string
required
Unique identifier for the training.
string
required
The subject or title of the training.
string
required
Detailed instructions for the training that the agent will learn from.
string
required
Current status of the training. Options: active, inactive.
string
required
ISO 8601 timestamp when the training was created.
string
required
ISO 8601 timestamp when the training was last updated.
Error responses
Validation Error (422)
{ "success": false, "message": "The given data was invalid.", "errors": { "subject": [ "The subject field is required." ], "instructions": [ "The instructions field is required." ], "current_status": [ "The selected current status is invalid." ] }}
{ "success": false, "message": "You are not authorized to create training for this agent."}
500 Server Error
{ "success": false, "message": "Internal server error."}
Error codes
Code
Description
HTTP Status
AGENT_NOT_FOUND
Specified agent does not exist
404
INVALID_TOKEN
Authentication token is invalid or missing
401
UNAUTHORIZED
User does not have permission to create training for this agent
403
VALIDATION_ERROR
Request data validation failed
422
SERVER_ERROR
Internal server error occurred
500
Important notes
Agent status will be set to draft. After creating or updating training, the agent will be automatically set to “draft” status and will need to be published again to become active.
Training takes effect immediately. Once created, the training instructions are immediately available to the agent for learning and improving responses.
Character limits. The subject field has a maximum of 255 characters. Instructions can be much longer but should be clear and concise for best results.
Related endpoints
List Trainings: GET /api/v1/agents/{agent_id}/trainings
Publish Agent: POST /api/v1/agents/{agent_id}/publish
Was this page helpful?
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Talkover","colors":{"primary":"#155DFC","light":"#669BFF","dark":"#15803D"},"logo":{"light":"https://mintcdn.com/talqove/5migkN6-Hty9RJZw/images/logo.svg?fit=max\u0026auto=format\u0026n=5migkN6-Hty9RJZw\u0026q=85\u0026s=b3e6bead068f900e1a50ec54b1d813f2","dark":"https://mintcdn.com/talqove/5migkN6-Hty9RJZw/images/logo.svg?fit=max\u0026auto=format\u0026n=5migkN6-Hty9RJZw\u0026q=85\u0026s=b3e6bead068f900e1a50ec54b1d813f2"},"favicon":"https://mintcdn.com/talqove/p9Bi9k7_5Bq3Cl1A/favicon.svg?fit=max\u0026auto=format\u0026n=p9Bi9k7_5Bq3Cl1A\u0026q=85\u0026s=6d0ae94d10ee524a776d8ad8aa0b442f","api":{},"navbar":{"links":[{"href":"mailto:[email protected]","label":"Support"}],"primary":{"type":"button","label":"Dashboard","href":"https://app.talkover.ai"}},"footer":{"socials":{"linkedin":"https://linkedin.com/company/talkover"}},"styling":{"latex":false},"navigation":{"global":{"anchors":[]},"languages":[{"language":"en","default":true,"href":"en/introduction"},{"language":"pt-BR","href":"pt-br/introduction"}]}},"deployment":{"deploymentMetadataValue":{"subdomain":"talqove","hasAudioNarration":false,"actualSubdomain":"talqove","customDomains":["docs.talkover.ai"],"gitSource":{"type":"github","owner":"talqover","repo":"talqover-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"feedback":{"thumbs":true},"entitlements":{},"buildId":"6b061a2f41e45b3f29cc2173","clientVersion":"0.0.4377","searchFilterCounts":[{"language":"en","tag":"API Reference","count":133},{"language":"pt-BR","tag":"Referência da API","count":133},{"language":"en","tag":"Calendars","count":37},{"language":"pt-BR","tag":"Calendários","count":37},{"language":"en","tag":"Setup Agents","count":20},{"language":"pt-BR","tag":"Configurar Agentes","count":20},{"language":"en","tag":"Campaign Integrations","count":16},{"language":"pt-BR","tag":"Integrações de Campanha","count":16},{"language":"en","tag":"Agents","count":13},{"language":"pt-BR","tag":"Agentes","count":13},{"language":"en","tag":"Calls \u0026 Campaigns","count":12},{"language":"pt-BR","tag":"Chamadas e Campanhas","count":12},{"language":"en","tag":"Custom SIP Trunks","count":10},{"language":"pt-BR","tag":"SIP Trunks Personalizados","count":10},{"language":"en","tag":"Campaign Webhooks","count":9},{"language":"en","tag":"Agent Webhooks","count":9},{"language":"en","tag":"For debt collection","count":9},{"language":"pt-BR","tag":"Webhooks de Campanha","count":9},{"language":"pt-BR","tag":"Webhooks de Agente","count":9},{"language":"pt-BR","tag":"Para cobrança","count":9}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"en/api-reference/endpoints/create-training","slug":"/en/api-reference/endpoints/create-training","pageMetadata":{"title":"Create/Update Training","description":"Create new training data or update existing training for a voice agent","api":"POST /api/v1/agents/{agent_id}/trainings","href":"/en/api-reference/endpoints/create-training"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Create new training data or update existing training for a voice agent\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={code:`code`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Expandable,Heading,Info,ParamField,ResponseField,Table,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Expandable)_missingMdxReference(`Expandable`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Info)_missingMdxReference(`Info`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`1`,id:`create/update-training`,children:`Create/Update Training`}),`\n`,_jsx(_components.p,{children:`Create new training data or update existing training for a voice agent. Provides the agent with specific instructions and knowledge to improve its responses and behavior.`}),`\n`,_jsx(Heading,{level:`2`,id:`endpoint`,children:`Endpoint`}),`\n`,_jsx(CodeBlock,{numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`POST /api/v1/agents/{agent_id}/trainings`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(Heading,{level:`2`,id:`path-parameters`,children:`Path parameters`}),`\n`,_jsx(ParamField,{path:`agent`,type:`string`,required:true,id:`param-agent`,children:_jsx(_components.p,{children:`The unique identifier of the voice agent.`})}),`\n`,_jsx(Heading,{level:`2`,id:`request-headers`,children:`Request headers`}),`\n`,_jsx(ParamField,{header:`Authorization`,type:`string`,required:true,id:`param-authorization`,children:_jsxs(_components.p,{children:[`Bearer token for authentication. Format: `,_jsx(_components.code,{children:`Bearer talq_your_environment_token_here`})]})}),`\n`,_jsx(ParamField,{header:`Content-Type`,type:`string`,required:true,id:`param-content-type`,children:_jsxs(_components.p,{children:[`Must be set to `,_jsx(_components.code,{children:`application/json`})]})}),`\n`,_jsx(Heading,{level:`2`,id:`request-body`,children:`Request body`}),`\n`,_jsx(ParamField,{body:`node_id`,type:`string`,required:false,id:`param-node-id`,children:_jsx(_components.p,{children:`Training node ID for workflow integration`})}),`\n`,_jsx(ParamField,{body:`subject`,type:`string`,required:true,id:`param-subject`,children:_jsx(_components.p,{children:`Training subject or title (max 255 characters)`})}),`\n`,_jsx(ParamField,{body:`instructions`,type:`string`,required:true,id:`param-instructions`,children:_jsx(_components.p,{children:`Detailed training instructions that the agent will learn from`})}),`\n`,_jsx(ParamField,{body:`current_status`,type:`string`,required:false,id:`param-current-status`,children:_jsxs(_components.p,{children:[`Training status. Options: `,_jsx(_components.code,{children:`active`}),`, `,_jsx(_components.code,{children:`inactive`}),`. Default: `,_jsx(_components.code,{children:`active`})]})}),`\n`,_jsx(Heading,{level:`2`,id:`example-requests`,children:`Example requests`}),`\n`,`\n`,`\n`,`\n`,_jsx(Heading,{level:`2`,id:`response`,children:`Response`}),`\n`,_jsx(Heading,{level:`3`,id:`success-response-200-ok`,children:`Success Response (200 OK)`}),`\n`,`\n`,_jsx(Heading,{level:`3`,id:`response-fields`,children:`Response fields`}),`\n`,_jsx(ResponseField,{name:`success`,type:`boolean`,required:true,id:`param-success`,children:_jsx(_components.p,{children:`Indicates if the operation was successful.`})}),`\n`,_jsx(ResponseField,{name:`message`,type:`string`,required:true,id:`param-message`,children:_jsx(_components.p,{children:`Success message confirming the training was created or updated.`})}),`\n`,_jsxs(ResponseField,{name:`data`,type:`object`,required:true,id:`param-data`,children:[_jsx(_components.p,{children:`The created or updated training object.`}),_jsxs(Expandable,{title:`Training Object`,children:[_jsx(ResponseField,{name:`id`,type:`string`,required:true,id:`param-id`,children:_jsx(_components.p,{children:`Unique identifier for the training.`})}),_jsx(ResponseField,{name:`subject`,type:`string`,required:true,id:`param-subject-1`,children:_jsx(_components.p,{children:`The subject or title of the training.`})}),_jsx(ResponseField,{name:`instructions`,type:`string`,required:true,id:`param-instructions-1`,children:_jsx(_components.p,{children:`Detailed instructions for the training that the agent will learn from.`})}),_jsx(ResponseField,{name:`current_status`,type:`string`,required:true,id:`param-current-status-1`,children:_jsxs(_components.p,{children:[`Current status of the training. Options: `,_jsx(_components.code,{children:`active`}),`, `,_jsx(_components.code,{children:`inactive`}),`.`]})}),_jsx(ResponseField,{name:`created_at`,type:`string`,required:true,id:`param-created-at`,children:_jsx(_components.p,{children:`ISO 8601 timestamp when the training was created.`})}),_jsx(ResponseField,{name:`updated_at`,type:`string`,required:true,id:`param-updated-at`,children:_jsx(_components.p,{children:`ISO 8601 timestamp when the training was last updated.`})})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`error-responses`,children:`Error responses`}),`\n`,_jsx(Heading,{level:`3`,id:`validation-error-422`,children:`Validation Error (422)`}),`\n`,`\n`,_jsx(Heading,{level:`3`,id:`404-not-found`,children:`404 Not Found`}),`\n`,`\n`,_jsx(Heading,{level:`3`,id:`401-unauthorized`,children:`401 Unauthorized`}),`\n`,`\n`,_jsx(Heading,{level:`3`,id:`403-forbidden`,children:`403 Forbidden`}),`\n`,`\n`,_jsx(Heading,{level:`3`,id:`500-server-error`,children:`500 Server Error`}),`\n`,`\n`,_jsx(Heading,{level:`2`,id:`error-codes`,children:`Error codes`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Code`}),_jsx(_components.th,{children:`Description`}),_jsx(_components.th,{children:`HTTP Status`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`AGENT_NOT_FOUND`})}),_jsx(_components.td,{children:`Specified agent does not exist`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`404`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`INVALID_TOKEN`})}),_jsx(_components.td,{children:`Authentication token is invalid or missing`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`401`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`UNAUTHORIZED`})}),_jsx(_components.td,{children:`User does not have permission to create training for this agent`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`403`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`VALIDATION_ERROR`})}),_jsx(_components.td,{children:`Request data validation failed`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`422`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`SERVER_ERROR`})}),_jsx(_components.td,{children:`Internal server error occurred`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`500`})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`important-notes`,children:`Important notes`}),`\n`,_jsx(Info,{children:_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Agent status will be set to draft.`}),` After creating or updating training, the agent will be automatically set to “draft” status and will need to be published again to become active.`]})}),`\n`,_jsx(Info,{children:_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Training takes effect immediately.`}),` Once created, the training instructions are immediately available to the agent for learning and improving responses.`]})}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Character limits.`}),` The subject field has a maximum of 255 characters. Instructions can be much longer but should be clear and concise for best results.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`related-endpoints`,children:`Related endpoints`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`List Trainings`}),`: `,_jsx(_components.code,{children:`GET /api/v1/agents/{agent_id}/trainings`})]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Delete Training`}),`: `,_jsx(_components.code,{children:`DELETE /api/v1/agents/{agent_id}/trainings/{training_id}`})]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Get Agent`}),`: `,_jsx(_components.code,{children:`GET /api/v1/agents/{agent_id}`})]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Publish Agent`}),`: `,_jsx(_components.code,{children:`POST /api/v1/agents/{agent_id}/publish`})]}),`\n`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Create/Update Training","description":"Create new training data or update existing training for a voice agent","api":"POST /api/v1/agents/{agent_id}/trainings","href":"/en/api-reference/endpoints/create-training"}}},"mdxSourceWithNoJs":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={code:`code`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Expandable,Heading,Info,ParamField,RequestExample,ResponseExample,ResponseField,Table,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Expandable)_missingMdxReference(`Expandable`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Info)_missingMdxReference(`Info`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!RequestExample)_missingMdxReference(`RequestExample`,true);if(!ResponseExample)_missingMdxReference(`ResponseExample`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`1`,id:`create/update-training`,children:`Create/Update Training`}),`\n`,_jsx(_components.p,{children:`Create new training data or update existing training for a voice agent. Provides the agent with specific instructions and knowledge to improve its responses and behavior.`}),`\n`,_jsx(Heading,{level:`2`,id:`endpoint`,children:`Endpoint`}),`\n`,_jsx(CodeBlock,{numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`POST /api/v1/agents/{agent_id}/trainings`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(Heading,{level:`2`,id:`path-parameters`,children:`Path parameters`}),`\n`,_jsx(ParamField,{path:`agent`,type:`string`,required:true,id:`param-agent`,children:_jsx(_components.p,{children:`The unique identifier of the voice agent.`})}),`\n`,_jsx(Heading,{level:`2`,id:`request-headers`,children:`Request headers`}),`\n`,_jsx(ParamField,{header:`Authorization`,type:`string`,required:true,id:`param-authorization`,children:_jsxs(_components.p,{children:[`Bearer token for authentication. Format: `,_jsx(_components.code,{children:`Bearer talq_your_environment_token_here`})]})}),`\n`,_jsx(ParamField,{header:`Content-Type`,type:`string`,required:true,id:`param-content-type`,children:_jsxs(_components.p,{children:[`Must be set to `,_jsx(_components.code,{children:`application/json`})]})}),`\n`,_jsx(Heading,{level:`2`,id:`request-body`,children:`Request body`}),`\n`,_jsx(ParamField,{body:`node_id`,type:`string`,required:false,id:`param-node-id`,children:_jsx(_components.p,{children:`Training node ID for workflow integration`})}),`\n`,_jsx(ParamField,{body:`subject`,type:`string`,required:true,id:`param-subject`,children:_jsx(_components.p,{children:`Training subject or title (max 255 characters)`})}),`\n`,_jsx(ParamField,{body:`instructions`,type:`string`,required:true,id:`param-instructions`,children:_jsx(_components.p,{children:`Detailed training instructions that the agent will learn from`})}),`\n`,_jsx(ParamField,{body:`current_status`,type:`string`,required:false,id:`param-current-status`,children:_jsxs(_components.p,{children:[`Training status. Options: `,_jsx(_components.code,{children:`active`}),`, `,_jsx(_components.code,{children:`inactive`}),`. Default: `,_jsx(_components.code,{children:`active`})]})}),`\n`,_jsx(Heading,{level:`2`,id:`example-requests`,children:`Example requests`}),`\n`,_jsxs(RequestExample,{children:[_jsx(CodeBlock,{filename:``,numberOfLines:`10`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`10`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Request 1: Create new training with active status`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://app.talkover.ai/api/v1/agents/550e8400-e29b-41d4-a716-446655440000/trainings\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer talq_your_environment_token_here\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"node_id\": \"training-node-123\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"subject\": \"Product Knowledge\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"instructions\": \"Learn about our product features, pricing, and common use cases. Focus on the main benefits and how to address common customer questions. Always provide accurate information about our services.\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"current_status\": \"active\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }'`})}),`\n`]})})}),_jsx(CodeBlock,{filename:``,numberOfLines:`17`,language:`javascript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`17`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Request 1: Create new training with active status`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` response`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` fetch`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'https://app.talkover.ai/api/v1/agents/550e8400-e29b-41d4-a716-446655440000/trainings'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` method:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'POST'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` headers:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'Authorization'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'Bearer talq_your_environment_token_here'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'Content-Type'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'application/json'`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` body:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` JSON`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`stringify`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` node_id:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"training-node-123\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` subject:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Product Knowledge\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` instructions:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Learn about our product features, pricing, and common use cases. Focus on the main benefits and how to address common customer questions. Always provide accurate information about our services.\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` current_status:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"active\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` })`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`});`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` result`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` response`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`json`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`();`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`console`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`log`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`result`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`]})})})]}),`\n`,_jsxs(RequestExample,{children:[_jsx(CodeBlock,{filename:``,numberOfLines:`8`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`8`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Request 2: Create training with minimal required fields`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://app.talkover.ai/api/v1/agents/550e8400-e29b-41d4-a716-446655440000/trainings\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer talq_your_environment_token_here\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"subject\": \"Customer Service Best Practices\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"instructions\": \"Understand how to handle customer complaints and provide excellent service. Always be polite, patient, and solution-oriented. Escalate issues when necessary.\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }'`})}),`\n`]})})}),_jsx(CodeBlock,{filename:``,numberOfLines:`15`,language:`javascript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`15`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Request 2: Create training with minimal required fields`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` response`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` fetch`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'https://app.talkover.ai/api/v1/agents/550e8400-e29b-41d4-a716-446655440000/trainings'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` method:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'POST'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` headers:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'Authorization'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'Bearer talq_your_environment_token_here'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'Content-Type'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'application/json'`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` body:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` JSON`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`stringify`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` subject:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Customer Service Best Practices\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` instructions:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Understand how to handle customer complaints and provide excellent service. Always be polite, patient, and solution-oriented. Escalate issues when necessary.\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` })`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`});`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` result`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` response`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`json`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`();`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`console`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`log`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`result`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`]})})})]}),`\n`,_jsxs(RequestExample,{children:[_jsx(CodeBlock,{filename:``,numberOfLines:`9`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`9`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Request 3: Create inactive training for future use`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://app.talkover.ai/api/v1/agents/550e8400-e29b-41d4-a716-446655440000/trainings\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer talq_your_environment_token_here\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"subject\": \"Technical Support\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"instructions\": \"Provide technical support for common issues. Guide users through troubleshooting steps and escalate when necessary. Use clear, simple language.\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"current_status\": \"inactive\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }'`})}),`\n`]})})}),_jsx(CodeBlock,{filename:``,numberOfLines:`16`,language:`javascript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`16`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Request 3: Create inactive training for future use`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` response`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` fetch`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'https://app.talkover.ai/api/v1/agents/550e8400-e29b-41d4-a716-446655440000/trainings'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` method:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'POST'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` headers:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'Authorization'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'Bearer talq_your_environment_token_here'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'Content-Type'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'application/json'`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` body:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` JSON`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`stringify`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` subject:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Technical Support\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` instructions:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Provide technical support for common issues. Guide users through troubleshooting steps and escalate when necessary. Use clear, simple language.\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` current_status:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"inactive\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` })`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`});`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` result`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` response`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`json`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`();`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`console`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`log`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`result`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`]})})})]}),`\n`,_jsx(Heading,{level:`2`,id:`response`,children:`Response`}),`\n`,_jsx(Heading,{level:`3`,id:`success-response-200-ok`,children:`Success Response (200 OK)`}),`\n`,_jsx(ResponseExample,{children:_jsx(CodeBlock,{filename:``,numberOfLines:`12`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`12`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"success\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Agent training updated successfully\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"data\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"training-uuid-1\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"subject\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Product Knowledge\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"instructions\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Learn about our product features, pricing, and common use cases. Focus on the main benefits and how to address common customer questions. Always provide accurate information about our services.\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"current_status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"active\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"created_at\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2024-01-15T10:30:00Z\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"updated_at\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2024-01-15T12:00:00Z\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})}),`\n`,_jsx(Heading,{level:`3`,id:`response-fields`,children:`Response fields`}),`\n`,_jsx(ResponseField,{name:`success`,type:`boolean`,required:true,id:`param-success`,children:_jsx(_components.p,{children:`Indicates if the operation was successful.`})}),`\n`,_jsx(ResponseField,{name:`message`,type:`string`,required:true,id:`param-message`,children:_jsx(_components.p,{children:`Success message confirming the training was created or updated.`})}),`\n`,_jsxs(ResponseField,{name:`data`,type:`object`,required:true,id:`param-data`,children:[_jsx(_components.p,{children:`The created or updated training object.`}),_jsxs(Expandable,{title:`Training Object`,children:[_jsx(ResponseField,{name:`id`,type:`string`,required:true,id:`param-id`,children:_jsx(_components.p,{children:`Unique identifier for the training.`})}),_jsx(ResponseField,{name:`subject`,type:`string`,required:true,id:`param-subject-1`,children:_jsx(_components.p,{children:`The subject or title of the training.`})}),_jsx(ResponseField,{name:`instructions`,type:`string`,required:true,id:`param-instructions-1`,children:_jsx(_components.p,{children:`Detailed instructions for the training that the agent will learn from.`})}),_jsx(ResponseField,{name:`current_status`,type:`string`,required:true,id:`param-current-status-1`,children:_jsxs(_components.p,{children:[`Current status of the training. Options: `,_jsx(_components.code,{children:`active`}),`, `,_jsx(_components.code,{children:`inactive`}),`.`]})}),_jsx(ResponseField,{name:`created_at`,type:`string`,required:true,id:`param-created-at`,children:_jsx(_components.p,{children:`ISO 8601 timestamp when the training was created.`})}),_jsx(ResponseField,{name:`updated_at`,type:`string`,required:true,id:`param-updated-at`,children:_jsx(_components.p,{children:`ISO 8601 timestamp when the training was last updated.`})})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`error-responses`,children:`Error responses`}),`\n`,_jsx(Heading,{level:`3`,id:`validation-error-422`,children:`Validation Error (422)`}),`\n`,_jsx(ResponseExample,{children:_jsx(CodeBlock,{filename:``,numberOfLines:`15`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`15`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"success\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`false`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"The given data was invalid.\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"errors\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"subject\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"The subject field is required.\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ],`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"instructions\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"The instructions field is required.\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ],`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"current_status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"The selected current status is invalid.\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})}),`\n`,_jsx(Heading,{level:`3`,id:`404-not-found`,children:`404 Not Found`}),`\n`,_jsx(ResponseExample,{children:_jsx(CodeBlock,{filename:``,numberOfLines:`4`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`4`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"success\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`false`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Agent not found\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})}),`\n`,_jsx(Heading,{level:`3`,id:`401-unauthorized`,children:`401 Unauthorized`}),`\n`,_jsx(ResponseExample,{children:_jsx(CodeBlock,{filename:``,numberOfLines:`4`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`4`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"success\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`false`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Unauthenticated.\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})}),`\n`,_jsx(Heading,{level:`3`,id:`403-forbidden`,children:`403 Forbidden`}),`\n`,_jsx(ResponseExample,{children:_jsx(CodeBlock,{filename:``,numberOfLines:`4`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`4`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"success\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`false`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"You are not authorized to create training for this agent.\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})}),`\n`,_jsx(Heading,{level:`3`,id:`500-server-error`,children:`500 Server Error`}),`\n`,_jsx(ResponseExample,{children:_jsx(CodeBlock,{filename:``,numberOfLines:`4`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`4`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"success\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`false`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Internal server error.\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})}),`\n`,_jsx(Heading,{level:`2`,id:`error-codes`,children:`Error codes`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Code`}),_jsx(_components.th,{children:`Description`}),_jsx(_components.th,{children:`HTTP Status`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`AGENT_NOT_FOUND`})}),_jsx(_components.td,{children:`Specified agent does not exist`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`404`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`INVALID_TOKEN`})}),_jsx(_components.td,{children:`Authentication token is invalid or missing`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`401`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`UNAUTHORIZED`})}),_jsx(_components.td,{children:`User does not have permission to create training for this agent`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`403`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`VALIDATION_ERROR`})}),_jsx(_components.td,{children:`Request data validation failed`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`422`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`SERVER_ERROR`})}),_jsx(_components.td,{children:`Internal server error occurred`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`500`})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`important-notes`,children:`Important notes`}),`\n`,_jsx(Info,{children:_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Agent status will be set to draft.`}),` After creating or updating training, the agent will be automatically set to “draft” status and will need to be published again to become active.`]})}),`\n`,_jsx(Info,{children:_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Training takes effect immediately.`}),` Once created, the training instructions are immediately available to the agent for learning and improving responses.`]})}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Character limits.`}),` The subject field has a maximum of 255 characters. Instructions can be much longer but should be clear and concise for best results.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`related-endpoints`,children:`Related endpoints`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`List Trainings`}),`: `,_jsx(_components.code,{children:`GET /api/v1/agents/{agent_id}/trainings`})]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Delete Training`}),`: `,_jsx(_components.code,{children:`DELETE /api/v1/agents/{agent_id}/trainings/{training_id}`})]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Get Agent`}),`: `,_jsx(_components.code,{children:`GET /api/v1/agents/{agent_id}`})]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Publish Agent`}),`: `,_jsx(_components.code,{children:`POST /api/v1/agents/{agent_id}/publish`})]}),`\n`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Create/Update Training","description":"Create new training data or update existing training for a voice agent","api":"POST /api/v1/agents/{agent_id}/trainings","href":"/en/api-reference/endpoints/create-training"}}}},"mdxExtracts":{"tableOfContents":[{"title":"Create/Update Training","slug":"create/update-training","depth":1,"children":[]},{"title":"Endpoint","slug":"endpoint","depth":2,"children":[]},{"title":"Path parameters","slug":"path-parameters","depth":2,"children":[]},{"title":"Request headers","slug":"request-headers","depth":2,"children":[]},{"title":"Request body","slug":"request-body","depth":2,"children":[]},{"title":"Example requests","slug":"example-requests","depth":2,"children":[]},{"title":"Response","slug":"response","depth":2,"children":[{"title":"Success Response (200 OK)","slug":"success-response-200-ok","depth":3,"children":[]},{"title":"Response fields","slug":"response-fields","depth":3,"children":[]}]},{"title":"Error responses","slug":"error-responses","depth":2,"children":[{"title":"Validation Error (422)","slug":"validation-error-422","depth":3,"children":[]},{"title":"404 Not Found","slug":"404-not-found","depth":3,"children":[]},{"title":"401 Unauthorized","slug":"401-unauthorized","depth":3,"children":[]},{"title":"403 Forbidden","slug":"403-forbidden","depth":3,"children":[]},{"title":"500 Server Error","slug":"500-server-error","depth":3,"children":[]}]},{"title":"Error codes","slug":"error-codes","depth":2,"children":[]},{"title":"Important notes","slug":"important-notes","depth":2,"children":[]},{"title":"Related endpoints","slug":"related-endpoints","depth":2,"children":[]}],"codeExamples":{"request":{"type":"RequestExample","children":[{"filename":"","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"shellscript\">\u003ccode language=\"shellscript\" numberOfLines=\"10\">\u003cspan class=\"line\">\u003cspan style=\"color:#6E7781;--shiki-dark:#6A9955\"># Request 1: Create new training with active status\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#953800;--shiki-dark:#DCDCAA\">curl\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -X\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> POST\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"https://app.talkover.ai/api/v1/agents/550e8400-e29b-41d4-a716-446655440000/trainings\"\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -H\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"Authorization: Bearer talq_your_environment_token_here\"\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -H\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"Content-Type: application/json\"\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -d\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> '{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"node_id\": \"training-node-123\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"subject\": \"Product Knowledge\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"instructions\": \"Learn about our product features, pricing, and common use cases. Focus on the main benefits and how to address common customer questions. Always provide accurate information about our services.\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"current_status\": \"active\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> }'\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"javascript\">\u003ccode language=\"javascript\" numberOfLines=\"17\">\u003cspan class=\"line\">\u003cspan style=\"color:#6E7781;--shiki-dark:#6A9955\">// Request 1: Create new training with active status\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\">const\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#4FC1FF\"> response\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> =\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\"> await\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\"> fetch\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">'https://app.talkover.ai/api/v1/agents/550e8400-e29b-41d4-a716-446655440000/trainings'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> method:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'POST'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> headers:\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'Authorization'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'Bearer talq_your_environment_token_here'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'Content-Type'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'application/json'\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> body:\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#4FC1FF\"> JSON\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\">stringify\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">({\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> node_id:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"training-node-123\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> subject:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"Product Knowledge\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> instructions:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"Learn about our product features, pricing, and common use cases. Focus on the main benefits and how to address common customer questions. Always provide accurate information about our services.\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> current_status:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"active\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> })\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">});\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\">const\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#4FC1FF\"> result\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> =\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\"> await\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> response\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\">json\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">();\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">console\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\">log\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">result\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">);\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"}],"attributes":[]},"response":{"type":"ResponseExample","children":[{"filename":"","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"json\">\u003ccode language=\"json\" numberOfLines=\"12\">\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"success\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">true\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"message\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Agent training updated successfully\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"data\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"training-uuid-1\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"subject\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Product Knowledge\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"instructions\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Learn about our product features, pricing, and common use cases. Focus on the main benefits and how to address common customer questions. Always provide accurate information about our services.\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"current_status\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"active\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"created_at\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"2024-01-15T10:30:00Z\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"updated_at\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"2024-01-15T12:00:00Z\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"}],"attributes":[]}},"endpoint":{"title":"Create/Update Training","path":"/api/v1/agents/{agent_id}/trainings","method":"post","request":{"security":[],"parameters":{"query":{},"header":{"Authorization":{"schema":[{"type":"string","description":"Bearer token for authentication. Format: `Bearer talq_your_environment_token_here`","required":true}]},"Content-Type":{"schema":[{"type":"string","description":"Must be set to `application/json`","required":true}]}},"cookie":{},"path":{"agent":{"schema":[{"type":"string","description":"The unique identifier of the voice agent.","required":true}]}}},"body":{"application/json":{"schemaArray":[{"type":"object","properties":{"node_id":[{"type":"string","description":"Training node ID for workflow integration"}],"subject":[{"type":"string","description":"Training subject or title (max 255 characters)","required":true}],"instructions":[{"type":"string","description":"Detailed training instructions that the agent will learn from","required":true}],"current_status":[{"type":"string","description":"Training status. Options: `active` , `inactive` . Default: `active`"}]}}],"examples":{"example":{"value":{"node_id":"\u003cstring>","subject":"\u003cstring>","instructions":"\u003cstring>","current_status":"\u003cstring>"}}}}}},"response":{"200":{"application/json":{"schemaArray":[{"type":"object","properties":{"success":[{"type":"boolean","description":"Indicates if the operation was successful.","required":true}],"message":[{"type":"string","description":"Success message confirming the training was created or updated.","required":true}],"data":[{"type":"object","properties":{"id":[{"type":"string","description":"Unique identifier for the training.","required":true}],"subject":[{"type":"string","description":"The subject or title of the training.","required":true}],"instructions":[{"type":"string","description":"Detailed instructions for the training that the agent will learn from.","required":true}],"current_status":[{"type":"string","description":"Current status of the training. Options: `active` , `inactive` .","required":true}],"created_at":[{"type":"string","description":"ISO 8601 timestamp when the training was created.","required":true}],"updated_at":[{"type":"string","description":"ISO 8601 timestamp when the training was last updated.","required":true}]},"description":"The created or updated training object.","required":true}]}}],"examples":{"example":{"value":{"success":true,"message":"\u003cstring>","data":{"id":"\u003cstring>","subject":"\u003cstring>","instructions":"\u003cstring>","current_status":"\u003cstring>","created_at":"\u003cstring>","updated_at":"\u003cstring>"}}}}}}},"deprecated":false}},"jsLinks":[],"subdomain":"talqove","siteName":"Talkover","title":"Create/Update Training - Talkover","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{"en":{"href":"/en/api-reference/endpoints/create-training","matchLevel":0},"pt-BR":{"href":"/pt-br/api-reference/endpoints/create-training","matchLevel":1}}},"lastModified":"2026-04-29T17:15:31.278Z","originalFileLocation":"en/api-reference/endpoints/create-training.mdx","locale":"en"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Create new training data or update existing training for a voice agent\">\u003cmeta data-mint-head name=\"application-name\" content=\"Talkover\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/talqove/PKfJxicXqCCm-q-y/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/talqove/PKfJxicXqCCm-q-y/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/talqove/PKfJxicXqCCm-q-y/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/talqove/PKfJxicXqCCm-q-y/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/talqove/PKfJxicXqCCm-q-y/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/talqove/PKfJxicXqCCm-q-y/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/talqove/PKfJxicXqCCm-q-y/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/talqove/PKfJxicXqCCm-q-y/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/talqove/PKfJxicXqCCm-q-y/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Create/Update Training - Talkover\">\u003cmeta data-mint-head property=\"og:description\" content=\"Create new training data or update existing training for a voice agent\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Talkover\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.talkover.ai/en/api-reference/endpoints/create-training\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://talqove.mintlify.site/_mintlify/api/og/v2?division=Trainings\u0026amp;title=Create%2FUpdate+Training\u0026amp;description=Create+new+training+data+or+update+existing+training+for+a+voice+agent\u0026amp;theme=872a8f276c928ecd28f6fd4b\u0026amp;signature=7254067c6c4c6f47dcf159cace06a63264a0eafae2aa6eabd12a8781bc7d85ff\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Create/Update Training - Talkover\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Create new training data or update existing training for a voice agent\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://talqove.mintlify.site/_mintlify/api/og/v2?division=Trainings\u0026amp;title=Create%2FUpdate+Training\u0026amp;description=Create+new+training+data+or+update+existing+training+for+a+voice+agent\u0026amp;theme=872a8f276c928ecd28f6fd4b\u0026amp;signature=7254067c6c4c6f47dcf159cace06a63264a0eafae2aa6eabd12a8781bc7d85ff\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/talqove/PKfJxicXqCCm-q-y/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Talkover\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#155DFC\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.talkover.ai/en/api-reference/endpoints/create-training\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/en/api-reference/endpoints/create-training.md\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"en\" href=\"https://docs.talkover.ai/en/api-reference/endpoints/create-training\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"pt-BR\" href=\"https://docs.talkover.ai/pt-br/api-reference/endpoints/create-training\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"x-default\" href=\"https://docs.talkover.ai/en/api-reference/endpoints/create-training\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.talkover.ai/#organization\",\"name\":\"Talkover\",\"url\":\"https://docs.talkover.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/talqove/5migkN6-Hty9RJZw/images/logo.svg?fit=max\u0026auto=format\u0026n=5migkN6-Hty9RJZw\u0026q=85\u0026s=b3e6bead068f900e1a50ec54b1d813f2\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.talkover.ai#website\",\"name\":\"Talkover\",\"url\":\"https://docs.talkover.ai\",\"publisher\":{\"@id\":\"https://docs.talkover.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.talkover.ai/en/api-reference/endpoints/create-training#webpage\",\"url\":\"https://docs.talkover.ai/en/api-reference/endpoints/create-training\",\"name\":\"Create/Update Training\",\"description\":\"Create new training data or update existing training for a voice agent\",\"dateModified\":\"2026-04-29T17:15:31.278Z\",\"isPartOf\":{\"@id\":\"https://docs.talkover.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.talkover.ai/en/api-reference/endpoints/create-training#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.talkover.ai/en/api-reference/endpoints/create-training#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"API Reference\",\"item\":\"https://docs.talkover.ai/en/api-reference/introduction\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Setup Agents\",\"item\":\"https://docs.talkover.ai/en/api-reference/endpoints/list-agents\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Trainings\",\"item\":\"https://docs.talkover.ai/en/api-reference/endpoints/list-trainings\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Create/Update Training\",\"item\":\"https://docs.talkover.ai/en/api-reference/endpoints/create-training\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.talkover.ai/en/api-reference/endpoints/create-training#apireference\",\"headline\":\"Create/Update Training\",\"name\":\"Create/Update Training\",\"description\":\"Create new training data or update existing training for a voice agent\",\"url\":\"https://docs.talkover.ai/en/api-reference/endpoints/create-training\",\"mainEntityOfPage\":{\"@id\":\"https://docs.talkover.ai/en/api-reference/endpoints/create-training#webpage\"},\"dateModified\":\"2026-04-29T17:15:31.278Z\",\"publisher\":{\"@id\":\"https://docs.talkover.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.talkover.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Talkover\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Talkover\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/en/api-reference/endpoints/create-training.md","siteName":"Talkover","nav":{"global":{"anchors":[]},"languages":[{"language":"en","default":true,"groups":[{"group":"Get Started","pages":[{"title":"Talkover API","href":"/en/introduction"},{"title":"Quick start Guide","href":"/en/getting-started/quickstart"},{"title":"Authentication","href":"/en/getting-started/authentication"},{"title":"Make Your First Call","href":"/en/getting-started/first-call"}]},{"group":"Concepts","pages":[{"title":"Voice Agents","href":"/en/concepts/voice-agents"},{"title":"Call Flows","href":"/en/concepts/call-flows"}]},{"group":"API Reference","pages":[{"title":"API Reference","href":"/en/api-reference/introduction"},{"title":"Authentication","href":"/en/api-reference/authentication"},{"group":"Voice Templates \u0026 Phone Numbers","pages":[{"title":"List Voice Templates","api":"GET /api/v1/voice-templates","href":"/en/api-reference/endpoints/list-voice-templates"},{"title":"Generate Voice Template Demo","api":"GET /api/v1/voice-templates/{voice_template_id}/demo","href":"/en/api-reference/endpoints/generate-voice-demo"},{"title":"List Phone Numbers","api":"GET /api/v1/phone-numbers","href":"/en/api-reference/endpoints/list-phone-numbers"},{"title":"List Release Requests","api":"GET /api/v1/phone-numbers/release-requests","href":"/en/api-reference/endpoints/list-release-requests"},{"title":"Request Phone Number Release","api":"POST /api/v1/phone-numbers/{phone_number_id}/request-release","href":"/en/api-reference/endpoints/request-phone-release"},{"title":"Cancel Release Request","api":"DELETE /api/v1/phone-numbers/release-requests/{release_request_id}","href":"/en/api-reference/endpoints/cancel-release-request"}]},{"group":"Setup Agents","pages":[{"group":"Agents","pages":[{"title":"List Agents","api":"GET /api/v1/agents","href":"/en/api-reference/endpoints/list-agents"},{"title":"Create Agent","api":"POST /api/v1/agents","href":"/en/api-reference/endpoints/create-agent"},{"title":"Get Agent","api":"GET /api/v1/agents/{agent_id}","href":"/en/api-reference/endpoints/get-agent"},{"title":"Update Agent Knowledge","api":"PUT /api/v1/agents/{agent_id}/knowledge","href":"/en/api-reference/endpoints/update-agent-knowledge"},{"title":"Update Agent Voice","api":"PUT /api/v1/agents/{agent_id}/voice","href":"/en/api-reference/endpoints/update-agent-voice"},{"title":"Update Agent Calling Settings","api":"PUT /api/v1/agents/{agent_id}/calling","href":"/en/api-reference/endpoints/update-agent-calling"},{"title":"Publish Agent","api":"POST /api/v1/agents/{agent_id}/publish","href":"/en/api-reference/endpoints/publish-agent"},{"title":"Unpublish Agent","api":"POST /api/v1/agents/{agent_id}/unpublish","href":"/en/api-reference/endpoints/unpublish-agent"},{"title":"Delete Agent","api":"DELETE /api/v1/agents/{agent_id}","href":"/en/api-reference/endpoints/delete-agent"},{"title":"Update Advanced Settings","api":"PATCH /api/v1/agents/{agent_id}/advanced-settings","href":"/en/api-reference/endpoints/update-advanced-settings"},{"title":"Check Optimized Costs Eligibility","api":"GET /api/v1/agents/{agent_id}/optimized-costs-eligibility","href":"/en/api-reference/endpoints/check-optimized-costs-eligibility"},{"title":"Get Agent Pricing","api":"GET /api/v1/agents/{agent_id}/pricing","href":"/en/api-reference/endpoints/get-agent-pricing"},{"title":"Get Agent Pricing Summary","api":"GET /api/v1/agents/{agent_id}/pricing/summary","href":"/en/api-reference/endpoints/get-agent-pricing-summary"}]},{"group":"Trainings","pages":[{"title":"List Trainings","description":"Retrieve a list of training data for a specific voice agent","api":"GET /api/v1/agents/{agent_id}/trainings","href":"/en/api-reference/endpoints/list-trainings"},{"title":"Create/Update Training","api":"POST /api/v1/agents/{agent_id}/trainings","href":"/en/api-reference/endpoints/create-training"},{"title":"Delete Training","description":"Delete a specific training data entry for a voice agent","api":"DELETE /api/v1/agents/{agent_id}/trainings/{training_id}","href":"/en/api-reference/endpoints/delete-training"}]},{"group":"Actions","pages":[{"title":"List Actions","api":"GET /api/v1/agents/{agent_id}/actions","href":"/en/api-reference/endpoints/list-actions"},{"title":"Create/Update Action","api":"POST /api/v1/agents/{agent_id}/actions","href":"/en/api-reference/endpoints/create-action"},{"title":"Delete Action","api":"DELETE /api/v1/agents/{agent_id}/actions/{action_id}","href":"/en/api-reference/endpoints/delete-action"},{"title":"List Action Integrations","api":"GET /api/v1/action-integrations","href":"/en/api-reference/endpoints/list-action-integrations"}]}]},{"group":"Conversation Flow","pages":[{"title":"Get Agent Flow","api":"GET /api/v1/agents/{agent_id}/flow","href":"/en/api-reference/endpoints/get-agent-flow"},{"title":"Update Agent Flow","api":"PUT /api/v1/agents/{agent_id}/flow","href":"/en/api-reference/endpoints/update-agent-flow"},{"title":"Validate Agent Flow","api":"POST /api/v1/agents/{agent_id}/flow/validate","href":"/en/api-reference/endpoints/validate-agent-flow"},{"title":"List Agent Flow Versions","api":"GET /api/v1/agents/{agent_id}/flow/versions","href":"/en/api-reference/endpoints/list-agent-flow-versions"}]},{"group":"Make a Call","pages":[{"title":"Make a Call","api":"POST /api/v1/agents/{agent_id}/call","href":"/en/api-reference/endpoints/make-call"},{"title":"Make Campaign Call","api":"POST /api/v1/campaigns/{campaign_id}/call","href":"/en/api-reference/endpoints/make-campaign-call"},{"title":"End Call","api":"POST /api/v1/agents/{agent_id}/end-call","href":"/en/api-reference/endpoints/end-call"},{"title":"Get Active Call by Phone","api":"GET /api/v1/agents/{agent_id}/active-call/{phone}","href":"/en/api-reference/endpoints/get-active-call"}]},{"group":"Calls \u0026 Campaigns","pages":[{"title":"List calls","api":"GET /api/v1/calls","href":"/en/api-reference/endpoints/list-calls"},{"title":"Get Agent Calls","api":"GET /api/v1/agents/{agent_id}/calls","href":"/en/api-reference/endpoints/get-agent-calls"},{"title":"Get call insight","api":"GET /api/v1/calls/{call_id}/insight","href":"/en/api-reference/endpoints/get-call-insight"},{"title":"List Campaigns","api":"GET /api/v1/campaigns","href":"/en/api-reference/endpoints/list-campaigns"},{"title":"Create Campaign","api":"POST /api/v1/campaigns","href":"/en/api-reference/endpoints/create-campaign"},{"title":"Get Campaign","api":"GET /api/v1/campaigns/{campaign_id}","href":"/en/api-reference/endpoints/get-campaign"},{"title":"Update Campaign","api":"PUT /api/v1/campaigns/{campaign_id}","href":"/en/api-reference/endpoints/update-campaign"},{"title":"Update Campaign Status","api":"PATCH /api/v1/campaigns/{campaign_id}/status","href":"/en/api-reference/endpoints/update-campaign-status"},{"title":"Delete Campaign","api":"DELETE /api/v1/campaigns/{campaign_id}","href":"/en/api-reference/endpoints/delete-campaign"},{"title":"Clear campaign","api":"POST /api/v1/campaigns/{campaign_id}/clear","href":"/en/api-reference/endpoints/clear-campaign"},{"title":"Upload contact list","api":"POST /api/v1/campaigns/{campaign_id}/files","href":"/en/api-reference/endpoints/upload-campaign-list"},{"title":"Get list import progress","api":"GET /api/v1/campaigns/{campaign_id}/files/{file_data_id}/progress","href":"/en/api-reference/endpoints/get-campaign-list-progress"}]},{"group":"Campaign Integrations","pages":[{"group":"Campaign Webhooks","pages":[{"title":"List Campaign Webhooks","api":"GET /api/v1/campaigns/{campaign_id}/webhooks","href":"/en/api-reference/endpoints/list-campaign-webhooks"},{"title":"Create Campaign Webhook","api":"POST /api/v1/campaigns/{campaign_id}/webhooks","href":"/en/api-reference/endpoints/create-campaign-webhook"},{"title":"Get Campaign Webhook","api":"GET /api/v1/campaigns/{campaign_id}/webhooks/{webhook_id}","href":"/en/api-reference/endpoints/get-campaign-webhook"},{"title":"Update Campaign Webhook","api":"PUT /api/v1/campaigns/{campaign_id}/webhooks/{webhook_id}","href":"/en/api-reference/endpoints/update-campaign-webhook"},{"title":"Delete Campaign Webhook","api":"DELETE /api/v1/campaigns/{campaign_id}/webhooks/{webhook_id}","href":"/en/api-reference/endpoints/delete-campaign-webhook"},{"title":"Toggle Campaign Webhook","api":"PATCH /api/v1/campaigns/{campaign_id}/webhooks/{webhook_id}/toggle","href":"/en/api-reference/endpoints/toggle-campaign-webhook"},{"title":"Test Campaign Webhook","api":"POST /api/v1/campaigns/{campaign_id}/webhooks/{webhook_id}/test","href":"/en/api-reference/endpoints/test-campaign-webhook"},{"title":"List Campaign Webhook Logs","api":"GET /api/v1/campaigns/{campaign_id}/webhooks/{webhook_id}/logs","href":"/en/api-reference/endpoints/list-campaign-webhook-logs"},{"title":"Retry Campaign Webhook Delivery","api":"POST /api/v1/campaigns/{campaign_id}/webhooks/{webhook_id}/logs/{log_id}/retry","href":"/en/api-reference/endpoints/retry-campaign-webhook-log"}]},{"group":"Campaign SFTP","pages":[{"title":"Get Campaign SFTP Config","api":"GET /api/v1/campaigns/{campaign_id}/sftp","href":"/en/api-reference/endpoints/get-campaign-sftp"},{"title":"Create Campaign SFTP Config","api":"POST /api/v1/campaigns/{campaign_id}/sftp","href":"/en/api-reference/endpoints/create-campaign-sftp"},{"title":"Update Campaign SFTP Config","api":"PUT /api/v1/campaigns/{campaign_id}/sftp","href":"/en/api-reference/endpoints/update-campaign-sftp"},{"title":"Test Campaign SFTP Connection","api":"POST /api/v1/campaigns/{campaign_id}/sftp/test-connection","href":"/en/api-reference/endpoints/test-campaign-sftp-connection"},{"title":"Trigger SFTP Import","api":"POST /api/v1/campaigns/{campaign_id}/sftp/trigger-import","href":"/en/api-reference/endpoints/trigger-campaign-sftp-import"},{"title":"Trigger SFTP Export","api":"POST /api/v1/campaigns/{campaign_id}/sftp/trigger-export","href":"/en/api-reference/endpoints/trigger-campaign-sftp-export"},{"title":"List Campaign SFTP Logs","api":"GET /api/v1/campaigns/{campaign_id}/sftp/logs","href":"/en/api-reference/endpoints/list-campaign-sftp-logs"}]}]},{"group":"Callback Agents","pages":[{"title":"List Callback Agents","api":"GET /api/v1/callback-agents","href":"/en/api-reference/endpoints/list-callback-agents"},{"title":"List Callback Source Agents","api":"GET /api/v1/callback-agents/source-agents","href":"/en/api-reference/endpoints/list-callback-source-agents"},{"title":"Get Callback Stats","api":"GET /api/v1/callback-agents/stats","href":"/en/api-reference/endpoints/get-callback-stats"},{"title":"Get Callback Agent","api":"GET /api/v1/callback-agents/{agent_id}","href":"/en/api-reference/endpoints/get-callback-agent"},{"title":"Check Callback Constraints","api":"POST /api/v1/callback-agents/{agent_id}/check-constraints","href":"/en/api-reference/endpoints/check-callback-constraints"},{"title":"Set Agent as Callback","api":"POST /api/v1/agents/{agent_id}/callback","href":"/en/api-reference/endpoints/set-agent-as-callback"},{"title":"Update Callback Sources","api":"PUT /api/v1/agents/{agent_id}/callback","href":"/en/api-reference/endpoints/update-callback-sources"},{"title":"Remove Callback Role","api":"DELETE /api/v1/agents/{agent_id}/callback","href":"/en/api-reference/endpoints/remove-callback-role"}]},{"group":"Calendars","pages":[{"group":"Calendars","pages":[{"title":"List Calendars","api":"GET /api/v1/calendars","href":"/en/api-reference/endpoints/list-calendars"},{"title":"Create Calendar","api":"POST /api/v1/calendars","href":"/en/api-reference/endpoints/create-calendar"},{"title":"Get Calendar","api":"GET /api/v1/calendars/{calendar_id}","href":"/en/api-reference/endpoints/get-calendar"},{"title":"Update Calendar","api":"PUT /api/v1/calendars/{calendar_id}","href":"/en/api-reference/endpoints/update-calendar"},{"title":"Delete Calendar","api":"DELETE /api/v1/calendars/{calendar_id}","href":"/en/api-reference/endpoints/delete-calendar"},{"title":"Get Events (Batch)","api":"GET /api/v1/calendars/events","href":"/en/api-reference/endpoints/get-calendar-events-batch"},{"title":"Trigger Calendars Sync","api":"POST /api/v1/calendars/sync","href":"/en/api-reference/endpoints/trigger-calendars-sync"},{"title":"Get Calendars Sync Status","api":"GET /api/v1/calendars/sync-status","href":"/en/api-reference/endpoints/get-calendars-sync-status"}]},{"group":"Members","pages":[{"title":"List Calendar Members","api":"GET /api/v1/calendars/{calendar_id}/members","href":"/en/api-reference/endpoints/list-calendar-members"},{"title":"Add Calendar Member","api":"POST /api/v1/calendars/{calendar_id}/members","href":"/en/api-reference/endpoints/add-calendar-member"},{"title":"Update Calendar Member","api":"PUT /api/v1/calendars/{calendar_id}/members/{member_id}","href":"/en/api-reference/endpoints/update-calendar-member"},{"title":"Remove Calendar Member","api":"DELETE /api/v1/calendars/{calendar_id}/members/{member_id}","href":"/en/api-reference/endpoints/remove-calendar-member"}]},{"group":"Events","pages":[{"title":"List Calendar Events","api":"GET /api/v1/calendars/{calendar_id}/events","href":"/en/api-reference/endpoints/list-calendar-events"},{"title":"Create Calendar Event","api":"POST /api/v1/calendars/{calendar_id}/events","href":"/en/api-reference/endpoints/create-calendar-event"},{"title":"Get Calendar Event","api":"GET /api/v1/calendars/{calendar_id}/events/{event_id}","href":"/en/api-reference/endpoints/get-calendar-event"},{"title":"Update Calendar Event","api":"PUT /api/v1/calendars/{calendar_id}/events/{event_id}","href":"/en/api-reference/endpoints/update-calendar-event"},{"title":"Delete Calendar Event","api":"DELETE /api/v1/calendars/{calendar_id}/events/{event_id}","href":"/en/api-reference/endpoints/delete-calendar-event"},{"title":"Create Event Meeting Link","api":"POST /api/v1/calendars/{calendar_id}/events/{event_id}/meeting","href":"/en/api-reference/endpoints/create-event-meeting"},{"title":"Add Event Attendee","api":"POST /api/v1/calendars/{calendar_id}/events/{event_id}/attendees","href":"/en/api-reference/endpoints/add-event-attendee"},{"title":"Remove Event Attendee","api":"DELETE /api/v1/calendars/{calendar_id}/events/{event_id}/attendees/{attendee_id}","href":"/en/api-reference/endpoints/remove-event-attendee"}]},{"group":"Availability","pages":[{"title":"List Availability Rules","api":"GET /api/v1/calendars/{calendar_id}/availability-rules","href":"/en/api-reference/endpoints/list-availability-rules"},{"title":"Create Availability Rule","api":"POST /api/v1/calendars/{calendar_id}/availability-rules","href":"/en/api-reference/endpoints/create-availability-rule"},{"title":"Update Availability Rule","api":"PUT /api/v1/calendars/{calendar_id}/availability-rules/{rule_id}","href":"/en/api-reference/endpoints/update-availability-rule"},{"title":"Delete Availability Rule","api":"DELETE /api/v1/calendars/{calendar_id}/availability-rules/{rule_id}","href":"/en/api-reference/endpoints/delete-availability-rule"},{"title":"Query Availability","api":"GET /api/v1/calendars/{calendar_id}/availability","href":"/en/api-reference/endpoints/query-availability"}]},{"group":"Provider Connections","pages":[{"title":"List Provider Connections","api":"GET /api/v1/calendars/{calendar_id}/providers","href":"/en/api-reference/endpoints/list-provider-connections"},{"title":"Create Provider Connection","api":"POST /api/v1/calendars/{calendar_id}/providers","href":"/en/api-reference/endpoints/create-provider-connection"},{"title":"Disconnect Provider","api":"DELETE /api/v1/calendars/{calendar_id}/providers/{provider_id}","href":"/en/api-reference/endpoints/disconnect-provider"},{"title":"Trigger Provider Sync","api":"POST /api/v1/calendars/{calendar_id}/providers/{provider_id}/sync","href":"/en/api-reference/endpoints/trigger-provider-sync"}]}]},{"group":"Custom SIP Trunks","pages":[{"title":"List SIP Trunks","api":"GET /api/v1/sip-trunks","href":"/en/api-reference/endpoints/list-sip-trunks"},{"title":"Create SIP Trunk","api":"POST /api/v1/sip-trunks","href":"/en/api-reference/endpoints/create-sip-trunk"},{"title":"Get SIP Trunk","api":"GET /api/v1/sip-trunks/{trunk_id}","href":"/en/api-reference/endpoints/get-sip-trunk"},{"title":"Update SIP Trunk","api":"PUT /api/v1/sip-trunks/{trunk_id}","href":"/en/api-reference/endpoints/update-sip-trunk"},{"title":"Delete SIP Trunk","api":"DELETE /api/v1/sip-trunks/{trunk_id}","href":"/en/api-reference/endpoints/delete-sip-trunk"},{"title":"Verify SIP Trunk","api":"POST /api/v1/sip-trunks/{trunk_id}/verify","href":"/en/api-reference/endpoints/verify-sip-trunk"},{"title":"Get SIP Trunk Health","api":"GET /api/v1/sip-trunks/{trunk_id}/health","href":"/en/api-reference/endpoints/get-sip-trunk-health"},{"title":"List SIP Trunk DIDs","api":"GET /api/v1/sip-trunks/{trunk_id}/dids","href":"/en/api-reference/endpoints/list-sip-trunk-dids"},{"title":"Create SIP Trunk DID","api":"POST /api/v1/sip-trunks/{trunk_id}/dids","href":"/en/api-reference/endpoints/create-sip-trunk-did"},{"title":"Delete SIP Trunk DID","api":"DELETE /api/v1/sip-trunks/{trunk_id}/dids/{phone_number_id}","href":"/en/api-reference/endpoints/delete-sip-trunk-did"}]},{"group":"Agent Webhooks","pages":[{"title":"List Agent Webhooks","api":"GET /api/v1/agents/{agent_id}/webhooks","href":"/en/api-reference/endpoints/list-agent-webhooks"},{"title":"Create Webhook","api":"POST /api/v1/agents/{agent_id}/webhooks","href":"/en/api-reference/endpoints/create-webhook"},{"title":"Get Webhook Details","api":"GET /api/v1/agents/{agent_id}/webhooks/{webhook_id}","href":"/en/api-reference/endpoints/get-webhook-details"},{"title":"Update Webhook","api":"PUT /api/v1/agents/{agent_id}/webhooks/{webhook_id}","href":"/en/api-reference/endpoints/update-webhook"},{"title":"Delete Webhook","api":"DELETE /api/v1/agents/{agent_id}/webhooks/{webhook_id}","href":"/en/api-reference/endpoints/delete-webhook"},{"title":"Toggle Webhook Status","api":"PATCH /api/v1/agents/{agent_id}/webhooks/{webhook_id}/toggle","href":"/en/api-reference/endpoints/toggle-webhook-status"},{"title":"Test Webhook","api":"POST /api/v1/agents/{agent_id}/webhooks/{webhook_id}/test","href":"/en/api-reference/endpoints/test-webhook"},{"title":"List Webhook Delivery Logs","api":"GET /api/v1/agents/{agent_id}/webhooks/{webhook_id}/logs","href":"/en/api-reference/endpoints/list-webhook-logs"},{"title":"Retry Webhook Delivery","api":"POST /api/v1/agents/{agent_id}/webhooks/{webhook_id}/logs/{log_id}/retry","href":"/en/api-reference/endpoints/retry-webhook-log"}]},{"group":"Billing \u0026 Auto Topup","pages":[{"title":"Get Auto Topup Settings","api":"GET /api/v1/auto-topup/settings","href":"/en/api-reference/endpoints/get-auto-topup-settings"},{"title":"Update Auto Topup Settings","api":"PUT /api/v1/auto-topup/settings","href":"/en/api-reference/endpoints/update-auto-topup-settings"},{"title":"Test Auto Topup","api":"POST /api/v1/auto-topup/test","href":"/en/api-reference/endpoints/test-auto-topup"},{"title":"Disable Auto Topup","api":"POST /api/v1/auto-topup/disable","href":"/en/api-reference/endpoints/disable-auto-topup"},{"title":"Get Auto Topup History","api":"GET /api/v1/auto-topup/history","href":"/en/api-reference/endpoints/get-auto-topup-history"},{"title":"List Payment Methods","api":"GET /api/v1/auto-topup/payment-methods","href":"/en/api-reference/endpoints/list-auto-topup-payment-methods"}]},{"group":"Account API","pages":[{"title":"Get Current User","api":"GET /api/user","href":"/en/api-reference/endpoints/get-current-user"},{"title":"List User API Tokens","api":"GET /api/v1/user/api-tokens","href":"/en/api-reference/endpoints/list-user-api-tokens"},{"title":"Create User API Token","api":"POST /api/v1/user/api-tokens","href":"/en/api-reference/endpoints/create-user-api-token"},{"title":"Delete User API Token","api":"DELETE /api/v1/user/api-tokens/{token_id}","href":"/en/api-reference/endpoints/delete-user-api-token"},{"title":"Purchase Credits","api":"POST /api/v1/credits/purchase","href":"/en/api-reference/endpoints/purchase-credits"},{"title":"Get Credits Balance","api":"GET /api/v1/credits/balance","href":"/en/api-reference/endpoints/get-credits-balance"},{"title":"Health Check","api":"GET /api/v1/health","href":"/en/api-reference/endpoints/health"}]}]},{"group":"For debt collection","pages":[{"title":"Debt collection portfolio","href":"/en/api-reference/portfolio/overview"},{"title":"Send portfolio","api":"POST /api/v1/portfolio/debts","href":"/en/api-reference/portfolio/send-debts"},{"title":"Get contract","api":"GET /api/v1/portfolio/debts/{external_debt_id}","href":"/en/api-reference/portfolio/get-debt"},{"title":"Record payment","api":"POST /api/v1/portfolio/debts/{external_debt_id}/payments","href":"/en/api-reference/portfolio/record-payment"},{"title":"Record return","api":"POST /api/v1/portfolio/debts/{external_debt_id}/return","href":"/en/api-reference/portfolio/record-return"},{"title":"Collection cadences","href":"/en/api-reference/portfolio/cadences"},{"title":"Cadence draft","api":"PUT /api/v1/cadences/{id}/draft","href":"/en/api-reference/portfolio/cadence-draft"},{"title":"Publish and versions","api":"POST /api/v1/cadences/{id}/publish","href":"/en/api-reference/portfolio/cadence-lifecycle"},{"title":"General rules and channels","api":"PUT /api/v1/cadences/settings","href":"/en/api-reference/portfolio/cadence-settings"}]},{"group":"Guides","pages":[{"title":"Voice Agent Setup","href":"/en/guides/voice-agent-setup"},{"title":"Call Flow Design","href":"/en/guides/call-flow-design"},{"title":"Voice Agent Setup","href":"/en/guides/integration-examples"},{"title":"Best Practices","href":"/en/guides/best-practices"}]}]},{"language":"pt-BR","pages":[{"title":"pt-BR","href":"/pt-br/api-reference/endpoints/create-training"}]}]},"basePath":"","title":"Create/Update Training - Talkover","deploymentId":"dpl_Ab6nteg7kvyK8iL73naC2n7fmsWK","buildId":"dpl_Ab6nteg7kvyK8iL73naC2n7fmsWK","dynamics":["c2aa737661","2b790eda92","b0f84f53ff"],"chunks":["OpenApiReferenceProvider-C6Z1vAfX.js","snippetPresets-Bjd6OXRM.js","utils-QL6OhUyF.js","style-to-object-BY3JEAdk.js","utils-Dsq-HLeF.js","v4-DIgz8zy6.js","addTypeLabelsToSchema-CEYfmkoV.js","conditional-requirements-CFM0id0Q.js","cloneDeep-CHgPjMM8.js","_Uint8Array-IXRJ_ueo.js","isObject-FP1Yky1u.js","ApiExamples-pq4ns9YA.js","usePlaygroundInputsStore-D-gnigmo.js","shallow-DIfWGPrf.js","isEqual-DDFuixlH.js","CodeSnippets-8g5rilZj.js","CodeSnippet-C_J7pouP.js","use-playground-group-access-bkOyfPao.js","Page-B_smDgrp.js","api-description-markdown-DtcP2u3s.js","DynamicMarkdown-DOefW1_8.js","SectionHeading-Cg4lfWZw.js","MethodPill-BnqygvYm.js","getPastedJson-BGXYEZ3P.js","Check2Icon-BBeO3TOS.js","axios-CsQoIw0U.js"]}