Deprecated — do not send. An agent has no direction: one phone number belongs to one agent, and that number both answers incoming calls and places outgoing ones. The value is still accepted so existing integrations keep working, but it is not stored, and the created agent comes back with direction: null.Creating an agent that places calls requires no special setting. Assign it a phone number and it can both answer and dial.
One exception, and the reason to omit the field rather than pass it: explicitly sending direction: "outbound" still requires an approved KYC status on the account, and returns 403 if the account is not verified. Omitting the field avoids that check entirely.
URL to receive a POST request after each conversation ends. The payload includes the transcript, summary, outcome, duration, contact details, and extracted fields. Set to null to disable. See the Post-conversation webhook page for the full payload.
URL to receive a POST request after each chat conversation ends (SMS, Instagram, Messenger, email, or web chat). The payload includes the transcript, summary, channel, contact details, and extracted fields. Set to null to disable. See the Post-conversation webhook page for the full payload.
URL to receive a POST request after each web agent conversation ends. The payload includes the transcript, summary, outcome, duration, and extracted fields. Set to null to disable. See the Post-conversation webhook page for the full payload.
curl -X POST "https://api.nedzo.ai/v1/agents" \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "name": "Customer Support Agent", "agentType": "Voice", "workspaceId": "123e4567-e89b-12d3-a456-426614174000", "prompt": "You are a helpful customer support assistant.", "openingLine": "Hello! How can I help you today?", "language": "english", "voiceId": "voice_123", "backgroundSound": true, "callDuration": 30, "postConversationWebhookUrl": "https://example.com/webhooks/conversation-completed" }'
{ "id": "123e4567-e89b-12d3-a456-426614174000", "name": "Customer Support Agent", "agentType": "Voice", "direction": null, "prompt": "You are a helpful customer support assistant.", "isActive": true, "backgroundSound": true, "openingLine": "Hello! How can I help you today?", "language": "english", "voicemail": false, "voicemailMessage": null, "hipaaCompliance": false, "callDuration": 30, "speed": 1.0, "voiceId": "voice_123", "postConversationWebhookUrl": "https://example.com/webhooks/conversation-completed", "createdAt": "2024-01-15T10:30:00Z", "updatedAt": "2024-01-15T10:30:00Z"}
Was this page helpful?
{"docsConfig":{"$schema":"https://mintlify.com/docs.json","theme":"mint","name":"Nedzo","colors":{"primary":"#2e79ff","light":"#5a9aff","dark":"#2e79ff"},"favicon":"https://mintlify.s3.us-west-1.amazonaws.com/nedzoai/favicon.png","logo":{"light":"https://mintcdn.com/nedzoai/0cscfgNlBg1KdrWc/logo/logo.png?fit=max\u0026auto=format\u0026n=0cscfgNlBg1KdrWc\u0026q=85\u0026s=e06023604ef01b7035733cfb69ef32be","dark":"https://mintcdn.com/nedzoai/0cscfgNlBg1KdrWc/logo/logo.png?fit=max\u0026auto=format\u0026n=0cscfgNlBg1KdrWc\u0026q=85\u0026s=e06023604ef01b7035733cfb69ef32be"},"api":{"openapi":"https://api.nedzo.ai/v1/openapi.json","mdx":{"server":"https://api.nedzo.ai/v1","auth":{"method":"bearer","name":null}}},"navbar":{"links":[{"label":"Support","href":"mailto:support@nedzo.ai"}],"primary":{"type":"button","label":"Dashboard","href":"https://app.nedzo.ai"}},"footer":{"socials":{"linkedin":"https://linkedin.com/company/nedzo"}},"styling":{"latex":true},"navigation":{"global":{"anchors":[{"anchor":"Community","href":"https://www.skool.com/nedzo-ai","icon":"users"},{"anchor":"Academy","href":"https://www.skool.com/nedzo-ai/classroom","icon":"graduation-cap"},{"anchor":"Status","href":"https://status.nedzo.ai","icon":"signal-bars"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"nedzoai","hasAudioNarration":false,"actualSubdomain":"nedzoai","customDomains":["docs.nedzo.ai"],"gitSource":{"type":"github","owner":"nedzoai","repo":"nedzo-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"feedback":{"thumbs":true,"issues":true},"entitlements":{},"buildId":"6acf60378cb1216fb5d15001","clientVersion":"0.0.4087","searchFilterCounts":[{"language":"default","tag":"API Reference","count":87},{"language":"default","tag":"Documentation","count":52},{"language":"default","tag":"Workflows","count":29},{"language":"default","tag":"Agents","count":25},{"language":"default","tag":"Workspaces","count":13},{"language":"default","tag":"Billing","count":12},{"language":"default","tag":"Contacts","count":10},{"language":"default","tag":"Integrations","count":10},{"language":"default","tag":"Campaigns","count":9},{"language":"default","tag":"Actions","count":9}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"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":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","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":"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":"turbopuffer-dual-write","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},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"comment-mode","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"api-reference/agents/create","slug":"/api-reference/agents/create","pageMetadata":{"title":"Create agent","api":"POST /agents","description":"Create a new AI agent in a Nedzo workspace via the REST API. Configure the agent type, prompt, voice, language, actions, and knowledge base.","href":"/api-reference/agents/create"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Create a new AI agent in a Nedzo workspace via the REST API. Configure the agent type, prompt, voice, language, actions, and knowledge base.\"\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={a:`a`,code:`code`,p:`p`,strong:`strong`,..._provideComponents(),...props.components},{Heading,Note,ParamField,Tab,Tabs,Tip,Warning}=_components;if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!Tab)_missingMdxReference(`Tab`,true);if(!Tabs)_missingMdxReference(`Tabs`,true);if(!Tip)_missingMdxReference(`Tip`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(Note,{children:_jsxs(_components.p,{children:[`This endpoint is for the VIP plan only. Other plans get a `,_jsx(_components.code,{children:`403`}),`. See `,_jsx(_components.a,{href:`/api-reference/introduction#plan-access`,children:`Plan access`}),`.`]})}),`\n`,_jsx(_components.p,{children:`Create a new agent within a workspace.`}),`\n`,_jsx(Tip,{children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`workspaceId`}),` is required for `,_jsx(_components.strong,{children:`account-scoped`}),` API keys and inferred from the key for `,_jsx(_components.strong,{children:`workspace-scoped`}),` keys. See `,_jsx(_components.a,{href:`/authentication#workspace-id-and-request-scope`,children:`Workspace ID and Request Scope`}),`.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`common-fields`,children:`Common Fields`}),`\n`,_jsx(ParamField,{body:`name`,type:`string`,required:true,id:`param-name`,children:_jsx(_components.p,{children:`Agent name (1-255 characters)`})}),`\n`,_jsx(ParamField,{body:`agentType`,type:`string`,required:true,id:`param-agent-type`,children:_jsxs(_components.p,{children:[`Type of agent to create. Valid values: `,_jsx(_components.code,{children:`Voice`}),`, `,_jsx(_components.code,{children:`Chat`}),`, `,_jsx(_components.code,{children:`Widget`})]})}),`\n`,_jsxs(ParamField,{body:`direction`,type:`string`,deprecated:true,id:`param-direction`,children:[_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Deprecated — do not send.`}),` An agent has no direction: one phone number belongs to one agent, and that number both answers incoming calls and places outgoing ones. The value is still accepted so existing integrations keep working, but it is not stored, and the created agent comes back with `,_jsx(_components.code,{children:`direction: null`}),`.`]}),_jsx(_components.p,{children:`Creating an agent that places calls requires no special setting. Assign it a phone number and it can both answer and dial.`}),_jsx(Warning,{children:_jsxs(_components.p,{children:[`One exception, and the reason to omit the field rather than pass it: explicitly sending `,_jsx(_components.code,{children:`direction: \"outbound\"`}),` still requires an approved KYC status on the account, and returns `,_jsx(_components.code,{children:`403`}),` if the account is not verified. Omitting the field avoids that check entirely.`]})})]}),`\n`,_jsx(ParamField,{body:`workspaceId`,type:`string`,id:`param-workspace-id`,children:_jsx(_components.p,{children:`Workspace UUID (required for account API keys, optional for workspace API keys)`})}),`\n`,_jsx(ParamField,{body:`prompt`,type:`string`,id:`param-prompt`,children:_jsx(_components.p,{children:`System prompt for the agent`})}),`\n`,_jsx(ParamField,{body:`language`,type:`string`,id:`param-language`,children:_jsxs(_components.p,{children:[`Agent language. Valid values: `,_jsx(_components.code,{children:`english`}),`, `,_jsx(_components.code,{children:`spanish`}),`, `,_jsx(_components.code,{children:`french`}),`, `,_jsx(_components.code,{children:`german`}),`, `,_jsx(_components.code,{children:`portuguese`}),`, `,_jsx(_components.code,{children:`dutch`}),`, `,_jsx(_components.code,{children:`chinese`}),`, `,_jsx(_components.code,{children:`japanese`}),` (default: “english”)`]})}),`\n`,_jsx(ParamField,{body:`isActive`,type:`boolean`,id:`param-is-active`,children:_jsx(_components.p,{children:`Whether the agent is active (default: true)`})}),`\n`,_jsx(Heading,{level:`2`,id:`type-specific-fields`,children:`Type-Specific Fields`}),`\n`,_jsxs(Tabs,{children:[_jsxs(Tab,{title:`Voice`,id:`voice`,children:[_jsx(ParamField,{body:`openingLine`,type:`string`,id:`param-opening-line`,children:_jsx(_components.p,{children:`Opening line the agent says when starting a conversation`})}),_jsx(ParamField,{body:`voiceId`,type:`string`,id:`param-voice-id`,children:_jsx(_components.p,{children:`Voice ID for text-to-speech`})}),_jsx(ParamField,{body:`voicemail`,type:`boolean`,id:`param-voicemail`,children:_jsx(_components.p,{children:`Enable voicemail detection (default: false). Applies to calls the agent places.`})}),_jsx(ParamField,{body:`voicemailMessage`,type:`string`,id:`param-voicemail-message`,children:_jsx(_components.p,{children:`Message to leave on voicemail`})}),_jsx(ParamField,{body:`backgroundSound`,type:`boolean`,id:`param-background-sound`,children:_jsx(_components.p,{children:`Enable background sound (default: true)`})}),_jsx(ParamField,{body:`hipaaCompliance`,type:`boolean`,id:`param-hipaa-compliance`,children:_jsx(_components.p,{children:`When this is enabled, no logs, recordings, or transcriptions will be stored (default: false)`})}),_jsx(ParamField,{body:`callDuration`,type:`integer`,id:`param-call-duration`,children:_jsx(_components.p,{children:`Maximum call duration in minutes, 1-60 (default: 30)`})}),_jsx(ParamField,{body:`speed`,type:`number`,id:`param-speed`,children:_jsx(_components.p,{children:`Voice speed multiplier, 0.5-1.5 (default: 1.0)`})}),_jsx(ParamField,{body:`postConversationWebhookUrl`,type:`string`,id:`param-post-conversation-webhook-url`,children:_jsxs(_components.p,{children:[`URL to receive a POST request after each conversation ends. The payload includes the transcript, summary, outcome, duration, contact details, and extracted fields. Set to `,_jsx(_components.code,{children:`null`}),` to disable. See the `,_jsx(_components.a,{href:`/agents/post-conversation-webhook`,children:`Post-conversation webhook`}),` page for the full payload.`]})}),_jsx(ParamField,{body:`postCallWebhookUrl`,type:`string`,deprecated:true,id:`param-post-call-webhook-url`,children:_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Deprecated.`}),` Use `,_jsx(_components.code,{children:`postConversationWebhookUrl`}),` instead. Still accepted on input for backwards compatibility; responses always use the new field.`]})})]}),_jsx(Tab,{title:`Chat`,id:`chat`,children:_jsx(ParamField,{body:`postConversationWebhookUrl`,type:`string`,id:`param-post-conversation-webhook-url-1`,children:_jsxs(_components.p,{children:[`URL to receive a POST request after each chat conversation ends (SMS, Instagram, Messenger, email, or web chat). The payload includes the transcript, summary, channel, contact details, and extracted fields. Set to `,_jsx(_components.code,{children:`null`}),` to disable. See the `,_jsx(_components.a,{href:`/agents/post-conversation-webhook`,children:`Post-conversation webhook`}),` page for the full payload.`]})})}),_jsx(Tab,{title:`Widget`,id:`widget`,children:_jsx(ParamField,{body:`postConversationWebhookUrl`,type:`string`,id:`param-post-conversation-webhook-url-2`,children:_jsxs(_components.p,{children:[`URL to receive a POST request after each web agent conversation ends. The payload includes the transcript, summary, outcome, duration, and extracted fields. Set to `,_jsx(_components.code,{children:`null`}),` to disable. See the `,_jsx(_components.a,{href:`/agents/post-conversation-webhook`,children:`Post-conversation webhook`}),` page for the full payload.`]})})})]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Create agent","api":"POST /agents","description":"Create a new AI agent in a Nedzo workspace via the REST API. Configure the agent type, prompt, voice, language, actions, and knowledge base.","href":"/api-reference/agents/create"}}},"mdxSourceWithNoJs":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,..._provideComponents(),...props.components},{CodeBlock,Heading,Note,ParamField,RequestExample,ResponseExample,Tab,Tabs,Tip,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!RequestExample)_missingMdxReference(`RequestExample`,true);if(!ResponseExample)_missingMdxReference(`ResponseExample`,true);if(!Tab)_missingMdxReference(`Tab`,true);if(!Tabs)_missingMdxReference(`Tabs`,true);if(!Tip)_missingMdxReference(`Tip`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(Note,{children:_jsxs(_components.p,{children:[`This endpoint is for the VIP plan only. Other plans get a `,_jsx(_components.code,{children:`403`}),`. See `,_jsx(_components.a,{href:`/api-reference/introduction#plan-access`,children:`Plan access`}),`.`]})}),`\n`,_jsx(_components.p,{children:`Create a new agent within a workspace.`}),`\n`,_jsx(Tip,{children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`workspaceId`}),` is required for `,_jsx(_components.strong,{children:`account-scoped`}),` API keys and inferred from the key for `,_jsx(_components.strong,{children:`workspace-scoped`}),` keys. See `,_jsx(_components.a,{href:`/authentication#workspace-id-and-request-scope`,children:`Workspace ID and Request Scope`}),`.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`common-fields`,children:`Common Fields`}),`\n`,_jsx(ParamField,{body:`name`,type:`string`,required:true,id:`param-name`,children:_jsx(_components.p,{children:`Agent name (1-255 characters)`})}),`\n`,_jsx(ParamField,{body:`agentType`,type:`string`,required:true,id:`param-agent-type`,children:_jsxs(_components.p,{children:[`Type of agent to create. Valid values: `,_jsx(_components.code,{children:`Voice`}),`, `,_jsx(_components.code,{children:`Chat`}),`, `,_jsx(_components.code,{children:`Widget`})]})}),`\n`,_jsxs(ParamField,{body:`direction`,type:`string`,deprecated:true,id:`param-direction`,children:[_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Deprecated — do not send.`}),` An agent has no direction: one phone number belongs to one agent, and that number both answers incoming calls and places outgoing ones. The value is still accepted so existing integrations keep working, but it is not stored, and the created agent comes back with `,_jsx(_components.code,{children:`direction: null`}),`.`]}),_jsx(_components.p,{children:`Creating an agent that places calls requires no special setting. Assign it a phone number and it can both answer and dial.`}),_jsx(Warning,{children:_jsxs(_components.p,{children:[`One exception, and the reason to omit the field rather than pass it: explicitly sending `,_jsx(_components.code,{children:`direction: \"outbound\"`}),` still requires an approved KYC status on the account, and returns `,_jsx(_components.code,{children:`403`}),` if the account is not verified. Omitting the field avoids that check entirely.`]})})]}),`\n`,_jsx(ParamField,{body:`workspaceId`,type:`string`,id:`param-workspace-id`,children:_jsx(_components.p,{children:`Workspace UUID (required for account API keys, optional for workspace API keys)`})}),`\n`,_jsx(ParamField,{body:`prompt`,type:`string`,id:`param-prompt`,children:_jsx(_components.p,{children:`System prompt for the agent`})}),`\n`,_jsx(ParamField,{body:`language`,type:`string`,id:`param-language`,children:_jsxs(_components.p,{children:[`Agent language. Valid values: `,_jsx(_components.code,{children:`english`}),`, `,_jsx(_components.code,{children:`spanish`}),`, `,_jsx(_components.code,{children:`french`}),`, `,_jsx(_components.code,{children:`german`}),`, `,_jsx(_components.code,{children:`portuguese`}),`, `,_jsx(_components.code,{children:`dutch`}),`, `,_jsx(_components.code,{children:`chinese`}),`, `,_jsx(_components.code,{children:`japanese`}),` (default: “english”)`]})}),`\n`,_jsx(ParamField,{body:`isActive`,type:`boolean`,id:`param-is-active`,children:_jsx(_components.p,{children:`Whether the agent is active (default: true)`})}),`\n`,_jsx(Heading,{level:`2`,id:`type-specific-fields`,children:`Type-Specific Fields`}),`\n`,_jsxs(Tabs,{children:[_jsxs(Tab,{title:`Voice`,id:`voice`,children:[_jsx(ParamField,{body:`openingLine`,type:`string`,id:`param-opening-line`,children:_jsx(_components.p,{children:`Opening line the agent says when starting a conversation`})}),_jsx(ParamField,{body:`voiceId`,type:`string`,id:`param-voice-id`,children:_jsx(_components.p,{children:`Voice ID for text-to-speech`})}),_jsx(ParamField,{body:`voicemail`,type:`boolean`,id:`param-voicemail`,children:_jsx(_components.p,{children:`Enable voicemail detection (default: false). Applies to calls the agent places.`})}),_jsx(ParamField,{body:`voicemailMessage`,type:`string`,id:`param-voicemail-message`,children:_jsx(_components.p,{children:`Message to leave on voicemail`})}),_jsx(ParamField,{body:`backgroundSound`,type:`boolean`,id:`param-background-sound`,children:_jsx(_components.p,{children:`Enable background sound (default: true)`})}),_jsx(ParamField,{body:`hipaaCompliance`,type:`boolean`,id:`param-hipaa-compliance`,children:_jsx(_components.p,{children:`When this is enabled, no logs, recordings, or transcriptions will be stored (default: false)`})}),_jsx(ParamField,{body:`callDuration`,type:`integer`,id:`param-call-duration`,children:_jsx(_components.p,{children:`Maximum call duration in minutes, 1-60 (default: 30)`})}),_jsx(ParamField,{body:`speed`,type:`number`,id:`param-speed`,children:_jsx(_components.p,{children:`Voice speed multiplier, 0.5-1.5 (default: 1.0)`})}),_jsx(ParamField,{body:`postConversationWebhookUrl`,type:`string`,id:`param-post-conversation-webhook-url`,children:_jsxs(_components.p,{children:[`URL to receive a POST request after each conversation ends. The payload includes the transcript, summary, outcome, duration, contact details, and extracted fields. Set to `,_jsx(_components.code,{children:`null`}),` to disable. See the `,_jsx(_components.a,{href:`/agents/post-conversation-webhook`,children:`Post-conversation webhook`}),` page for the full payload.`]})}),_jsx(ParamField,{body:`postCallWebhookUrl`,type:`string`,deprecated:true,id:`param-post-call-webhook-url`,children:_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Deprecated.`}),` Use `,_jsx(_components.code,{children:`postConversationWebhookUrl`}),` instead. Still accepted on input for backwards compatibility; responses always use the new field.`]})})]}),_jsx(Tab,{title:`Chat`,id:`chat`,children:_jsx(ParamField,{body:`postConversationWebhookUrl`,type:`string`,id:`param-post-conversation-webhook-url-1`,children:_jsxs(_components.p,{children:[`URL to receive a POST request after each chat conversation ends (SMS, Instagram, Messenger, email, or web chat). The payload includes the transcript, summary, channel, contact details, and extracted fields. Set to `,_jsx(_components.code,{children:`null`}),` to disable. See the `,_jsx(_components.a,{href:`/agents/post-conversation-webhook`,children:`Post-conversation webhook`}),` page for the full payload.`]})})}),_jsx(Tab,{title:`Widget`,id:`widget`,children:_jsx(ParamField,{body:`postConversationWebhookUrl`,type:`string`,id:`param-post-conversation-webhook-url-2`,children:_jsxs(_components.p,{children:[`URL to receive a POST request after each web agent conversation ends. The payload includes the transcript, summary, outcome, duration, and extracted fields. Set to `,_jsx(_components.code,{children:`null`}),` to disable. See the `,_jsx(_components.a,{href:`/agents/post-conversation-webhook`,children:`Post-conversation webhook`}),` page for the full payload.`]})})})]}),`\n`,_jsx(RequestExample,{children:_jsx(CodeBlock,{filename:`cURL`,numberOfLines:`15`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`15`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://api.nedzo.ai/v1/agents\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer YOUR_API_KEY\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"name\": \"Customer Support Agent\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"agentType\": \"Voice\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"workspaceId\": \"123e4567-e89b-12d3-a456-426614174000\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"prompt\": \"You are a helpful customer support assistant.\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"openingLine\": \"Hello! How can I help you today?\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"language\": \"english\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"voiceId\": \"voice_123\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"backgroundSound\": true,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"callDuration\": 30,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"postConversationWebhookUrl\": \"https://example.com/webhooks/conversation-completed\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }'`})}),`\n`]})})})}),`\n`,_jsx(ResponseExample,{children:_jsx(CodeBlock,{filename:`Response`,numberOfLines:`20`,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:`20`,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:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"123e4567-e89b-12d3-a456-426614174000\"`}),_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:` \"name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Customer Support Agent\"`}),_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:` \"agentType\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Voice\"`}),_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:` \"direction\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`}),_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:` \"prompt\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"You are a helpful customer support assistant.\"`}),_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:` \"isActive\"`}),_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:` \"backgroundSound\"`}),_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:` \"openingLine\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Hello! How can I help you today?\"`}),_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:` \"language\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"english\"`}),_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:` \"voicemail\"`}),_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:` \"voicemailMessage\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`}),_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:` \"hipaaCompliance\"`}),_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:` \"callDuration\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`30`}),_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:` \"speed\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1.0`}),_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:` \"voiceId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"voice_123\"`}),_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:` \"postConversationWebhookUrl\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://example.com/webhooks/conversation-completed\"`}),_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:` \"createdAt\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2024-01-15T10:30:00Z\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"updatedAt\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2024-01-15T10:30:00Z\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Create agent","api":"POST /agents","description":"Create a new AI agent in a Nedzo workspace via the REST API. Configure the agent type, prompt, voice, language, actions, and knowledge base.","href":"/api-reference/agents/create"}}}},"mdxExtracts":{"tableOfContents":[{"title":"Common Fields","slug":"common-fields","depth":2,"children":[]},{"title":"Type-Specific Fields","slug":"type-specific-fields","depth":2,"children":[]}],"codeExamples":{"request":{"type":"RequestExample","children":[{"filename":"cURL","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"shellscript\">\u003ccode language=\"shellscript\" numberOfLines=\"15\">\u003cspan class=\"line\">\u003cspan style=\"color:#953800;--shiki-dark:#DCDCAA\">curl\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -X\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> POST\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"https://api.nedzo.ai/v1/agents\"\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -H\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"Authorization: Bearer YOUR_API_KEY\"\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -H\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"Content-Type: application/json\"\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -d\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> '{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"name\": \"Customer Support Agent\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"agentType\": \"Voice\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"workspaceId\": \"123e4567-e89b-12d3-a456-426614174000\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"prompt\": \"You are a helpful customer support assistant.\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"openingLine\": \"Hello! How can I help you today?\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"language\": \"english\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"voiceId\": \"voice_123\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"backgroundSound\": true,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"callDuration\": 30,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"postConversationWebhookUrl\": \"https://example.com/webhooks/conversation-completed\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> }'\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"}],"attributes":[]},"response":{"type":"ResponseExample","children":[{"filename":"Response","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=\"20\">\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\"> \"id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"123e4567-e89b-12d3-a456-426614174000\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"name\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Customer Support Agent\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"agentType\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Voice\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"direction\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">null\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"prompt\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"You are a helpful customer support assistant.\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"isActive\"\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\"> \"backgroundSound\"\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\"> \"openingLine\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Hello! How can I help you today?\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"language\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"english\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"voicemail\"\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\"> \"voicemailMessage\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">null\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"hipaaCompliance\"\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\"> \"callDuration\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">30\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"speed\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">1.0\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"voiceId\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"voice_123\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"postConversationWebhookUrl\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"https://example.com/webhooks/conversation-completed\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"createdAt\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"2024-01-15T10:30:00Z\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"updatedAt\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"2024-01-15T10:30:00Z\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"}],"attributes":[]}},"endpoint":{"title":"Create agent","path":"/agents","servers":[{"url":"https://api.nedzo.ai/v1"}],"method":"post","request":{"security":[{"title":"Bearer Auth","parameters":{"header":{"Authorization":{"type":"http","scheme":"bearer","description":"Bearer authentication header of the form `Bearer \u003ctoken>`, where `\u003ctoken>` is your auth token."}},"query":{},"cookie":{}}}],"parameters":{"query":{},"header":{},"cookie":{},"path":{}},"body":{"application/json":{"schemaArray":[{"type":"object","properties":{"name":[{"type":"string","description":"Agent name (1-255 characters)","required":true}],"agentType":[{"type":"string","description":"Type of agent to create. Valid values: `Voice` , `Chat` , `Widget`","required":true}],"direction":[{"type":"string","description":"Deprecated — do not send. An agent has no direction: one phone number belongs to one agent, and that number both answers incoming calls and places outgoing ones. The value is still accepted so existing integrations keep working, but it is not stored, and the created agent comes back with `direction: null` . Creating an agent that places calls requires no special setting. Assign it a phone number and it can both answer and dial.","deprecated":true}],"workspaceId":[{"type":"string","description":"Workspace UUID (required for account API keys, optional for workspace API keys)"}],"prompt":[{"type":"string","description":"System prompt for the agent"}],"language":[{"type":"string","description":"Agent language. Valid values: `english` , `spanish` , `french` , `german` , `portuguese` , `dutch` , `chinese` , `japanese` (default: “english”)"}],"isActive":[{"type":"boolean","description":"Whether the agent is active (default: true)"}]}}],"examples":{"example":{"value":{"name":"\u003cstring>","agentType":"\u003cstring>","direction":"\u003cstring>","workspaceId":"\u003cstring>","prompt":"\u003cstring>","language":"\u003cstring>","isActive":true}}}}}},"response":{},"deprecated":false}},"jsLinks":[],"subdomain":"nedzoai","siteName":"Nedzo","title":"Create agent - Nedzo","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-10-04T16:58:44.758Z","originalFileLocation":"api-reference/agents/create.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=\"Create a new AI agent in a Nedzo workspace via the REST API. Configure the agent type, prompt, voice, language, actions, and knowledge base.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Nedzo\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"https://mintlify.s3.us-west-1.amazonaws.com/nedzoai/favicon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"https://mintlify.s3.us-west-1.amazonaws.com/nedzoai/favicon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"https://mintlify.s3.us-west-1.amazonaws.com/nedzoai/favicon.png\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/png\" href=\"https://mintlify.s3.us-west-1.amazonaws.com/nedzoai/favicon.png\">\u003cmeta data-mint-head property=\"og:title\" content=\"Create agent - Nedzo\">\u003cmeta data-mint-head property=\"og:description\" content=\"Create a new AI agent in a Nedzo workspace via the REST API. Configure the agent type, prompt, voice, language, actions, and knowledge base.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Nedzo\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.nedzo.ai/api-reference/agents/create\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://nedzoai.mintlify.site/_mintlify/api/og/v2?division=Agents\u0026amp;title=Create+agent\u0026amp;description=Create+a+new+AI+agent+in+a+Nedzo+workspace+via+the+REST+API.+Configure+the+agent+type%2C+prompt%2C+voice%2C+language%2C+actions%2C+and+knowledge+base.\u0026amp;theme=48b8b2f0aab03f12b2c27694\u0026amp;signature=9b427d3cbc834c3ab37b277fbd327f77611bbc91aa87630f5c0dc45e7c2d59b3\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Create agent - Nedzo\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Create a new AI agent in a Nedzo workspace via the REST API. Configure the agent type, prompt, voice, language, actions, and knowledge base.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://nedzoai.mintlify.site/_mintlify/api/og/v2?division=Agents\u0026amp;title=Create+agent\u0026amp;description=Create+a+new+AI+agent+in+a+Nedzo+workspace+via+the+REST+API.+Configure+the+agent+type%2C+prompt%2C+voice%2C+language%2C+actions%2C+and+knowledge+base.\u0026amp;theme=48b8b2f0aab03f12b2c27694\u0026amp;signature=9b427d3cbc834c3ab37b277fbd327f77611bbc91aa87630f5c0dc45e7c2d59b3\">\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=\"https://mintlify.s3.us-west-1.amazonaws.com/nedzoai/_generated/favicon/browserconfig.xml?v=3\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Nedzo\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#2e79ff\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.nedzo.ai/api-reference/agents/create\">\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/create.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.nedzo.ai/#organization\",\"name\":\"Nedzo\",\"url\":\"https://docs.nedzo.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/nedzoai/0cscfgNlBg1KdrWc/logo/logo.png?fit=max\u0026auto=format\u0026n=0cscfgNlBg1KdrWc\u0026q=85\u0026s=e06023604ef01b7035733cfb69ef32be\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.nedzo.ai#website\",\"name\":\"Nedzo\",\"url\":\"https://docs.nedzo.ai\",\"publisher\":{\"@id\":\"https://docs.nedzo.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.nedzo.ai/api-reference/agents/create#webpage\",\"url\":\"https://docs.nedzo.ai/api-reference/agents/create\",\"name\":\"Create agent\",\"description\":\"Create a new AI agent in a Nedzo workspace via the REST API. Configure the agent type, prompt, voice, language, actions, and knowledge base.\",\"dateModified\":\"2026-10-04T16:58:44.758Z\",\"isPartOf\":{\"@id\":\"https://docs.nedzo.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.nedzo.ai/api-reference/agents/create#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.nedzo.ai/api-reference/agents/create#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Agents\",\"item\":\"https://docs.nedzo.ai/api-reference/agents/list\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Create agent\",\"item\":\"https://docs.nedzo.ai/api-reference/agents/create\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.nedzo.ai/api-reference/agents/create#apireference\",\"headline\":\"Create agent\",\"name\":\"Create agent\",\"description\":\"Create a new AI agent in a Nedzo workspace via the REST API. Configure the agent type, prompt, voice, language, actions, and knowledge base.\",\"url\":\"https://docs.nedzo.ai/api-reference/agents/create\",\"mainEntityOfPage\":{\"@id\":\"https://docs.nedzo.ai/api-reference/agents/create#webpage\"},\"dateModified\":\"2026-10-04T16:58:44.758Z\",\"publisher\":{\"@id\":\"https://docs.nedzo.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.nedzo.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Nedzo\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Nedzo","nav":{"global":{"anchors":[{"anchor":"Community","href":"https://www.skool.com/nedzo-ai","icon":"users"},{"anchor":"Academy","href":"https://www.skool.com/nedzo-ai/classroom","icon":"graduation-cap"},{"anchor":"Status","href":"https://status.nedzo.ai","icon":"signal-bars"}]},"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":"/introduction"}]},{"tab":"API Reference","groups":[{"group":"API Reference","pages":[{"title":"API reference","href":"/api-reference/introduction"}]},{"group":"Workspaces","pages":[{"title":"List workspaces","api":"GET /workspaces","href":"/api-reference/workspaces/list"},{"title":"Create workspace","api":"POST /workspaces","href":"/api-reference/workspaces/create"},{"title":"Get workspace","api":"GET /workspaces/{id}","href":"/api-reference/workspaces/get"},{"title":"Update workspace","api":"PATCH /workspaces/{id}","href":"/api-reference/workspaces/update"},{"title":"Delete workspace","api":"DELETE /workspaces/{id}","href":"/api-reference/workspaces/delete"},{"group":"Billing","pages":[{"title":"Get wallet balance","api":"GET /workspaces/{workspaceId}/billing/balance","href":"/api-reference/workspace-billing/get-balance"},{"title":"Credit wallet","api":"POST /workspaces/{workspaceId}/billing/wallet/credit","href":"/api-reference/workspace-billing/credit-wallet"},{"title":"Debit wallet","api":"POST /workspaces/{workspaceId}/billing/wallet/debit","href":"/api-reference/workspace-billing/debit-wallet"},{"title":"List wallet transactions","api":"GET /workspaces/{workspaceId}/billing/transactions","href":"/api-reference/workspace-billing/list-transactions"},{"title":"Get usage summary","api":"GET /workspaces/{workspaceId}/billing/usage","href":"/api-reference/workspace-billing/get-usage"},{"title":"List payment methods","api":"GET /workspaces/{workspaceId}/billing/payment-methods","href":"/api-reference/workspace-billing/list-payment-methods"},{"title":"Create setup intent","api":"POST /workspaces/{workspaceId}/billing/payment-methods/setup-intent","href":"/api-reference/workspace-billing/create-setup-intent"},{"title":"Attach payment method","api":"POST /workspaces/{workspaceId}/billing/payment-methods/attach","href":"/api-reference/workspace-billing/attach-payment-method"}]}]},{"group":"Agents","pages":[{"title":"List agents","api":"GET /agents","description":"Retrieve all AI agents via the Nedzo REST API. Workspace keys return agents in that workspace; account keys return agents across all workspaces.","href":"/api-reference/agents/list"},{"title":"Create agent","api":"POST /agents","href":"/api-reference/agents/create"},{"title":"Get agent","api":"GET /agents/{id}","description":"Retrieve a single AI agent by UUID via the Nedzo REST API. Returns the agent type, prompt, voice settings, actions, and knowledge base.","href":"/api-reference/agents/get"},{"title":"Update agent","api":"PATCH /agents/{id}","href":"/api-reference/agents/update"},{"title":"Delete agent","api":"DELETE /agents/{id}","href":"/api-reference/agents/delete"},{"title":"Duplicate agent","api":"POST /agents/{agentId}/duplicate","href":"/api-reference/agents/duplicate"},{"title":"Test agent webhook","api":"POST /agents/{agentId}/test-webhook","href":"/api-reference/agents/test-webhook"},{"title":"Agent knowledge","href":"/api-reference/agents/knowledge"},{"title":"Agent actions","href":"/api-reference/agents/actions"},{"title":"Custom actions","href":"/api-reference/agents/custom-actions"},{"title":"MCP servers","href":"/api-reference/agents/mcp-servers"},{"title":"Extraction fields","href":"/api-reference/agents/extraction-fields"},{"title":"List calendars","api":"GET /calendars","href":"/api-reference/agents/calendars"},{"title":"Give an agent a phone number","api":"PUT /agents/{agentId}/phone-number","href":"/api-reference/agents/assign-phone-number"},{"title":"Take an agent's phone numbers away","api":"DELETE /agents/{agentId}/phone-number","href":"/api-reference/agents/unassign-phone-number"}]},{"group":"Phone Numbers","pages":[{"title":"List phone numbers","api":"GET /phone-numbers","href":"/api-reference/phone-numbers/list"},{"title":"Search numbers","api":"POST /phone-numbers/search","href":"/api-reference/phone-numbers/search"},{"title":"Buy a phone number","api":"POST /phone-numbers","href":"/api-reference/phone-numbers/buy"},{"title":"Get a phone number","api":"GET /phone-numbers/{id}","href":"/api-reference/phone-numbers/get"},{"title":"Update a phone number","api":"PATCH /phone-numbers/{id}","href":"/api-reference/phone-numbers/update"},{"title":"Release a phone number","api":"DELETE /phone-numbers/{id}","href":"/api-reference/phone-numbers/release"}]},{"group":"Contacts","pages":[{"title":"List contacts","api":"GET /contacts","href":"/api-reference/contacts/list"},{"title":"Create contact","api":"POST /contacts","href":"/api-reference/contacts/create"},{"title":"Upsert contact","api":"POST /contacts/upsert","href":"/api-reference/contacts/upsert"},{"title":"Get contact","api":"GET /contacts/{id}","href":"/api-reference/contacts/get"},{"title":"Update contact","api":"PATCH /contacts/{id}","href":"/api-reference/contacts/update"},{"title":"Delete contact","api":"DELETE /contacts/{id}","href":"/api-reference/contacts/delete"},{"title":"Import contacts in bulk","href":"/api-reference/contacts/bulk"},{"title":"Contact tags","href":"/api-reference/contacts/tags"},{"title":"Contact custom fields","href":"/api-reference/contacts/custom-fields"},{"title":"Contact views","href":"/api-reference/contacts/views"}]},{"group":"Knowledge","pages":[{"title":"List knowledge","api":"GET /knowledge","href":"/api-reference/knowledge/list"},{"title":"Add knowledge","api":"POST /knowledge","href":"/api-reference/knowledge/create"},{"title":"Get a file upload link","api":"POST /knowledge/uploads","href":"/api-reference/knowledge/upload"},{"title":"Get knowledge","api":"GET /knowledge/{id}","href":"/api-reference/knowledge/get"},{"title":"Update knowledge","api":"PATCH /knowledge/{id}","href":"/api-reference/knowledge/update"},{"title":"Delete knowledge","api":"DELETE /knowledge/{id}","href":"/api-reference/knowledge/delete"}]},{"group":"Templates","pages":[{"title":"List templates","api":"GET /templates","href":"/api-reference/templates/list"},{"title":"Create template","api":"POST /templates","href":"/api-reference/templates/create"},{"title":"Get template","api":"GET /templates/{id}","href":"/api-reference/templates/get"},{"title":"Update template","api":"PATCH /templates/{id}","href":"/api-reference/templates/update"},{"title":"Delete template","api":"DELETE /templates/{id}","href":"/api-reference/templates/delete"},{"title":"Import template","api":"POST /templates/{id}/import","href":"/api-reference/templates/import"},{"title":"Duplicate template","api":"POST /templates/{id}/duplicate","href":"/api-reference/templates/duplicate"}]},{"group":"Campaigns","pages":[{"title":"List campaigns","api":"GET /campaigns","href":"/api-reference/campaigns/list"},{"title":"Create a campaign","api":"POST /campaigns","href":"/api-reference/campaigns/create"},{"title":"Get a campaign","api":"GET /campaigns/{id}","href":"/api-reference/campaigns/get"},{"title":"Update, start or pause a campaign","api":"PATCH /campaigns/{id}","href":"/api-reference/campaigns/update"},{"title":"Delete a campaign","api":"DELETE /campaigns/{id}","href":"/api-reference/campaigns/delete"},{"title":"List campaign contacts","api":"GET /campaigns/{id}/contacts","href":"/api-reference/campaigns/contacts"},{"title":"Get campaign results","api":"GET /campaigns/{id}/results","href":"/api-reference/campaigns/results"},{"title":"Stop calling a contact","api":"POST /campaigns/{id}/contacts/{contactId}/stop","href":"/api-reference/campaigns/stop-contact"}]},{"group":"Calls","pages":[{"title":"Make a call","api":"POST /call","deprecated":true,"href":"/api-reference/calls"}]},{"group":"Workflows","pages":[{"title":"List workflows","api":"GET /workflows","href":"/api-reference/workflows/list"},{"title":"Create a workflow","api":"POST /workflows","href":"/api-reference/workflows/create"},{"title":"Get a workflow","api":"GET /workflows/{id}","href":"/api-reference/workflows/get"},{"title":"Replace a workflow","api":"PUT /workflows/{id}","href":"/api-reference/workflows/replace"},{"title":"Turn a workflow on or off","api":"PATCH /workflows/{id}","href":"/api-reference/workflows/turn-on-off"},{"title":"Delete a workflow","api":"DELETE /workflows/{id}","href":"/api-reference/workflows/delete"},{"title":"Publish or unpublish a workflow","api":"POST /workflows/{id}/publish","href":"/api-reference/workflows/publish"},{"title":"Versions","api":"GET /workflows/{id}/versions","href":"/api-reference/workflows/versions"},{"title":"Step types","api":"GET /workflows/action-types","href":"/api-reference/workflows/step-types"},{"title":"Add contacts to a workflow","api":"POST /workflows/{id}/enroll","href":"/api-reference/workflows/enroll"},{"title":"Runs","api":"GET /workflows/{id}/runs","href":"/api-reference/workflows/runs"}]},{"group":"Conversations","pages":[{"title":"List conversations","api":"GET /conversations","href":"/api-reference/conversations/list"},{"title":"Get a conversation","api":"GET /conversations/{id}","href":"/api-reference/conversations/get"},{"title":"Start a call","api":"POST /conversations/call","href":"/api-reference/conversations/send-call"},{"title":"Send an SMS","api":"POST /conversations/sms","href":"/api-reference/conversations/send-sms"},{"title":"Send an email","api":"POST /conversations/email","href":"/api-reference/conversations/send-email"},{"title":"Send a WhatsApp message","api":"POST /conversations/whatsapp","href":"/api-reference/conversations/send-whatsapp"},{"title":"Reply on Instagram","api":"POST /conversations/instagram","href":"/api-reference/conversations/send-instagram"},{"title":"Reply on Messenger","api":"POST /conversations/messenger","href":"/api-reference/conversations/send-messenger"}]}]}]},"basePath":"","title":"Create agent - Nedzo","buildId":"dpl_FWZhTb2vab28gFGFH4ojka6qEznQ","deploymentId":"dpl_FWZhTb2vab28gFGFH4ojka6qEznQ","dynamics":["c2aa737661","2b790eda92","b0f84f53ff"],"chunks":["OpenApiReferenceProvider-CBsVopKK.js","utils-DZAk68jJ.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-D32AYZrP.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-D_A5_cny.js","snippetPresets-xNRfS9th.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","conditional-requirements-CFM0id0Q.js","ApiExamples-BIB25-tq.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-CydJ4w4j.js","shallow-CYPBeQSG.js","getApiPlaygroundDisplay-A5xJVBOu.js","CodeSnippet-BVRTgi3m.js","CodeSnippets-DjD6BSlt.js","Page-Dr40SSJq.js","getPastedJson-D4V4JyrR.js","icon-uhcnG22T.js","MethodPill-CM-ZQdGH.js","DuplicateIcon-B_WnOiNf.js","createIcon-CJsb8utt.js","DynamicMarkdown-D-2HDKEp.js","SectionHeading-KP5xmMgQ.js","axios-vUo_bRtp.js"]}