{ "success": true, "message": "Customer added successfully but call could not be initiated: No active numbers available", "data": { "id": "LOAN-2025-00456", "campaignId": "camp_abc123" }, "callInitiated": false, "callError": "No active numbers available for this organization"}
{ "success": true, "message": "Customer added successfully but call could not be initiated: No active numbers available", "data": { "id": "LOAN-2025-00456", "campaignId": "camp_abc123" }, "callInitiated": false, "callError": "No active numbers available for this organization"}
Optional. Use this header only when the authenticated user belongs to multiple organizations. It identifies the organization to target for this action.
{ "success": true, "message": "Customer added successfully but call could not be initiated: No active numbers available", "data": { "id": "LOAN-2025-00456", "campaignId": "camp_abc123" }, "callInitiated": false, "callError": "No active numbers available for this organization"}
Validation error - required customer data is missing or invalid
401
Unauthorized - missing or invalid authorization header
403
Forbidden - campaign does not belong to the organization
404
Campaign not found
409
A customer with the supplied loan ID already exists in the campaign
500
Internal server error
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"timepay.ai","colors":{"primary":"#6D28D9","light":"#A074E7","dark":"#6D28D9"},"logo":{"light":"https://mintcdn.com/timepayai-b31ccf4d/J5_kVcxKVFreOF4q/logo/light.png?fit=max\u0026auto=format\u0026n=J5_kVcxKVFreOF4q\u0026q=85\u0026s=516b7c84a005aca528ac0345fa47137a","dark":"https://mintcdn.com/timepayai-b31ccf4d/J5_kVcxKVFreOF4q/logo/dark.png?fit=max\u0026auto=format\u0026n=J5_kVcxKVFreOF4q\u0026q=85\u0026s=983e74529cfea82de5ac1e6ebacef3cc"},"favicon":"https://mintcdn.com/timepayai-b31ccf4d/J5_kVcxKVFreOF4q/favicon.png?fit=max\u0026auto=format\u0026n=J5_kVcxKVFreOF4q\u0026q=85\u0026s=24ec1a1ca871a417cdf0a1c91738742e","api":{"playground":{"display":"none"}},"navbar":{"links":[{"href":"mailto:support@timepay.ai","label":"Support"}],"primary":{"type":"button","label":"Dashboard","href":"https://console.timepay.ai"}},"footer":{"socials":{"linkedin":"https://in.linkedin.com/company/timepay-ai"}},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"timepayai-b31ccf4d","hasAudioNarration":false,"actualSubdomain":"timepayai-b31ccf4d","customDomains":["agents.docs.timepay.ai"],"gitSource":{"type":"github","owner":"sphatate","repo":"dev-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6ac9ef833288cf04bf52665b","collectionId":"86e3c485-3871-4bc1-8a40-2a4417cd1bf4","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6ac9ef833288cf04bf52665b"},"entitlements":{},"buildId":"6ac9ef833288cf04bf52665b","clientVersion":"0.0.4021","searchFilterCounts":[{"language":"default","tag":"API Reference","count":41},{"language":"default","tag":"API Documentation","count":41},{"language":"default","tag":"Dispositions Management","count":12},{"language":"default","tag":"Dispositions Group","count":7},{"language":"default","tag":"Agents","count":6},{"language":"default","tag":"Customers","count":6},{"language":"default","tag":"Campaigns","count":5},{"language":"default","tag":"Dispositions","count":5},{"language":"default","tag":"Workflows","count":4},{"language":"default","tag":"MCP Server","count":3}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":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":"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":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","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":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"byok-sep-25","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":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","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":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"api-reference/agents/customer-data/add-customer","slug":"/api-reference/agents/customer-data/add-customer","pageMetadata":{"title":"Add Customer","api":"POST https://api.agents.timepay.ai/api/v1/customers/add","description":"Add a single customer record to an existing campaign with optional immediate call initiation.","href":"/api-reference/agents/customer-data/add-customer"},"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: \"Add a single customer record to an existing campaign with optional immediate call initiation.\"\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,ParamField,ResponseField,Tab,Table,Tabs}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Expandable)_missingMdxReference(`Expandable`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);if(!Tab)_missingMdxReference(`Tab`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Tabs)_missingMdxReference(`Tabs`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`3`,id:`headers`,children:`Headers`}),`\n`,_jsx(CodeBlock,{filename:`401 Unauthorized`,numberOfLines:`5`,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:`5`,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:` \"error\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Unauthorized\"`}),_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:`\"Missing or invalid authorization header\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(ParamField,{header:`Authorization`,type:`string`,required:true,id:`param-authorization`,children:_jsxs(_components.p,{children:[`Bearer token for authentication (e.g., `,_jsx(_components.code,{children:`Bearer \u003cyour_token>`}),`).`]})}),`\n`,_jsx(ParamField,{header:`X-ORG-ID`,type:`string`,id:`param-x-org-id`,children:_jsx(_components.p,{children:`Optional. Use this header only when the authenticated user belongs to multiple organizations. It identifies the organization to target for this action.`})}),`\n`,_jsx(Heading,{level:`3`,id:`body-parameters`,children:`Body Parameters`}),`\n`,_jsx(ParamField,{body:`campaignId`,type:`string`,required:true,id:`param-campaign-id`,children:_jsx(_components.p,{children:`Target campaign ID. The campaign must already exist.`})}),`\n`,_jsxs(ParamField,{body:`data`,type:`object`,required:true,id:`param-data`,children:[_jsx(_components.p,{children:`Customer data object. The required fields depend on your campaign’s service type.`}),_jsxs(Tabs,{children:[_jsxs(Tab,{title:`Debt Collection`,id:`debt-collection`,children:[_jsx(_components.p,{children:_jsx(_components.strong,{children:`Use this structure if you are managing existing loans.`})}),_jsxs(Expandable,{title:`item properties`,children:[_jsx(ParamField,{body:`loan_id`,type:`string`,required:true,id:`param-loan-id`,children:`Unique identifier for the loan record.`}),_jsx(ParamField,{body:`first_name`,type:`string`,required:true,id:`param-first-name`,children:`Customer’s first name.`}),_jsx(ParamField,{body:`last_name`,type:`string`,required:true,id:`param-last-name`,children:`Customer’s last name.`}),_jsx(ParamField,{body:`phone_number`,type:`string`,required:true,id:`param-phone-number`,children:`Customer’s primary contact number.`}),_jsx(ParamField,{body:`loan_amount`,type:`number`,required:true,id:`param-loan-amount`,children:`Total principal amount of the loan.`}),_jsx(ParamField,{body:`emi_amount`,type:`number`,required:true,id:`param-emi-amount`,children:`EMI amount due for the current billing cycle.`}),_jsx(ParamField,{body:`loan_period`,type:`number`,required:true,id:`param-loan-period`,children:`Total loan tenure in monthly installments.`}),_jsx(ParamField,{body:`current_emi`,type:`number`,required:true,id:`param-current-emi`,children:`Current installment number in the repayment schedule (e.g., 5 of 12).`}),_jsxs(ParamField,{body:`emi_due_date`,type:`string`,required:true,id:`param-emi-due-date`,children:[`Due date for the current EMI. Format: `,_jsx(_components.code,{children:`YYYY-MM-DD`}),`.`]}),_jsxs(ParamField,{body:`payment_status`,type:`string`,required:true,id:`param-payment-status`,children:[_jsx(_components.p,{children:`Current status of the customer’s EMI payment.`}),_jsx(Expandable,{title:`options`,children:_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`bounced`}),` — Payment was attempted but failed (e.g., insufficient funds).`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`pending`}),` — Payment is due but not yet initiated.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`partial`}),` — Customer has made a partial payment.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`paid`}),` — Payment has been completed by the customer.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`received`}),` — Payment has been received and confirmed.`]}),`\n`]})})]}),_jsxs(ParamField,{body:`language`,type:`string`,id:`param-language`,children:[`Preferred language for the AI agent (e.g., `,_jsx(_components.code,{children:`english`}),`, `,_jsx(_components.code,{children:`hindi`}),`, `,_jsx(_components.code,{children:`tamil`}),`).`]})]})]}),_jsxs(Tab,{title:`Lead Generation`,id:`lead-generation`,children:[_jsx(_components.p,{children:_jsx(_components.strong,{children:`Use this structure for new sales or lead acquisition.`})}),_jsxs(Expandable,{title:`item properties`,children:[_jsx(ParamField,{body:`lead_id`,type:`string`,id:`param-lead-id`,children:`Unique identifier for the lead. Auto-generated (UUID) if not provided.`}),_jsx(ParamField,{body:`first_name`,type:`string`,required:true,id:`param-first-name-1`,children:`Customer’s first name.`}),_jsx(ParamField,{body:`last_name`,type:`string`,required:true,id:`param-last-name-1`,children:`Customer’s last name.`}),_jsx(ParamField,{body:`phone_number`,type:`string`,required:true,id:`param-phone-number-1`,children:`Customer’s primary contact number.`}),_jsxs(ParamField,{body:`lead_date`,type:`string`,required:true,id:`param-lead-date`,children:[`Date the lead was captured. Format: `,_jsx(_components.code,{children:`YYYY-MM-DD`}),`.`]}),_jsxs(ParamField,{body:`language`,type:`string`,id:`param-language-1`,children:[`Preferred language for the AI agent (e.g., `,_jsx(_components.code,{children:`english`}),`, `,_jsx(_components.code,{children:`hindi`}),`, `,_jsx(_components.code,{children:`tamil`}),`).`]})]})]})]})]}),`\n`,_jsx(ParamField,{body:`initiateCall`,type:`boolean`,default:false,id:`param-initiate-call`,children:_jsxs(_components.p,{children:[`If `,_jsx(_components.code,{children:`true`}),`, initiates a call to the customer immediately after adding. Requires `,_jsx(_components.code,{children:`callConfig`}),`. Cannot be `,_jsx(_components.code,{children:`true`}),` if `,_jsx(_components.code,{children:`useWorkflow`}),` is `,_jsx(_components.code,{children:`true`}),`.`]})}),`\n`,_jsxs(ParamField,{body:`callConfig`,type:`object`,id:`param-call-config`,children:[_jsxs(_components.p,{children:[`Required when `,_jsx(_components.code,{children:`initiateCall`}),` is `,_jsx(_components.code,{children:`true`}),`.`]}),_jsxs(Expandable,{title:`properties`,children:[_jsx(ParamField,{body:`agentId`,type:`string`,required:true,id:`param-agent-id`,children:`AI agent ID to handle the call.`}),_jsx(ParamField,{body:`dispositionId`,type:`string`,required:true,id:`param-disposition-id`,children:`Disposition ID for call categorization.`})]})]}),`\n`,_jsx(ParamField,{body:`useWorkflow`,type:`boolean`,default:false,id:`param-use-workflow`,children:_jsxs(_components.p,{children:[`If `,_jsx(_components.code,{children:`true`}),`, triggers workflow execution asynchronously. Cannot be `,_jsx(_components.code,{children:`true`}),` if `,_jsx(_components.code,{children:`initiateCall`}),` is `,_jsx(_components.code,{children:`true`}),`.`]})}),`\n`,_jsx(Heading,{level:`3`,id:`response`,children:`Response`}),`\n`,_jsx(ResponseField,{name:`success`,type:`boolean`,id:`param-success`,children:_jsx(_components.p,{children:`Indicates whether the request was successful.`})}),`\n`,_jsx(ResponseField,{name:`message`,type:`string`,id:`param-message`,children:_jsx(_components.p,{children:`A descriptive message about the result.`})}),`\n`,_jsxs(ResponseField,{name:`data`,type:`object`,id:`param-data-1`,children:[_jsx(_components.p,{children:`Details of the added customer.`}),_jsxs(Expandable,{title:`properties`,children:[_jsx(ResponseField,{name:`id`,type:`string`,id:`param-id`,children:_jsxs(_components.p,{children:[`The document ID (`,_jsx(_components.code,{children:`loan_id`}),` or `,_jsx(_components.code,{children:`lead_id`}),`) of the added customer.`]})}),_jsx(ResponseField,{name:`campaignId`,type:`string`,id:`param-campaign-id-1`,children:_jsx(_components.p,{children:`The campaign the customer was added to.`})})]})]}),`\n`,_jsx(ResponseField,{name:`callInitiated`,type:`boolean`,id:`param-call-initiated`,children:_jsxs(_components.p,{children:[`Whether the call was successfully initiated. Only present when `,_jsx(_components.code,{children:`initiateCall`}),` was `,_jsx(_components.code,{children:`true`}),`.`]})}),`\n`,_jsx(ResponseField,{name:`callError`,type:`string`,id:`param-call-error`,children:_jsxs(_components.p,{children:[`Reason the call could not be initiated. Only present when `,_jsx(_components.code,{children:`callInitiated`}),` is `,_jsx(_components.code,{children:`false`}),`.`]})}),`\n`,_jsx(ResponseField,{name:`workflowTriggered`,type:`boolean`,id:`param-workflow-triggered`,children:_jsxs(_components.p,{children:[`Whether the workflow execution was triggered. Only present when `,_jsx(_components.code,{children:`useWorkflow`}),` was `,_jsx(_components.code,{children:`true`}),`.`]})}),`\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:`Status`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`400`})}),_jsx(_components.td,{children:`Validation error - required customer data is missing or invalid`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`401`})}),_jsx(_components.td,{children:`Unauthorized - missing or invalid authorization header`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`403`})}),_jsx(_components.td,{children:`Forbidden - campaign does not belong to the organization`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`404`})}),_jsx(_components.td,{children:`Campaign not found`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`409`})}),_jsx(_components.td,{children:`A customer with the supplied loan ID already exists in the campaign`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`500`})}),_jsx(_components.td,{children:`Internal server error`})]})]})]})]})}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":"Add Customer","api":"POST https://api.agents.timepay.ai/api/v1/customers/add","description":"Add a single customer record to an existing campaign with optional immediate call initiation.","href":"/api-reference/agents/customer-data/add-customer"}}},"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,ParamField,ResponseExample,ResponseField,Tab,Table,Tabs}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Expandable)_missingMdxReference(`Expandable`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!ResponseExample)_missingMdxReference(`ResponseExample`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);if(!Tab)_missingMdxReference(`Tab`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Tabs)_missingMdxReference(`Tabs`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`3`,id:`headers`,children:`Headers`}),`\n`,_jsx(CodeBlock,{filename:`401 Unauthorized`,numberOfLines:`5`,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:`5`,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:` \"error\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Unauthorized\"`}),_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:`\"Missing or invalid authorization header\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(ParamField,{header:`Authorization`,type:`string`,required:true,id:`param-authorization`,children:_jsxs(_components.p,{children:[`Bearer token for authentication (e.g., `,_jsx(_components.code,{children:`Bearer \u003cyour_token>`}),`).`]})}),`\n`,_jsx(ParamField,{header:`X-ORG-ID`,type:`string`,id:`param-x-org-id`,children:_jsx(_components.p,{children:`Optional. Use this header only when the authenticated user belongs to multiple organizations. It identifies the organization to target for this action.`})}),`\n`,_jsx(Heading,{level:`3`,id:`body-parameters`,children:`Body Parameters`}),`\n`,_jsx(ParamField,{body:`campaignId`,type:`string`,required:true,id:`param-campaign-id`,children:_jsx(_components.p,{children:`Target campaign ID. The campaign must already exist.`})}),`\n`,_jsxs(ParamField,{body:`data`,type:`object`,required:true,id:`param-data`,children:[_jsx(_components.p,{children:`Customer data object. The required fields depend on your campaign’s service type.`}),_jsxs(Tabs,{children:[_jsxs(Tab,{title:`Debt Collection`,id:`debt-collection`,children:[_jsx(_components.p,{children:_jsx(_components.strong,{children:`Use this structure if you are managing existing loans.`})}),_jsxs(Expandable,{title:`item properties`,children:[_jsx(ParamField,{body:`loan_id`,type:`string`,required:true,id:`param-loan-id`,children:`Unique identifier for the loan record.`}),_jsx(ParamField,{body:`first_name`,type:`string`,required:true,id:`param-first-name`,children:`Customer’s first name.`}),_jsx(ParamField,{body:`last_name`,type:`string`,required:true,id:`param-last-name`,children:`Customer’s last name.`}),_jsx(ParamField,{body:`phone_number`,type:`string`,required:true,id:`param-phone-number`,children:`Customer’s primary contact number.`}),_jsx(ParamField,{body:`loan_amount`,type:`number`,required:true,id:`param-loan-amount`,children:`Total principal amount of the loan.`}),_jsx(ParamField,{body:`emi_amount`,type:`number`,required:true,id:`param-emi-amount`,children:`EMI amount due for the current billing cycle.`}),_jsx(ParamField,{body:`loan_period`,type:`number`,required:true,id:`param-loan-period`,children:`Total loan tenure in monthly installments.`}),_jsx(ParamField,{body:`current_emi`,type:`number`,required:true,id:`param-current-emi`,children:`Current installment number in the repayment schedule (e.g., 5 of 12).`}),_jsxs(ParamField,{body:`emi_due_date`,type:`string`,required:true,id:`param-emi-due-date`,children:[`Due date for the current EMI. Format: `,_jsx(_components.code,{children:`YYYY-MM-DD`}),`.`]}),_jsxs(ParamField,{body:`payment_status`,type:`string`,required:true,id:`param-payment-status`,children:[_jsx(_components.p,{children:`Current status of the customer’s EMI payment.`}),_jsx(Expandable,{title:`options`,children:_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`bounced`}),` — Payment was attempted but failed (e.g., insufficient funds).`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`pending`}),` — Payment is due but not yet initiated.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`partial`}),` — Customer has made a partial payment.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`paid`}),` — Payment has been completed by the customer.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`received`}),` — Payment has been received and confirmed.`]}),`\n`]})})]}),_jsxs(ParamField,{body:`language`,type:`string`,id:`param-language`,children:[`Preferred language for the AI agent (e.g., `,_jsx(_components.code,{children:`english`}),`, `,_jsx(_components.code,{children:`hindi`}),`, `,_jsx(_components.code,{children:`tamil`}),`).`]})]})]}),_jsxs(Tab,{title:`Lead Generation`,id:`lead-generation`,children:[_jsx(_components.p,{children:_jsx(_components.strong,{children:`Use this structure for new sales or lead acquisition.`})}),_jsxs(Expandable,{title:`item properties`,children:[_jsx(ParamField,{body:`lead_id`,type:`string`,id:`param-lead-id`,children:`Unique identifier for the lead. Auto-generated (UUID) if not provided.`}),_jsx(ParamField,{body:`first_name`,type:`string`,required:true,id:`param-first-name-1`,children:`Customer’s first name.`}),_jsx(ParamField,{body:`last_name`,type:`string`,required:true,id:`param-last-name-1`,children:`Customer’s last name.`}),_jsx(ParamField,{body:`phone_number`,type:`string`,required:true,id:`param-phone-number-1`,children:`Customer’s primary contact number.`}),_jsxs(ParamField,{body:`lead_date`,type:`string`,required:true,id:`param-lead-date`,children:[`Date the lead was captured. Format: `,_jsx(_components.code,{children:`YYYY-MM-DD`}),`.`]}),_jsxs(ParamField,{body:`language`,type:`string`,id:`param-language-1`,children:[`Preferred language for the AI agent (e.g., `,_jsx(_components.code,{children:`english`}),`, `,_jsx(_components.code,{children:`hindi`}),`, `,_jsx(_components.code,{children:`tamil`}),`).`]})]})]})]})]}),`\n`,_jsx(ParamField,{body:`initiateCall`,type:`boolean`,default:false,id:`param-initiate-call`,children:_jsxs(_components.p,{children:[`If `,_jsx(_components.code,{children:`true`}),`, initiates a call to the customer immediately after adding. Requires `,_jsx(_components.code,{children:`callConfig`}),`. Cannot be `,_jsx(_components.code,{children:`true`}),` if `,_jsx(_components.code,{children:`useWorkflow`}),` is `,_jsx(_components.code,{children:`true`}),`.`]})}),`\n`,_jsxs(ParamField,{body:`callConfig`,type:`object`,id:`param-call-config`,children:[_jsxs(_components.p,{children:[`Required when `,_jsx(_components.code,{children:`initiateCall`}),` is `,_jsx(_components.code,{children:`true`}),`.`]}),_jsxs(Expandable,{title:`properties`,children:[_jsx(ParamField,{body:`agentId`,type:`string`,required:true,id:`param-agent-id`,children:`AI agent ID to handle the call.`}),_jsx(ParamField,{body:`dispositionId`,type:`string`,required:true,id:`param-disposition-id`,children:`Disposition ID for call categorization.`})]})]}),`\n`,_jsx(ParamField,{body:`useWorkflow`,type:`boolean`,default:false,id:`param-use-workflow`,children:_jsxs(_components.p,{children:[`If `,_jsx(_components.code,{children:`true`}),`, triggers workflow execution asynchronously. Cannot be `,_jsx(_components.code,{children:`true`}),` if `,_jsx(_components.code,{children:`initiateCall`}),` is `,_jsx(_components.code,{children:`true`}),`.`]})}),`\n`,_jsx(Heading,{level:`3`,id:`response`,children:`Response`}),`\n`,_jsx(ResponseField,{name:`success`,type:`boolean`,id:`param-success`,children:_jsx(_components.p,{children:`Indicates whether the request was successful.`})}),`\n`,_jsx(ResponseField,{name:`message`,type:`string`,id:`param-message`,children:_jsx(_components.p,{children:`A descriptive message about the result.`})}),`\n`,_jsxs(ResponseField,{name:`data`,type:`object`,id:`param-data-1`,children:[_jsx(_components.p,{children:`Details of the added customer.`}),_jsxs(Expandable,{title:`properties`,children:[_jsx(ResponseField,{name:`id`,type:`string`,id:`param-id`,children:_jsxs(_components.p,{children:[`The document ID (`,_jsx(_components.code,{children:`loan_id`}),` or `,_jsx(_components.code,{children:`lead_id`}),`) of the added customer.`]})}),_jsx(ResponseField,{name:`campaignId`,type:`string`,id:`param-campaign-id-1`,children:_jsx(_components.p,{children:`The campaign the customer was added to.`})})]})]}),`\n`,_jsx(ResponseField,{name:`callInitiated`,type:`boolean`,id:`param-call-initiated`,children:_jsxs(_components.p,{children:[`Whether the call was successfully initiated. Only present when `,_jsx(_components.code,{children:`initiateCall`}),` was `,_jsx(_components.code,{children:`true`}),`.`]})}),`\n`,_jsx(ResponseField,{name:`callError`,type:`string`,id:`param-call-error`,children:_jsxs(_components.p,{children:[`Reason the call could not be initiated. Only present when `,_jsx(_components.code,{children:`callInitiated`}),` is `,_jsx(_components.code,{children:`false`}),`.`]})}),`\n`,_jsx(ResponseField,{name:`workflowTriggered`,type:`boolean`,id:`param-workflow-triggered`,children:_jsxs(_components.p,{children:[`Whether the workflow execution was triggered. Only present when `,_jsx(_components.code,{children:`useWorkflow`}),` was `,_jsx(_components.code,{children:`true`}),`.`]})}),`\n`,_jsxs(ResponseExample,{children:[_jsx(CodeBlock,{filename:`201 Added (without call)`,numberOfLines:`8`,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:`8`,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:`\"Customer added to campaign 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:`\"LOAN-2025-00123\"`}),_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:` \"campaignId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"camp_abc123\"`})]}),`\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(CodeBlock,{filename:`201 Added (with call initiated)`,numberOfLines:`9`,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:`9`,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:`\"Customer added and call initiated 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:`\"LOAN-2025-00456\"`}),_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:` \"campaignId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"camp_abc123\"`})]}),`\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:` \"callInitiated\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`201 Added (with workflow triggered)`,numberOfLines:`9`,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:`9`,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:`\"Customer added and workflow triggered 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:`\"LOAN-2025-00456\"`}),_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:` \"campaignId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"camp_abc123\"`})]}),`\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:` \"workflowTriggered\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`201 Added (call failed)`,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:`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:`\"Customer added successfully but call could not be initiated: No active numbers available\"`}),_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:`\"LOAN-2025-00456\"`}),_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:` \"campaignId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"camp_abc123\"`})]}),`\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:` \"callInitiated\"`}),_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:` \"callError\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"No active numbers available for this organization\"`})]}),`\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:`8`,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:`8`,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:`\"Validation failed\"`}),_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:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Record 0: Missing required field 'phone_number'\"`}),_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:` \"Record 0: Missing required field 'emi_due_date'\"`})}),`\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(CodeBlock,{filename:`404 Campaign Not Found`,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:`\"Campaign not found\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`409 Duplicate Customer`,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:`\"Customer with loan_id 'LOAN-2025-00123' already exists in this campaign.\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`403 Forbidden`,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:`\"Campaign ID invalid or mismatch for your organization.\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`500 Server Error`,numberOfLines:`5`,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:`5`,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:` \"error\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Internal Server Error\"`}),_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:`\"An unexpected error occurred\"`})]}),`\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:`Status`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`400`})}),_jsx(_components.td,{children:`Validation error - required customer data is missing or invalid`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`401`})}),_jsx(_components.td,{children:`Unauthorized - missing or invalid authorization header`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`403`})}),_jsx(_components.td,{children:`Forbidden - campaign does not belong to the organization`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`404`})}),_jsx(_components.td,{children:`Campaign not found`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`409`})}),_jsx(_components.td,{children:`A customer with the supplied loan ID already exists in the campaign`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`500`})}),_jsx(_components.td,{children:`Internal server error`})]})]})]})]})}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":"Add Customer","api":"POST https://api.agents.timepay.ai/api/v1/customers/add","description":"Add a single customer record to an existing campaign with optional immediate call initiation.","href":"/api-reference/agents/customer-data/add-customer"}}}},"mdxExtracts":{"tableOfContents":[{"title":"Headers","slug":"headers","depth":3,"children":[]},{"title":"Body Parameters","slug":"body-parameters","depth":3,"children":[]},{"title":"Response","slug":"response","depth":3,"children":[]},{"title":"Error Codes","slug":"error-codes","depth":2,"children":[]}],"codeExamples":{"response":{"type":"ResponseExample","children":[{"filename":"201 Added (without call)","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=\"8\">\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\">\"Customer added to campaign 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\">\"LOAN-2025-00123\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"campaignId\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"camp_abc123\"\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>"},{"filename":"201 Added (with call initiated)","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=\"9\">\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\">\"Customer added and call initiated 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\">\"LOAN-2025-00456\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"campaignId\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"camp_abc123\"\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\"> \"callInitiated\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">true\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":"201 Added (with workflow triggered)","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=\"9\">\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\">\"Customer added and workflow triggered 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\">\"LOAN-2025-00456\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"campaignId\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"camp_abc123\"\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\"> \"workflowTriggered\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">true\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":"201 Added (call failed)","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\">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\">\"Customer added successfully but call could not be initiated: No active numbers available\"\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\">\"LOAN-2025-00456\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"campaignId\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"camp_abc123\"\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\"> \"callInitiated\"\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\"> \"callError\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"No active numbers available for this organization\"\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=\"8\">\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\">\"Validation failed\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"errors\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: [\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"Record 0: Missing required field 'phone_number'\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"Record 0: Missing required field 'emi_due_date'\"\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>"},{"filename":"404 Campaign Not Found","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=\"4\">\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\">\"Campaign not found\"\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":"409 Duplicate Customer","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=\"4\">\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\">\"Customer with loan_id 'LOAN-2025-00123' already exists in this campaign.\"\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":"403 Forbidden","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=\"4\">\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\">\"Campaign ID invalid or mismatch for your organization.\"\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":"500 Server 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=\"5\">\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\"> \"error\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Internal Server Error\"\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\">\"An unexpected error occurred\"\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":"Add Customer","path":"/api/v1/customers/add","servers":[{"url":"https://api.agents.timepay.ai"}],"method":"post","request":{"security":[],"parameters":{"query":{},"header":{"Authorization":{"schema":[{"type":"string","description":"Bearer token for authentication (e.g., `Bearer \u003cyour_token>` ).","required":true}]},"X-ORG-ID":{"schema":[{"type":"string","description":"Optional. Use this header only when the authenticated user belongs to multiple organizations. It identifies the organization to target for this action."}]}},"cookie":{},"path":{}},"body":{"application/json":{"schemaArray":[{"type":"object","properties":{"campaignId":[{"type":"string","description":"Target campaign ID. The campaign must already exist.","required":true}],"data":[{"type":"object","properties":{"loan_id":[{"type":"string","description":"Unique identifier for the loan record.","required":true}],"first_name":[{"type":"string","description":"Customer’s first name.","required":true}],"last_name":[{"type":"string","description":"Customer’s last name.","required":true}],"phone_number":[{"type":"string","description":"Customer’s primary contact number.","required":true}],"loan_amount":[{"type":"number","description":"Total principal amount of the loan.","required":true}],"emi_amount":[{"type":"number","description":"EMI amount due for the current billing cycle.","required":true}],"loan_period":[{"type":"number","description":"Total loan tenure in monthly installments.","required":true}],"current_emi":[{"type":"number","description":"Current installment number in the repayment schedule (e.g., 5 of 12).","required":true}],"emi_due_date":[{"type":"string","description":"Due date for the current EMI. Format: `YYYY-MM-DD` .","required":true}],"payment_status":[{"type":"string","description":"Current status of the customer’s EMI payment.","required":true}],"language":[{"type":"string","description":"Preferred language for the AI agent (e.g., `english` , `hindi` , `tamil` )."}],"lead_id":[{"type":"string","description":"Unique identifier for the lead. Auto-generated (UUID) if not provided."}],"lead_date":[{"type":"string","description":"Date the lead was captured. Format: `YYYY-MM-DD` .","required":true}]},"description":"Customer data object. The required fields depend on your campaign’s service type.","required":true}],"initiateCall":[{"type":"boolean","description":"If `true` , initiates a call to the customer immediately after adding. Requires `callConfig` . Cannot be `true` if `useWorkflow` is `true` ."}],"callConfig":[{"type":"object","properties":{"agentId":[{"type":"string","description":"AI agent ID to handle the call.","required":true}],"dispositionId":[{"type":"string","description":"Disposition ID for call categorization.","required":true}]},"description":"Required when `initiateCall` is `true` ."}],"useWorkflow":[{"type":"boolean","description":"If `true` , triggers workflow execution asynchronously. Cannot be `true` if `initiateCall` is `true` ."}]}}],"examples":{"example":{"value":{"campaignId":"\u003cstring>","data":{"loan_id":"\u003cstring>","first_name":"\u003cstring>","last_name":"\u003cstring>","phone_number":"\u003cstring>","loan_amount":123,"emi_amount":123,"loan_period":123,"current_emi":123,"emi_due_date":"\u003cstring>","payment_status":"\u003cstring>","language":"\u003cstring>","lead_id":"\u003cstring>","lead_date":"\u003cstring>"},"initiateCall":true,"callConfig":{"agentId":"\u003cstring>","dispositionId":"\u003cstring>"},"useWorkflow":true}}}}}},"response":{"200":{"application/json":{"schemaArray":[{"type":"object","properties":{"success":[{"type":"boolean","description":"Indicates whether the request was successful."}],"message":[{"type":"string","description":"A descriptive message about the result."}],"data":[{"type":"object","properties":{"id":[{"type":"string","description":"The document ID ( `loan_id` or `lead_id` ) of the added customer."}],"campaignId":[{"type":"string","description":"The campaign the customer was added to."}]},"description":"Details of the added customer."}],"callInitiated":[{"type":"boolean","description":"Whether the call was successfully initiated. Only present when `initiateCall` was `true` ."}],"callError":[{"type":"string","description":"Reason the call could not be initiated. Only present when `callInitiated` is `false` ."}],"workflowTriggered":[{"type":"boolean","description":"Whether the workflow execution was triggered. Only present when `useWorkflow` was `true` ."}]}}],"examples":{"example":{"value":{"success":true,"message":"\u003cstring>","data":{"id":"\u003cstring>","campaignId":"\u003cstring>"},"callInitiated":true,"callError":"\u003cstring>","workflowTriggered":true}}}}}},"deprecated":false}},"jsLinks":[],"subdomain":"timepayai-b31ccf4d","siteName":"timepay.ai","title":"Add Customer - timepay.ai","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-09-11T11:26:08.642Z","originalFileLocation":"api-reference/agents/customer-data/add-customer.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=\"Add a single customer record to an existing campaign with optional immediate call initiation.\">\u003cmeta data-mint-head name=\"application-name\" content=\"timepay.ai\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/timepayai-b31ccf4d/V1IoD9jgxzFlVbCs/_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/timepayai-b31ccf4d/V1IoD9jgxzFlVbCs/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/timepayai-b31ccf4d/V1IoD9jgxzFlVbCs/_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/timepayai-b31ccf4d/V1IoD9jgxzFlVbCs/_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/timepayai-b31ccf4d/V1IoD9jgxzFlVbCs/_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/timepayai-b31ccf4d/V1IoD9jgxzFlVbCs/_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/timepayai-b31ccf4d/V1IoD9jgxzFlVbCs/_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/timepayai-b31ccf4d/V1IoD9jgxzFlVbCs/_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/timepayai-b31ccf4d/V1IoD9jgxzFlVbCs/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Add Customer - timepay.ai\">\u003cmeta data-mint-head property=\"og:description\" content=\"Add a single customer record to an existing campaign with optional immediate call initiation.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"timepay.ai\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://agents.docs.timepay.ai/api-reference/agents/customer-data/add-customer\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://timepayai-b31ccf4d.mintlify.app/_mintlify/api/og/v2?division=Customers\u0026amp;title=Add+Customer\u0026amp;description=Add+a+single+customer+record+to+an+existing+campaign+with+optional+immediate+call+initiation.\u0026amp;theme=6ea977db2a36e9190e9fe0cb\u0026amp;signature=7178cdf2fe2199a982b193633641281673a3d8c65df2e17c842102e535136fae\">\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=\"Add Customer - timepay.ai\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Add a single customer record to an existing campaign with optional immediate call initiation.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://timepayai-b31ccf4d.mintlify.app/_mintlify/api/og/v2?division=Customers\u0026amp;title=Add+Customer\u0026amp;description=Add+a+single+customer+record+to+an+existing+campaign+with+optional+immediate+call+initiation.\u0026amp;theme=6ea977db2a36e9190e9fe0cb\u0026amp;signature=7178cdf2fe2199a982b193633641281673a3d8c65df2e17c842102e535136fae\">\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/timepayai-b31ccf4d/V1IoD9jgxzFlVbCs/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"timepay.ai\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#6D28D9\">\u003clink data-mint-head rel=\"canonical\" href=\"https://agents.docs.timepay.ai/api-reference/agents/customer-data/add-customer\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/agents/customer-data/add-customer.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://agents.docs.timepay.ai/#organization\",\"name\":\"timepay.ai\",\"url\":\"https://agents.docs.timepay.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/timepayai-b31ccf4d/J5_kVcxKVFreOF4q/logo/light.png?fit=max\u0026auto=format\u0026n=J5_kVcxKVFreOF4q\u0026q=85\u0026s=516b7c84a005aca528ac0345fa47137a\"}},{\"@type\":\"WebSite\",\"@id\":\"https://agents.docs.timepay.ai#website\",\"name\":\"timepay.ai\",\"url\":\"https://agents.docs.timepay.ai\",\"publisher\":{\"@id\":\"https://agents.docs.timepay.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://agents.docs.timepay.ai/api-reference/agents/customer-data/add-customer#webpage\",\"url\":\"https://agents.docs.timepay.ai/api-reference/agents/customer-data/add-customer\",\"name\":\"Add Customer\",\"description\":\"Add a single customer record to an existing campaign with optional immediate call initiation.\",\"dateModified\":\"2026-09-11T11:26:08.642Z\",\"isPartOf\":{\"@id\":\"https://agents.docs.timepay.ai#website\"},\"breadcrumb\":{\"@id\":\"https://agents.docs.timepay.ai/api-reference/agents/customer-data/add-customer#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://agents.docs.timepay.ai/api-reference/agents/customer-data/add-customer#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"API Documentation\",\"item\":\"https://agents.docs.timepay.ai/api-reference/agents/campaigns/list-campaigns\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Customers\",\"item\":\"https://agents.docs.timepay.ai/api-reference/agents/customer-data/list-customers\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Add Customer\",\"item\":\"https://agents.docs.timepay.ai/api-reference/agents/customer-data/add-customer\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://agents.docs.timepay.ai/api-reference/agents/customer-data/add-customer#apireference\",\"headline\":\"Add Customer\",\"name\":\"Add Customer\",\"description\":\"Add a single customer record to an existing campaign with optional immediate call initiation.\",\"url\":\"https://agents.docs.timepay.ai/api-reference/agents/customer-data/add-customer\",\"mainEntityOfPage\":{\"@id\":\"https://agents.docs.timepay.ai/api-reference/agents/customer-data/add-customer#webpage\"},\"dateModified\":\"2026-09-11T11:26:08.642Z\",\"publisher\":{\"@id\":\"https://agents.docs.timepay.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://agents.docs.timepay.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"timepay.ai\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"timepay.ai","nav":{"global":null,"tabs":[{"tab":"Agents","icon":"robot","pages":[{"title":"Agents","href":"/agents/integrations/whatsapp"}]},{"tab":"API Reference","icon":"code","groups":[{"group":"API Documentation","pages":[{"group":"Campaigns","icon":"bullseye","pages":[{"title":"List Campaigns","api":"GET https://api.agents.timepay.ai/api/v1/campaigns","href":"/api-reference/agents/campaigns/list-campaigns"},{"title":"Create Campaign","api":"POST https://api.agents.timepay.ai/api/v1/campaigns/create","href":"/api-reference/agents/campaigns/create-campaign"},{"title":"Get Campaign","api":"GET https://api.agents.timepay.ai/api/v1/campaigns/{id}","href":"/api-reference/agents/campaigns/get-campaign"},{"title":"Update Campaign","api":"PUT https://api.agents.timepay.ai/api/v1/campaigns/update/{id}","href":"/api-reference/agents/campaigns/update-campaign"},{"title":"Delete Campaign","api":"DELETE https://api.agents.timepay.ai/api/v1/campaigns/{id}","href":"/api-reference/agents/campaigns/delete-campaign"}]},{"group":"Workflows","icon":"diagram-project","pages":[{"title":"List Workflow Templates","api":"GET https://api.agents.timepay.ai/api/v1/workflows/templates","href":"/api-reference/agents/workflows/list-workflow-templates"},{"title":"Resume Workflow","api":"POST https://api.agents.timepay.ai/api/v1/workflows/action/resume","href":"/api-reference/agents/workflows/resume-workflow"},{"title":"Pause Workflow","api":"POST https://api.agents.timepay.ai/api/v1/workflows/action/pause","href":"/api-reference/agents/workflows/pause-workflow"},{"title":"Delete Workflow Template","api":"DELETE https://api.agents.timepay.ai/api/v1/workflows/templates/{id}","href":"/api-reference/agents/workflows/delete-workflow-template"}]},{"group":"AI Agents","icon":"user-robot","pages":[{"title":"List Agents","api":"GET https://api.agents.timepay.ai/api/v1/agents","href":"/api-reference/agents/agents/list"},{"title":"Delete Agent","api":"DELETE https://api.agents.timepay.ai/api/v1/agents/{id}","href":"/api-reference/agents/agents/delete"}]},{"group":"Dispositions Management","icon":"tags","pages":[{"group":"Dispositions","pages":[{"title":"List Dispositions","api":"GET https://api.agents.timepay.ai/api/v1/dispositions","href":"/api-reference/agents/dispositions/list-disposition"},{"title":"Create Disposition","api":"POST https://api.agents.timepay.ai/api/v1/dispositions/create","href":"/api-reference/agents/dispositions/create-disposition"},{"title":"Get Disposition","api":"GET https://api.agents.timepay.ai/api/v1/dispositions/{id}","href":"/api-reference/agents/dispositions/get-disposition"},{"title":"Update Disposition","api":"PUT https://api.agents.timepay.ai/api/v1/dispositions/{id}","href":"/api-reference/agents/dispositions/update-disposition"},{"title":"Delete Disposition","api":"DELETE https://api.agents.timepay.ai/api/v1/dispositions/{id}","href":"/api-reference/agents/dispositions/delete-disposition"}]},{"group":"Dispositions Group","pages":[{"title":"List Disposition Groups","api":"GET https://api.agents.timepay.ai/api/v1/dispositions/groups/list","href":"/api-reference/agents/dispositions/list-disposition-group"},{"title":"Create Disposition Group","api":"POST https://api.agents.timepay.ai/api/v1/dispositions/groups/create","href":"/api-reference/agents/dispositions/create-disposition-group"},{"title":"Get Disposition Group","api":"GET https://api.agents.timepay.ai/api/v1/dispositions/groups/{id}","href":"/api-reference/agents/dispositions/get-disposition-group"},{"title":"Update Disposition Group","api":"PUT https://api.agents.timepay.ai/api/v1/dispositions/groups/{id}","href":"/api-reference/agents/dispositions/update-disposition-group"},{"title":"Delete Disposition Group","api":"DELETE https://api.agents.timepay.ai/api/v1/dispositions/groups/{id}","href":"/api-reference/agents/dispositions/delete-disposition-group"},{"title":"Add Dispositions to Group","api":"POST https://api.agents.timepay.ai/api/v1/dispositions/groups/{id}/dispositions","href":"/api-reference/agents/dispositions/add-disposition-in-group"},{"title":"Remove Dispositions from Group","api":"DELETE https://api.agents.timepay.ai/api/v1/dispositions/groups/{id}/dispositions","href":"/api-reference/agents/dispositions/remove-disposition-from-group"}]}]},{"group":"Customers","icon":"users","pages":[{"title":"List Customers","api":"POST https://api.agents.timepay.ai/api/v1/customers/list","href":"/api-reference/agents/customer-data/list-customers"},{"title":"Check Customer Exists","api":"POST https://api.agents.timepay.ai/api/v1/customers/exists","href":"/api-reference/agents/customer-data/customer-exists"},{"title":"Update Customer","api":"PUT https://api.agents.timepay.ai/api/v1/customers/update","href":"/api-reference/agents/customer-data/update-customer-data"},{"title":"Bulk Update Customer","api":"PUT https://api.agents.timepay.ai/api/v1/customers/update/bulk","description":"Update multiple customer records in a single request.","href":"/api-reference/agents/customer-data/bulk-update-customer-data"},{"title":"Add Customer","api":"POST https://api.agents.timepay.ai/api/v1/customers/add","href":"/api-reference/agents/customer-data/add-customer"},{"title":"Bulk Add Customers","api":"POST https://api.agents.timepay.ai/api/v1/customers/add/bulk","description":"Add multiple customer records to an existing campaign in a single request with optional call initiation.","href":"/api-reference/agents/customer-data/bulk-add-customer"}]},{"group":"Manual Initiations","icon":"bullhorn","pages":[{"title":"Initiate Call(s)","api":"POST https://api.agents.timepay.ai/api/v1/initiate/{campaignId}/calls","href":"/api-reference/agents/manual-initiations/initiate-call"},{"title":"Initiate WhatsApp","api":"POST https://api.agents.timepay.ai/api/v1/initiate/{campaignId}/whatsapp","href":"/api-reference/agents/manual-initiations/initiate-whatsapp"},{"title":"Initiate SMS","api":"POST https://api.agents.timepay.ai/api/v1/initiate/{campaignId}/sms","href":"/api-reference/agents/manual-initiations/initiate-sms"}]},{"group":"Details","icon":"align-justify","pages":[{"title":"Get Call Details","api":"GET https://api.agents.timepay.ai/api/v1/communication/call/{call_id}","href":"/api-reference/agents/details/call"},{"title":"Get WhatsApp Details","api":"GET https://api.agents.timepay.ai/api/v1/communication/whatsapp/{message_id}","href":"/api-reference/agents/details/whatsapp"},{"title":"Get Logs","api":"GET https://api.agents.timepay.ai/api/v1/logs","href":"/api-reference/agents/details/logs"}]},{"group":"Media","icon":"file","pages":[{"title":"Get Recording","api":"GET https://api.agents.timepay.ai/api/v1/recording/{recording_id}","href":"/api-reference/agents/media/getRecording"},{"title":"Get Transcript","api":"GET https://api.agents.timepay.ai/api/v1/transcript/{transcript_id}","href":"/api-reference/agents/media/getTranscript"}]},{"group":"Blacklist","icon":"shield-slash","pages":[{"title":"Add to Blacklist","api":"POST https://api.agents.timepay.ai/api/v1/blacklist/bulk/add","href":"/api-reference/agents/blacklist/add"},{"title":"Remove from Blacklist","api":"DELETE https://api.agents.timepay.ai/api/v1/blacklist/bulk/remove","href":"/api-reference/agents/blacklist/remove"}]},{"group":"Numbers Management","icon":"phone","pages":[{"title":"List Numbers","api":"GET https://api.agents.timepay.ai/api/v1/numbers/searchNumbers","href":"/api-reference/agents/numbers/list-numbers"},{"title":"Buy Numbers","api":"POST https://api.agents.timepay.ai/api/v1/numbers/buyNumbers","href":"/api-reference/agents/numbers/buy-numbers"}]}]}]}]},"title":"Add Customer - timepay.ai","buildId":"dpl_EnxDqhjaNc9a8MVa833TGULPd9uJ","deploymentId":"dpl_EnxDqhjaNc9a8MVa833TGULPd9uJ","dynamics":["c2aa737661","2b790eda92","b0f84f53ff"],"chunks":["OpenApiReferenceProvider-26-lDe7V.js","utils-CWQmgYtH.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-4-Aw3rSD.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-C2zjXYA5.js","snippetPresets-DFmpFA7C.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","ApiExamples-FJpQavWq.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-D_GvPF7k.js","shallow-Bs2ZB0NO.js","getApiPlaygroundDisplay-DCcqJJk-.js","CodeSnippet-DzDxawVe.js","CodeSnippets-aUr7fU-7.js","Page-CT9uE8Ip.js","getPastedJson-Y1fKsj_I.js","icon-DI4zTsDr.js","MethodPill-C0nDlmSQ.js","DuplicateIcon-NUXbx2nQ.js","createIcon-BdTHrPAi.js","DynamicMarkdown-CtpgKJwj.js","SectionHeading-B3x35tOt.js","axios-vUo_bRtp.js"]}