curl -X POST https://client-backend.oktivo.com/api/v1/crm/tickets \ -H "Authorization: Bearer okt_YOUR_API_TOKEN" \ -H "Content-Type: application/json" \ -d '{ "email": "[email protected]", "subject": "Refund not received", "description": "I returned the order 10 days ago." }'
{ "success": false, "message": "A phone or email is required to open a ticket", "code": "BAD_REQUEST", "requestId": "3f1c2c0e-6a41-4e0b-9f0e-1f2d6f1b8a77", "errorInfo": { "code": "BAD_REQUEST", "message": "A phone or email is required to open a ticket" }}
Tickets
Open a Ticket
Open a support ticket, or add to the requester’s open ticket.
curl -X POST https://client-backend.oktivo.com/api/v1/crm/tickets \ -H "Authorization: Bearer okt_YOUR_API_TOKEN" \ -H "Content-Type: application/json" \ -d '{ "email": "[email protected]", "subject": "Refund not received", "description": "I returned the order 10 days ago." }'
{ "success": false, "message": "A phone or email is required to open a ticket", "code": "BAD_REQUEST", "requestId": "3f1c2c0e-6a41-4e0b-9f0e-1f2d6f1b8a77", "errorInfo": { "code": "BAD_REQUEST", "message": "A phone or email is required to open a ticket" }}
Create a support ticket from your own system. The requester is matched to a lead by phone or email. If the requester already has an open ticket, your message is added to it instead of opening a second one.
Request Body
string
Requester phone number, in any common format. It is normalized to E.164. At least one of phone or email is required.
string
Requester email. It is trimmed and lowercased.
string
Ticket subject. A subject or a description is required.
string
The ticket text. body is accepted as an alias.
string
Requester name.
string
Your own reference for this ticket.
Response
boolean
Indicates if the request was successful.
boolean
true when a new ticket was opened, false when the message was added to an existing one.
boolean
Whether the message was recognized as a duplicate.
object
Show data properties
string
The ticket ID.
string
Current ticket status.
string
api for tickets opened through this endpoint.
string | null
The matched lead, or null when the requester is not a lead.
curl -X POST https://client-backend.oktivo.com/api/v1/crm/tickets \ -H "Authorization: Bearer okt_YOUR_API_TOKEN" \ -H "Content-Type: application/json" \ -d '{ "email": "[email protected]", "subject": "Refund not received", "description": "I returned the order 10 days ago." }'
{ "success": false, "message": "A phone or email is required to open a ticket", "code": "BAD_REQUEST", "requestId": "3f1c2c0e-6a41-4e0b-9f0e-1f2d6f1b8a77", "errorInfo": { "code": "BAD_REQUEST", "message": "A phone or email is required to open a ticket" }}
This endpoint accepts an API Token (okt_...) or JWT. The ticket is always opened in the token owner’s account. Your plan must include the Tickets feature (the crm_api feature alone is not enough). It is limited to 120 requests/minute per account. A 201 means a new ticket was opened and a 200 means the message was added to an existing one.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Oktivo Voice Platform","colors":{"primary":"#6366F1","light":"#818CF8","dark":"#4F46E5"},"logo":{"light":"https://mintcdn.com/oktivo/aTS3se6MyNELWUTF/logo/light.svg?fit=max\u0026auto=format\u0026n=aTS3se6MyNELWUTF\u0026q=85\u0026s=2f82940c5cf5dcb5aff33678e3b6ff49","dark":"https://mintcdn.com/oktivo/aTS3se6MyNELWUTF/logo/dark.svg?fit=max\u0026auto=format\u0026n=aTS3se6MyNELWUTF\u0026q=85\u0026s=bb8901988070c7dc2c895759074f3136"},"favicon":"https://mintcdn.com/oktivo/Yqg3mpJSLcIThKa7/favicon.svg?fit=max\u0026auto=format\u0026n=Yqg3mpJSLcIThKa7\u0026q=85\u0026s=712137687ad55432f88bd070b5eca88e","api":{"mdx":{"auth":{"method":"bearer"},"server":"https://client-backend.oktivo.com"}},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"oktivo","hasAudioNarration":false,"actualSubdomain":"oktivo","customDomains":["docs.oktivo.com"],"gitSource":{"type":"github","owner":"op-oktivo","repo":"oktivo-voice-app","deployBranch":"main","contentDirectory":"documentation","isPrivate":true,"mountPath":"","label":"","_id":"6b10efd69ffae5051c4172ec"},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6b0ebddd22f8194a1eec842d","clientVersion":"0.0.4436","searchFilterCounts":[{"language":"default","tag":"Documentation","count":38},{"language":"default","tag":"API Reference","count":32},{"language":"default","tag":"API v2 (OpenAPI)","count":29},{"language":"default","tag":"API v1 (OpenAPI)","count":20},{"language":"default","tag":"Calls","count":18},{"language":"default","tag":"Webhooks","count":18},{"language":"default","tag":"Guides","count":17},{"language":"default","tag":"Dashboard guides","count":8},{"language":"default","tag":"Overview","count":7},{"language":"default","tag":"Events","count":7}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"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},{"name":"auth-vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"api-reference/tickets/create-ticket","slug":"/api-reference/tickets/create-ticket","pageMetadata":{"title":"Open a Ticket","api":"POST /api/v1/crm/tickets","description":"Open a support ticket, or add to the requester's open ticket.","href":"/api-reference/tickets/create-ticket"},"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: \"Open a support ticket, or add to the requester’s open ticket.\"\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`,p:`p`,strong:`strong`,..._provideComponents(),...props.components},{Expandable,Heading,Note,ParamField,ResponseField}=_components;if(!Expandable)_missingMdxReference(`Expandable`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`Create a support ticket from your own system. The requester is matched to a lead by phone or email. If the requester already has an open ticket, your message is added to it instead of opening a second one.`}),`\n`,_jsx(Heading,{level:`2`,id:`request-body`,children:`Request Body`}),`\n`,_jsx(ParamField,{body:`phone`,type:`string`,id:`param-phone`,children:_jsxs(_components.p,{children:[`Requester phone number, in any common format. It is normalized to E.164. At least one of `,_jsx(_components.code,{children:`phone`}),` or `,_jsx(_components.code,{children:`email`}),` is required.`]})}),`\n`,_jsx(ParamField,{body:`email`,type:`string`,id:`param-email`,children:_jsx(_components.p,{children:`Requester email. It is trimmed and lowercased.`})}),`\n`,_jsx(ParamField,{body:`subject`,type:`string`,id:`param-subject`,children:_jsxs(_components.p,{children:[`Ticket subject. A `,_jsx(_components.code,{children:`subject`}),` or a `,_jsx(_components.code,{children:`description`}),` is required.`]})}),`\n`,_jsx(ParamField,{body:`description`,type:`string`,id:`param-description`,children:_jsxs(_components.p,{children:[`The ticket text. `,_jsx(_components.code,{children:`body`}),` is accepted as an alias.`]})}),`\n`,_jsx(ParamField,{body:`name`,type:`string`,id:`param-name`,children:_jsx(_components.p,{children:`Requester name.`})}),`\n`,_jsx(ParamField,{body:`externalId`,type:`string`,id:`param-external-id`,children:_jsx(_components.p,{children:`Your own reference for this ticket.`})}),`\n`,_jsx(Heading,{level:`2`,id:`response`,children:`Response`}),`\n`,_jsx(ResponseField,{name:`success`,type:`boolean`,id:`param-success`,children:_jsx(_components.p,{children:`Indicates if the request was successful.`})}),`\n`,_jsx(ResponseField,{name:`created`,type:`boolean`,id:`param-created`,children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`true`}),` when a new ticket was opened, `,_jsx(_components.code,{children:`false`}),` when the message was added to an existing one.`]})}),`\n`,_jsx(ResponseField,{name:`duplicate`,type:`boolean`,id:`param-duplicate`,children:_jsx(_components.p,{children:`Whether the message was recognized as a duplicate.`})}),`\n`,_jsx(ResponseField,{name:`data`,type:`object`,id:`param-data`,children:_jsxs(Expandable,{title:`data properties`,children:[_jsx(ResponseField,{name:`ticketId`,type:`string`,id:`param-ticket-id`,children:_jsx(_components.p,{children:`The ticket ID.`})}),_jsx(ResponseField,{name:`status`,type:`string`,id:`param-status`,children:_jsx(_components.p,{children:`Current ticket status.`})}),_jsx(ResponseField,{name:`channel`,type:`string`,id:`param-channel`,children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`api`}),` for tickets opened through this endpoint.`]})}),_jsx(ResponseField,{name:`leadId`,type:`string | null`,id:`param-lead-id`,children:_jsxs(_components.p,{children:[`The matched lead, or `,_jsx(_components.code,{children:`null`}),` when the requester is not a lead.`]})})]})}),`\n`,`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[`This endpoint accepts an `,_jsx(_components.strong,{children:`API Token`}),` (`,_jsx(_components.code,{children:`okt_...`}),`) or `,_jsx(_components.strong,{children:`JWT`}),`. The ticket is always opened in the token owner’s account. Your plan must include the `,_jsx(_components.strong,{children:`Tickets`}),` feature (the `,_jsx(_components.code,{children:`crm_api`}),` feature alone is not enough). It is limited to 120 requests/minute per account. A `,_jsx(_components.code,{children:`201`}),` means a new ticket was opened and a `,_jsx(_components.code,{children:`200`}),` means the message was added to an existing one.`]})})]})}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":"Open a Ticket","api":"POST /api/v1/crm/tickets","description":"Open a support ticket, or add to the requester's open ticket.","href":"/api-reference/tickets/create-ticket"}}},"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`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,..._provideComponents(),...props.components},{CodeBlock,Expandable,Heading,Note,ParamField,ResponseExample,ResponseField}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Expandable)_missingMdxReference(`Expandable`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!ResponseExample)_missingMdxReference(`ResponseExample`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`Create a support ticket from your own system. The requester is matched to a lead by phone or email. If the requester already has an open ticket, your message is added to it instead of opening a second one.`}),`\n`,_jsx(Heading,{level:`2`,id:`request-body`,children:`Request Body`}),`\n`,_jsx(ParamField,{body:`phone`,type:`string`,id:`param-phone`,children:_jsxs(_components.p,{children:[`Requester phone number, in any common format. It is normalized to E.164. At least one of `,_jsx(_components.code,{children:`phone`}),` or `,_jsx(_components.code,{children:`email`}),` is required.`]})}),`\n`,_jsx(ParamField,{body:`email`,type:`string`,id:`param-email`,children:_jsx(_components.p,{children:`Requester email. It is trimmed and lowercased.`})}),`\n`,_jsx(ParamField,{body:`subject`,type:`string`,id:`param-subject`,children:_jsxs(_components.p,{children:[`Ticket subject. A `,_jsx(_components.code,{children:`subject`}),` or a `,_jsx(_components.code,{children:`description`}),` is required.`]})}),`\n`,_jsx(ParamField,{body:`description`,type:`string`,id:`param-description`,children:_jsxs(_components.p,{children:[`The ticket text. `,_jsx(_components.code,{children:`body`}),` is accepted as an alias.`]})}),`\n`,_jsx(ParamField,{body:`name`,type:`string`,id:`param-name`,children:_jsx(_components.p,{children:`Requester name.`})}),`\n`,_jsx(ParamField,{body:`externalId`,type:`string`,id:`param-external-id`,children:_jsx(_components.p,{children:`Your own reference for this ticket.`})}),`\n`,_jsx(Heading,{level:`2`,id:`response`,children:`Response`}),`\n`,_jsx(ResponseField,{name:`success`,type:`boolean`,id:`param-success`,children:_jsx(_components.p,{children:`Indicates if the request was successful.`})}),`\n`,_jsx(ResponseField,{name:`created`,type:`boolean`,id:`param-created`,children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`true`}),` when a new ticket was opened, `,_jsx(_components.code,{children:`false`}),` when the message was added to an existing one.`]})}),`\n`,_jsx(ResponseField,{name:`duplicate`,type:`boolean`,id:`param-duplicate`,children:_jsx(_components.p,{children:`Whether the message was recognized as a duplicate.`})}),`\n`,_jsx(ResponseField,{name:`data`,type:`object`,id:`param-data`,children:_jsxs(Expandable,{title:`data properties`,children:[_jsx(ResponseField,{name:`ticketId`,type:`string`,id:`param-ticket-id`,children:_jsx(_components.p,{children:`The ticket ID.`})}),_jsx(ResponseField,{name:`status`,type:`string`,id:`param-status`,children:_jsx(_components.p,{children:`Current ticket status.`})}),_jsx(ResponseField,{name:`channel`,type:`string`,id:`param-channel`,children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`api`}),` for tickets opened through this endpoint.`]})}),_jsx(ResponseField,{name:`leadId`,type:`string | null`,id:`param-lead-id`,children:_jsxs(_components.p,{children:[`The matched lead, or `,_jsx(_components.code,{children:`null`}),` when the requester is not a lead.`]})})]})}),`\n`,_jsxs(ResponseExample,{children:[_jsx(CodeBlock,{filename:`cURL`,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:[_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://client-backend.oktivo.com/api/v1/crm/tickets`}),_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 okt_YOUR_API_TOKEN\"`}),_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:` \"email\": \"[email protected]\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"subject\": \"Refund not received\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"description\": \"I returned the order 10 days ago.\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }'`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`201 Created`,numberOfLines:`13`,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:`13`,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:` \"created\"`}),_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:` \"duplicate\"`}),_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:` \"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:` \"ticketId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"TKT-1042\"`}),_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:` \"status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"open\"`}),_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:` \"channel\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"api\"`}),_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:` \"leadId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"lead_9a8b7c\"`})]}),`\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:` \"requestId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"3f1c2c0e-6a41-4e0b-9f0e-1f2d6f1b8a77\"`}),_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:` \"timestamp\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2026-03-02T04:05:00.000Z\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`400 Validation Error`,numberOfLines:`10`,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:`10`,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:`\"A phone or email is required to open a ticket\"`}),_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:` \"code\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"BAD_REQUEST\"`}),_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:` \"requestId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"3f1c2c0e-6a41-4e0b-9f0e-1f2d6f1b8a77\"`}),_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:` \"errorInfo\"`}),_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:` \"code\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"BAD_REQUEST\"`}),_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:`\"A phone or email is required to open a ticket\"`})]}),`\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(Note,{children:_jsxs(_components.p,{children:[`This endpoint accepts an `,_jsx(_components.strong,{children:`API Token`}),` (`,_jsx(_components.code,{children:`okt_...`}),`) or `,_jsx(_components.strong,{children:`JWT`}),`. The ticket is always opened in the token owner’s account. Your plan must include the `,_jsx(_components.strong,{children:`Tickets`}),` feature (the `,_jsx(_components.code,{children:`crm_api`}),` feature alone is not enough). It is limited to 120 requests/minute per account. A `,_jsx(_components.code,{children:`201`}),` means a new ticket was opened and a `,_jsx(_components.code,{children:`200`}),` means the message was added to an existing one.`]})})]})}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":"Open a Ticket","api":"POST /api/v1/crm/tickets","description":"Open a support ticket, or add to the requester's open ticket.","href":"/api-reference/tickets/create-ticket"}}}},"mdxExtracts":{"tableOfContents":[{"title":"Request Body","slug":"request-body","depth":2,"children":[]},{"title":"Response","slug":"response","depth":2,"children":[]}],"codeExamples":{"response":{"type":"ResponseExample","children":[{"filename":"cURL","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=\"8\">\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://client-backend.oktivo.com/api/v1/crm/tickets\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 okt_YOUR_API_TOKEN\"\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\"> \"email\": \"[email protected]\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"subject\": \"Refund not received\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"description\": \"I returned the order 10 days ago.\"\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":"201 Created","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=\"13\">\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\"> \"created\"\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\"> \"duplicate\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">false\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\"> \"ticketId\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"TKT-1042\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"status\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"open\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"channel\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"api\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"leadId\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"lead_9a8b7c\"\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:#116329;--shiki-dark:#9CDCFE\"> \"requestId\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"3f1c2c0e-6a41-4e0b-9f0e-1f2d6f1b8a77\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"timestamp\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"2026-03-02T04:05:00.000Z\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"400 Validation Error","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=\"10\">\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\">false\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\">\"A phone or email is required to open a ticket\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"code\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"BAD_REQUEST\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"requestId\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"3f1c2c0e-6a41-4e0b-9f0e-1f2d6f1b8a77\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"errorInfo\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"code\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"BAD_REQUEST\"\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\">\"A phone or email is required to open a ticket\"\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":"Open a Ticket","path":"/api/v1/crm/tickets","servers":[{"url":"https://client-backend.oktivo.com"}],"method":"post","request":{"security":[{"title":"Bearer Auth","parameters":{"header":{"Authorization":{"type":"http","scheme":"bearer","description":"Bearer authentication header of the form `Bearer \u003ctoken>`, where `\u003ctoken>` is your auth token."}},"query":{},"cookie":{}}}],"parameters":{"query":{},"header":{},"cookie":{},"path":{}},"body":{"application/json":{"schemaArray":[{"type":"object","properties":{"phone":[{"type":"string","description":"Requester phone number, in any common format. It is normalized to E.164. At least one of `phone` or `email` is required."}],"email":[{"type":"string","description":"Requester email. It is trimmed and lowercased."}],"subject":[{"type":"string","description":"Ticket subject. A `subject` or a `description` is required."}],"description":[{"type":"string","description":"The ticket text. `body` is accepted as an alias."}],"name":[{"type":"string","description":"Requester name."}],"externalId":[{"type":"string","description":"Your own reference for this ticket."}]}}],"examples":{"example":{"value":{"phone":"\u003cstring>","email":"\u003cstring>","subject":"\u003cstring>","description":"\u003cstring>","name":"\u003cstring>","externalId":"\u003cstring>"}}}}}},"response":{"200":{"application/json":{"schemaArray":[{"type":"object","properties":{"success":[{"type":"boolean","description":"Indicates if the request was successful."}],"created":[{"type":"boolean","description":"`true` when a new ticket was opened, `false` when the message was added to an existing one."}],"duplicate":[{"type":"boolean","description":"Whether the message was recognized as a duplicate."}],"data":[{"type":"object","properties":{"ticketId":[{"type":"string","description":"The ticket ID."}],"status":[{"type":"string","description":"Current ticket status."}],"channel":[{"type":"string","description":"`api` for tickets opened through this endpoint."}],"leadId":[{"type":"object","properties":{},"description":"The matched lead, or `null` when the requester is not a lead."}]}}]}}],"examples":{"example":{"value":{"success":true,"created":true,"duplicate":true,"data":{"ticketId":"\u003cstring>","status":"\u003cstring>","channel":"\u003cstring>","leadId":{}}}}}}}},"deprecated":false}},"jsLinks":[],"subdomain":"oktivo","siteName":"Oktivo Voice Platform","title":"Open a Ticket - Oktivo Voice Platform","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-12-01T12:30:30.180Z","originalFileLocation":"api-reference/tickets/create-ticket.mdx"},"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=\"Open a support ticket, or add to the requester\u0026#x27;s open ticket.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Oktivo Voice Platform\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/oktivo/MSZmVA5U3F6EHDgw/_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/oktivo/MSZmVA5U3F6EHDgw/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/oktivo/MSZmVA5U3F6EHDgw/_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/oktivo/MSZmVA5U3F6EHDgw/_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/oktivo/MSZmVA5U3F6EHDgw/_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/oktivo/MSZmVA5U3F6EHDgw/_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/oktivo/MSZmVA5U3F6EHDgw/_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/oktivo/MSZmVA5U3F6EHDgw/_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/oktivo/MSZmVA5U3F6EHDgw/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Open a Ticket - Oktivo Voice Platform\">\u003cmeta data-mint-head property=\"og:description\" content=\"Open a support ticket, or add to the requester\u0026#x27;s open ticket.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Oktivo Voice Platform\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.oktivo.com/api-reference/tickets/create-ticket\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://oktivo.mintlify.site/_mintlify/api/og/v2?division=Tickets\u0026amp;title=Open+a+Ticket\u0026amp;description=Open+a+support+ticket%2C+or+add+to+the+requester%27s+open+ticket.\u0026amp;theme=e3c1461211df3246f60cf92d\u0026amp;signature=d4b4b87951d509d562781a60d8dd108f69fa3fe6165afe827779ab37bd948f14\">\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=\"Open a Ticket - Oktivo Voice Platform\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Open a support ticket, or add to the requester\u0026#x27;s open ticket.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://oktivo.mintlify.site/_mintlify/api/og/v2?division=Tickets\u0026amp;title=Open+a+Ticket\u0026amp;description=Open+a+support+ticket%2C+or+add+to+the+requester%27s+open+ticket.\u0026amp;theme=e3c1461211df3246f60cf92d\u0026amp;signature=d4b4b87951d509d562781a60d8dd108f69fa3fe6165afe827779ab37bd948f14\">\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/oktivo/MSZmVA5U3F6EHDgw/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Oktivo Voice Platform\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#6366F1\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.oktivo.com/api-reference/tickets/create-ticket\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/tickets/create-ticket.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.oktivo.com/#organization\",\"name\":\"Oktivo Voice Platform\",\"url\":\"https://docs.oktivo.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/oktivo/aTS3se6MyNELWUTF/logo/light.svg?fit=max\u0026auto=format\u0026n=aTS3se6MyNELWUTF\u0026q=85\u0026s=2f82940c5cf5dcb5aff33678e3b6ff49\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.oktivo.com#website\",\"name\":\"Oktivo Voice Platform\",\"url\":\"https://docs.oktivo.com\",\"publisher\":{\"@id\":\"https://docs.oktivo.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.oktivo.com/api-reference/tickets/create-ticket#webpage\",\"url\":\"https://docs.oktivo.com/api-reference/tickets/create-ticket\",\"name\":\"Open a Ticket\",\"description\":\"Open a support ticket, or add to the requester's open ticket.\",\"dateModified\":\"2026-12-01T12:30:30.180Z\",\"isPartOf\":{\"@id\":\"https://docs.oktivo.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.oktivo.com/api-reference/tickets/create-ticket#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.oktivo.com/api-reference/tickets/create-ticket#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Oktivo Voice Platform\",\"item\":\"https://docs.oktivo.com\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Open a Ticket\",\"item\":\"https://docs.oktivo.com/api-reference/tickets/create-ticket\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.oktivo.com/api-reference/tickets/create-ticket#apireference\",\"headline\":\"Open a Ticket\",\"name\":\"Open a Ticket\",\"description\":\"Open a support ticket, or add to the requester's open ticket.\",\"url\":\"https://docs.oktivo.com/api-reference/tickets/create-ticket\",\"mainEntityOfPage\":{\"@id\":\"https://docs.oktivo.com/api-reference/tickets/create-ticket#webpage\"},\"dateModified\":\"2026-12-01T12:30:30.180Z\",\"publisher\":{\"@id\":\"https://docs.oktivo.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.oktivo.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Oktivo Voice Platform\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Oktivo Voice Platform\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/tickets/create-ticket.md","siteName":"Oktivo Voice Platform","nav":{"global":null,"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":"/introduction"}]},{"tab":"API Reference","groups":[{"group":"Overview","pages":[{"title":"API Reference Overview","href":"/api-reference/overview"},{"title":"Versioning and compatibility","href":"/api-reference/versioning"},{"title":"Errors","href":"/api-reference/errors"},{"title":"Idempotency","href":"/api-reference/idempotency"},{"title":"Pagination and filtering","href":"/api-reference/pagination"},{"title":"Rate limits and headers","href":"/api-reference/rate-limits"},{"title":"Request IDs","href":"/api-reference/request-ids"}]},{"group":"Authentication","pages":[{"title":"Create Token","api":"POST /api/v1/crm/tokens","href":"/api-reference/authentication/create-token"},{"title":"List Tokens","api":"GET /api/v1/crm/tokens","href":"/api-reference/authentication/list-tokens"},{"title":"Delete Token","api":"DELETE /api/v1/crm/tokens/{tokenId}","href":"/api-reference/authentication/delete-token"},{"title":"Rotate Token","api":"POST /api/v1/crm/tokens/{tokenId}/rotate","href":"/api-reference/authentication/rotate-token"}]},{"group":"Calls","pages":[{"title":"Trigger Call","api":"POST /api/v1/crm/calls","href":"/api-reference/calls/trigger-call"},{"title":"Trigger Calls in Bulk","api":"POST /api/v1/crm/calls/bulk","href":"/api-reference/calls/bulk-trigger-call"},{"title":"List Calls","api":"GET /api/v1/crm/calls","href":"/api-reference/calls/list-calls"},{"title":"Get Call Status","api":"GET /api/v1/crm/calls/{contactUID}","href":"/api-reference/calls/get-call-status"},{"title":"Cancel Call","api":"DELETE /api/v1/crm/calls/{contactUID}","href":"/api-reference/calls/cancel-call"},{"title":"List Queued Calls","api":"GET /api/v1/crm/calls/queue","href":"/api-reference/calls/list-queue"}]},{"group":"Events","pages":[{"title":"List Events","api":"GET /api/v1/crm/events","href":"/api-reference/events/list-events"},{"title":"Get Event","api":"GET /api/v1/crm/events/{eventId}","href":"/api-reference/events/get-event"},{"title":"List Event Types","api":"GET /api/v1/crm/events/types","href":"/api-reference/events/event-types"}]},{"group":"Agents \u0026 Analysis","pages":[{"title":"List Agents","api":"GET /api/v1/crm/agents","href":"/api-reference/agents/list-agents"},{"title":"Analysis Schemas","api":"GET /api/v1/crm/analysis-schemas","href":"/api-reference/analysis/analysis-schemas"}]},{"group":"Leads","pages":[{"title":"Capture a Lead","api":"POST /api/v1/crm/leads","description":"Create (or merge into) a lead in your Oktivo CRM dashboard.","href":"/api-reference/leads/create-lead"}]},{"group":"Tickets","pages":[{"title":"Open a Ticket","api":"POST /api/v1/crm/tickets","href":"/api-reference/tickets/create-ticket"}]},{"group":"Tracking","pages":[{"title":"Track Visitors","api":"POST /api/v1/crm/track","description":"Send website or app sessions, events and visitor identifiers.","href":"/api-reference/tracking/track"}]},{"group":"Shopify","pages":[{"title":"Queue Shopify Confirmation Calls","api":"POST /api/v1/crm/shopify/confirmation-calls","href":"/api-reference/shopify/create-confirmation-calls"},{"title":"Get Confirmation Batch","api":"GET /api/v1/crm/shopify/confirmation-calls/{batchId}","href":"/api-reference/shopify/get-confirmation-batch"}]},{"group":"Webhooks","pages":[{"title":"Create Endpoint","api":"POST /api/v1/crm/webhooks/endpoints","href":"/api-reference/webhooks/create-endpoint"},{"title":"List Endpoints","api":"GET /api/v1/crm/webhooks/endpoints","href":"/api-reference/webhooks/list-endpoints"},{"title":"Get Endpoint","api":"GET /api/v1/crm/webhooks/endpoints/{webhookId}","href":"/api-reference/webhooks/get-endpoint"},{"title":"Send Test Delivery","api":"POST /api/v1/crm/webhooks/endpoints/test-delivery","href":"/api-reference/webhooks/test-delivery"},{"title":"Update Endpoint","api":"PUT /api/v1/crm/webhooks/endpoints/{webhookId}","href":"/api-reference/webhooks/update-endpoint"},{"title":"Regenerate Secret","api":"POST /api/v1/crm/webhooks/endpoints/{webhookId}/regenerate-secret","href":"/api-reference/webhooks/regenerate-secret"},{"title":"List Delivery Logs","api":"GET /api/v1/crm/webhooks/delivery-logs","href":"/api-reference/webhooks/delivery-logs"},{"title":"Delete Endpoint","api":"DELETE /api/v1/crm/webhooks/endpoints/{webhookId}","href":"/api-reference/webhooks/delete-endpoint"}]}]},{"tab":"API v1 (OpenAPI)","pages":[{"title":"API v1 (OpenAPI)","href":"/api-reference/calls/list-call-history"}]},{"tab":"API v2 (OpenAPI)","pages":[{"title":"API v2 (OpenAPI)","href":"/api-reference/calls/list-calls-cursor-pagination"}]}]},"basePath":"","title":"Open a Ticket - Oktivo Voice Platform","deploymentId":"dpl_AYyV3CY85Zsy44WzfDVuMiAS7PWU","buildId":"dpl_AYyV3CY85Zsy44WzfDVuMiAS7PWU","dynamics":["c2aa737661","2b790eda92","b0f84f53ff"],"chunks":["OpenApiReferenceProvider-DPBgY0Zl.js","snippetPresets-DfrK5Qk-.js","utils-BhOu8MoY.js","style-to-object-BY3JEAdk.js","utils-uJw0j5Le.js","v4-DIgz8zy6.js","addTypeLabelsToSchema-Bf5DiN6S.js","conditional-requirements-CFM0id0Q.js","cloneDeep-DIo_VyID.js","_Uint8Array-BCCZOmlk.js","isObject-FP1Yky1u.js","ApiExamples-btA_N7J3.js","usePlaygroundInputsStore-D9E8vgOP.js","shallow-BXJ3D3rC.js","isEqual-DTxWZblT.js","CodeSnippets-yZyeAOhB.js","CodeSnippet-DNSgsmyp.js","use-playground-group-access-B6tdpwEQ.js","Page-C_4zetsC.js","api-description-markdown-Bnx5o_aC.js","DynamicMarkdown-DGZbG3dj.js","SectionHeading-Su-XbcWJ.js","MethodPill-BEHdnIWE.js","getPastedJson-MUjpQ42l.js","Check2Icon-HQrwfTCD.js","axios-CsQoIw0U.js"]}