Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
workspaceId
string
required
Workspace ID.
Example:
"workspace_01HXKD2E5NQM3T9AYWCF133E3Q"
Body
application/json
Create agent request
metadata
object
required
CreateResourceMetadata contains the user-provided fields for creating
a workspace-scoped resource. Read-only fields (id, account_id, workspace_id, profile_id,
created_at) are excluded since they are set by the server.
Show child attributes
spec
object
required
Agent specification (user-provided configuration)
Show child attributes
defaultVariation
object
Optional default variation to add to the agent on create. Its spec accepts
assignments and memory_layer_assignments using the same atomic validation
as CreateAgentVariation. Failure rejects the entire agent creation.
Show child attributes
Response
OK
Agent resource
metadata
object
required
Resource metadata
Show child attributes
spec
object
required
Agent specification
Show child attributes
info
object
required
Agent information
Show child attributes
state
enum<string>
required
read-only
The current lifecycle state of the agent. Output only. Agents are created
in STATE_DRAFT; use the :publish, :unpublish, :archive, and :unarchive
actions to transition between states.
Available options:
STATE_UNSPECIFIED,
STATE_DRAFT,
STATE_PUBLISHED,
STATE_ARCHIVED
{"docsConfig":{"theme":"aspen","$schema":"https://mintlify.com/docs.json","name":"Cadenya","colors":{"primary":"#165B41","light":"#165B41","dark":"#E1EE9A"},"logo":{"light":"https://mintcdn.com/cadenya/jC_UqeyZ_EgHWKnX/logo/light.svg?fit=max\u0026auto=format\u0026n=jC_UqeyZ_EgHWKnX\u0026q=85\u0026s=163995d0cd296848f58b95d41cfbb847","dark":"https://mintcdn.com/cadenya/jC_UqeyZ_EgHWKnX/logo/dark.svg?fit=max\u0026auto=format\u0026n=jC_UqeyZ_EgHWKnX\u0026q=85\u0026s=3a0a588c1ea4bb31882a0eb52df74362","href":"https://cadenya.com"},"favicon":"https://mintcdn.com/cadenya/jC_UqeyZ_EgHWKnX/favicon.svg?fit=max\u0026auto=format\u0026n=jC_UqeyZ_EgHWKnX\u0026q=85\u0026s=88bfdd038a09cd476e2dd90fa68f8074","api":{"examples":{"languages":["shell","ruby","go","typescript","python"],"autogenerate":false}},"navbar":{"links":[{"href":"https://app.cadenya.com/signup","label":"Sign Up"}],"primary":{"type":"button","label":"Dashboard","href":"https://app.cadenya.com/login"}},"footer":{"socials":{"x":"https://x.com/cadenya","github":"https://github.com/cadenya"}},"fonts":{"heading":{"family":"ABC Arizona Flare Light","weight":300,"source":"fonts/ABCArizonaFlare-Light.woff2","format":"woff2"},"body":{"family":"Berkeley Mono","weight":400}},"contextual":{"options":["copy","view","chatgpt","claude","mcp","cursor","vscode"],"display":"header"},"styling":{"latex":true},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"cadenya","hasAudioNarration":false,"actualSubdomain":"cadenya","customDomains":["cadenya.com"],"gitSource":{"type":"github","owner":"cadenya","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"DISABLED"},"WEB_MCP":{"status":"DISABLED"},"NARRATION":{"status":"DISABLED"}},"buildId":"6afa0bb8c11f076dcacd5539","clientVersion":"0.0.4177","searchFilterCounts":[{"language":"default","tag":"API Reference","count":156},{"language":"default","tag":"Objectives","count":19},{"language":"default","tag":"Webhook Events","count":15},{"language":"default","tag":"Widgets API","count":15},{"language":"default","tag":"Guides","count":14},{"language":"default","tag":"Agents","count":11},{"language":"default","tag":"API Keys","count":11},{"language":"default","tag":"Agent Variations","count":10},{"language":"default","tag":"Tool Sets","count":10},{"language":"default","tag":"Workspace Admin","count":9}]},"assistantConfig":{"enableStarterQuestions":false},"basePath":"/docs","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[],"googleFontsInlined":false},"customCss":[{"filePath":"brand.css","content":"@font-face{font-family:\"ABC Arizona Sans\";src:url(\"/fonts/ABCArizonaSansVariable.woff2\") format(\"woff2\");font-weight:100 700;font-style:normal;font-display:swap}@font-face{font-family:\"ABC Arizona Flare Light\";src:url(\"/fonts/ABCArizonaFlare-Light.woff2\") format(\"woff2\");font-weight:300;font-style:normal;font-display:swap}@font-face{font-family:\"ABC Arizona Sans\";src:url(\"/fonts/ABCArizonaSans-RegularItalic.woff2\") format(\"woff2\");font-weight:400;font-style:italic;font-display:swap}@font-face{font-family:\"ABC Arizona Sans\";src:url(\"/fonts/ABCArizonaSans-BoldItalic.woff2\") format(\"woff2\");font-weight:700;font-style:italic;font-display:swap}@font-face{font-family:\"Berkeley Mono\";src:url(\"/fonts/BerkeleyMono-Regular.otf\") format(\"opentype\");font-weight:400;font-style:normal;font-display:swap}:root{--cadenya-soil: #1d2c2f;--cadenya-sky: #ffffff;--cadenya-mycelium: #165b41;--cadenya-canopy: #e1ee9a;--cadenya-table-border: rgba(29, 44, 47, 0.18);--cadenya-table-header: rgba(22, 91, 65, 0.08);--cadenya-mermaid-node: var(--cadenya-canopy);--cadenya-mermaid-border: var(--cadenya-mycelium);--cadenya-mermaid-text: var(--cadenya-soil);--cadenya-mermaid-edge: var(--cadenya-mycelium);--cadenya-mermaid-label: rgba(255, 255, 255, 0.92)}html.dark,[data-theme=\"dark\"]{--cadenya-table-border: rgba(255, 255, 255, 0.2);--cadenya-table-header: rgba(225, 238, 154, 0.1);--cadenya-mermaid-node: var(--cadenya-mycelium);--cadenya-mermaid-border: var(--cadenya-canopy);--cadenya-mermaid-text: var(--cadenya-canopy);--cadenya-mermaid-edge: var(--cadenya-canopy);--cadenya-mermaid-label: rgba(29, 44, 47, 0.94)}body{font-family:\"Berkeley Mono\", ui-monospace, \"Cascadia Code\", monospace}h1,h2,h3,h4,h5,h6{font-family:\"ABC Arizona Flare Light\", Georgia, serif!important;font-weight:300!important;letter-spacing:-0.01em}#topbar-cta-button a[href=\"https://app.cadenya.com/login\"] span,#topbar-cta-button a[href=\"https://app.cadenya.com/login\"] svg{color:var(--cadenya-soil)!important}@font-face{font-family:\"Berkeley Mono\";src:url(\"/fonts/BerkeleyMono-Bold.otf\") format(\"opentype\");font-weight:600;font-style:normal;font-display:swap}@font-face{font-family:\"Berkeley Mono\";src:url(\"/fonts/BerkeleyMono-Bold.otf\") format(\"opentype\");font-weight:700;font-style:normal;font-display:swap}@font-face{font-family:\"Berkeley Mono\";src:url(\"/fonts/BerkeleyMono-Oblique.otf\") format(\"opentype\");font-weight:400;font-style:italic;font-display:swap}code,kbd,samp,pre,pre *{font-family:\"Berkeley Mono\", ui-monospace, \"Cascadia Code\", monospace}#content-area a.link>code{padding:0!important}strong,b{font-weight:700!important}#content-container table{border:1px solid var(--cadenya-table-border);border-collapse:separate;border-spacing:0;border-radius:0.5rem;overflow:hidden}#content-container table th,#content-container table td{border-right:1px solid var(--cadenya-table-border);border-bottom:1px solid var(--cadenya-table-border);padding-left:1rem;padding-right:1rem}#content-container table thead{background-color:var(--cadenya-table-header)}#content-container table thead th{padding-top:0.75rem;padding-bottom:0.75rem;vertical-align:middle}#content-container table th:last-child,#content-container table td:last-child{border-right:0}#content-container table tbody tr:last-child td{border-bottom:0}#content-container table.objective-events-table{width:100%;table-layout:fixed}#content-container table.objective-events-table th:first-child,#content-container table.objective-events-table td:first-child{width:25%}#content-container table.objective-events-table th:nth-child(2),#content-container table.objective-events-table td:nth-child(2){width:75%}#content-container table.objective-events-table td:first-child code{overflow-wrap:anywhere;white-space:normal}#content-container .mermaid svg{fill:var(--cadenya-mermaid-text)!important}#content-container .mermaid svg .node rect,#content-container .mermaid svg .node polygon,#content-container .mermaid svg .node path,#content-container .mermaid svg g.stateGroup rect,#content-container .mermaid svg .statediagram-cluster rect{fill:var(--cadenya-mermaid-node)!important;stroke:var(--cadenya-mermaid-border)!important}#content-container .mermaid svg .nodeLabel,#content-container .mermaid svg .cluster-label,#content-container .mermaid svg .stateLabel text,#content-container .mermaid svg g.stateGroup text,#content-container .mermaid svg g.stateGroup .state-title,#content-container .mermaid svg .edgeLabel,#content-container .mermaid svg .edgeLabel text,#content-container .mermaid svg .edgeLabel p{color:var(--cadenya-mermaid-text)!important;fill:var(--cadenya-mermaid-text)!important}#content-container .mermaid svg .transition,#content-container .mermaid svg .flowchart-link,#content-container .mermaid svg .edgePath path,#content-container .mermaid svg g.stateGroup line{stroke:var(--cadenya-mermaid-edge)!important}#content-container .mermaid svg marker path,#content-container .mermaid svg .marker,#content-container .mermaid svg [id$=\"-barbEnd\"],#content-container .mermaid svg [id$=\"-dependencyStart\"],#content-container .mermaid svg [id$=\"-dependencyEnd\"]{fill:var(--cadenya-mermaid-edge)!important;stroke:var(--cadenya-mermaid-edge)!important}#content-container .mermaid svg .edgeLabel,#content-container .mermaid svg .edgeLabel p{background-color:var(--cadenya-mermaid-label)!important}#content-container .mermaid svg .edgeLabel rect,#content-container .mermaid svg .stateLabel .box{fill:var(--cadenya-mermaid-label)!important;opacity:1!important}#content-container .mermaid svg .node circle.state-start,#content-container .mermaid svg .node .fork-join{fill:var(--cadenya-mermaid-edge)!important;stroke:var(--cadenya-mermaid-edge)!important}#content-container .mermaid svg .node circle.state-end{fill:var(--cadenya-mermaid-border)!important;stroke:var(--cadenya-mermaid-node)!important}#content-container .mermaid svg .end-state-inner{fill:var(--cadenya-mermaid-node)!important}#content-container .mermaid svg rect.actor{fill:var(--cadenya-mermaid-node)!important;stroke:var(--cadenya-mermaid-border)!important}#content-container .mermaid svg text.actor,#content-container .mermaid svg text.actor>tspan,#content-container .mermaid svg .messageText,#content-container .mermaid svg .messageText>tspan,#content-container .mermaid svg .labelText,#content-container .mermaid svg .labelText>tspan,#content-container .mermaid svg .loopText,#content-container .mermaid svg .loopText>tspan,#content-container .mermaid svg .noteText,#content-container .mermaid svg .noteText>tspan{color:var(--cadenya-mermaid-text)!important;fill:var(--cadenya-mermaid-text)!important;stroke:none!important}#content-container .mermaid svg .actor-line,#content-container .mermaid svg .messageLine0,#content-container .mermaid svg .messageLine1,#content-container .mermaid svg .loopLine{stroke:var(--cadenya-mermaid-edge)!important}#content-container .mermaid svg .labelBox,#content-container .mermaid svg .note,#content-container .mermaid svg .activation0,#content-container .mermaid svg .activation1,#content-container .mermaid svg .activation2,#content-container .mermaid svg g rect.rect{fill:var(--cadenya-mermaid-label)!important;stroke:var(--cadenya-mermaid-border)!important}#content-container .mermaid svg [id$=\"-sequencenumber\"] circle{fill:var(--cadenya-mermaid-edge)!important;stroke:var(--cadenya-mermaid-edge)!important}#content-container .mermaid svg .sequenceNumber{fill:var(--cadenya-mermaid-label)!important;stroke:none!important}.max-w-8xl,#body-content{max-width:106rem!important}#content-container{max-width:86rem!important}"}],"page":{"pagePath":"api-reference/agentservice/create-a-new-agent","slug":"/api-reference/agentservice/create-a-new-agent","pageMetadata":{"title":"Create a new agent","description":"Creates a new agent in the workspace","deprecated":null,"version":null,"openapi":"https://openapi.cadenya.com/api-spec.yml post /v1/workspaces/{workspaceId}/agents","href":"/api-reference/agentservice/create-a-new-agent","autogeneratedByOpenApi":true},"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: \"Creates a new agent in the workspace\"\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}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Create a new agent","description":"Creates a new agent in the workspace","deprecated":null,"version":null,"openapi":"https://openapi.cadenya.com/api-spec.yml post /v1/workspaces/{workspaceId}/agents","href":"/api-reference/agentservice/create-a-new-agent","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"tags":["AgentService","Agents"],"summary":"Create a new agent","description":"Creates a new agent in the workspace","operationId":"AgentService_CreateAgent","parameters":["76c26f13-4a90-4613-8e11-c1e9b69f4580"],"requestBody":"3bf1012b-90aa-43fd-8c1f-720ecfeadd8b","responses":{"200":"ff9c5dfd-30b1-464e-9706-4ec60c8d7a01","default":"87a126f9-ff51-4095-9d20-cff1ce83fcaa"},"x-codeSamples":[{"lang":"typescript","label":"TypeScript","source":"import Cadenya from '@cadenya/cadenya';\n\nconst client = new Cadenya();\nconst result = await client.agents.create({ metadata: {\"name\":\"sample\"}, spec: {} });"},{"lang":"go","label":"Go","source":"package main\n\nimport (\n\t\"context\"\n\t\"fmt\"\n\t\"log\"\n\n\tcadenya \"go.cadenya.com/cadenya-go\"\n)\n\nfunc main() {\n\tclient, err := cadenya.NewClient()\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\tctx := context.Background()\n\tparams := \u0026cadenya.AgentCreateParams{\n\t\tMetadata: \u0026cadenya.CreateResourceMetadata{Name: \"sample\"},\n\t\tSpec: \u0026cadenya.AgentSpec{},\n\t}\n\tresult, err := client.Agents().Create(ctx, params)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\tfmt.Printf(\"%+v\\n\", result)\n}"},{"lang":"python","label":"Python","source":"from cadenya import Cadenya\n\nwith Cadenya() as client:\n result = client.agents.create(metadata={\"name\": \"sample\"}, spec={})\n print(result)"},{"lang":"ruby","label":"Ruby","source":"require \"cadenya\"\n\nclient = Cadenya::Client.new\nresult = client.agents.create(metadata: {\"name\" => \"sample\"}, spec: {})\nputs result.inspect"},{"lang":"bash","label":"CLI","source":"cadenya agents create \\\n --name sample"},{"lang":"shell","label":"curl","source":"curl --request POST \\\n --url 'https://api.cadenya.com/v1/workspaces/workspace_123/agents' \\\n --header \"Authorization: Bearer ${CADENYA_API_KEY}\" \\\n --header 'Content-Type: application/json' \\\n --data '{\"metadata\":{\"name\":\"sample\"},\"spec\":{}}'"}],"method":"post","type":"path","servers":["a2273d97-7234-4afb-a819-e55eda5e09e0"],"security":["3ca901ac-a242-46fa-adfa-914f40bb8d0f"],"path":"/v1/workspaces/{workspaceId}/agents","baseUrlOptions":["https://api.cadenya.com"],"title":"Create a new agent","codeSamples":[{"label":"TypeScript","lang":"typescript","source":"import Cadenya from '@cadenya/cadenya';\n\nconst client = new Cadenya();\nconst result = await client.agents.create({ metadata: {\"name\":\"sample\"}, spec: {} });"},{"label":"Go","lang":"go","source":"package main\n\nimport (\n\t\"context\"\n\t\"fmt\"\n\t\"log\"\n\n\tcadenya \"go.cadenya.com/cadenya-go\"\n)\n\nfunc main() {\n\tclient, err := cadenya.NewClient()\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\tctx := context.Background()\n\tparams := \u0026cadenya.AgentCreateParams{\n\t\tMetadata: \u0026cadenya.CreateResourceMetadata{Name: \"sample\"},\n\t\tSpec: \u0026cadenya.AgentSpec{},\n\t}\n\tresult, err := client.Agents().Create(ctx, params)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\tfmt.Printf(\"%+v\\n\", result)\n}"},{"label":"Python","lang":"python","source":"from cadenya import Cadenya\n\nwith Cadenya() as client:\n result = client.agents.create(metadata={\"name\": \"sample\"}, spec={})\n print(result)"},{"label":"Ruby","lang":"ruby","source":"require \"cadenya\"\n\nclient = Cadenya::Client.new\nresult = client.agents.create(metadata: {\"name\" => \"sample\"}, spec: {})\nputs result.inspect"},{"label":"CLI","lang":"bash","source":"cadenya agents create \\\n --name sample"},{"label":"curl","lang":"shell","source":"curl --request POST \\\n --url 'https://api.cadenya.com/v1/workspaces/workspace_123/agents' \\\n --header \"Authorization: Bearer ${CADENYA_API_KEY}\" \\\n --header 'Content-Type: application/json' \\\n --data '{\"metadata\":{\"name\":\"sample\"},\"spec\":{}}'"}],"requestExampleLanguages":["bash","ruby","go","typescript","python"],"requiredOnlyExamples":false,"disableCodeSampleGeneration":true,"requestExampleType":"codeSamples","responseExampleType":"generated"},"dependencies":{"parameters":{"76c26f13-4a90-4613-8e11-c1e9b69f4580":{"name":"workspaceId","in":"path","description":"Workspace ID.","required":true,"schema":{"type":"string","example":"workspace_01HXKD2E5NQM3T9AYWCF133E3Q","isRequired":true,"description":"Workspace ID.","uniqueKey":"","typeLabel":"string"}}},"requestBody":{"content":{"application/json":{"schema":{"required":["metadata","spec"],"type":"object","properties":{"metadata":{"required":["name"],"type":"object","properties":{"name":{"type":"string","description":"Human-readable name for the resource (e.g., \"Customer Support Agent\", \"Email Tool\")","isRequired":true,"uniqueKey":"metadata.name","typeLabel":"string"},"externalId":{"type":"string","description":"External ID for the resource (e.g., a workflow ID from an external system)","uniqueKey":"metadata.externalId","typeLabel":"string"},"labels":{"type":"object","additionalProperties":{"type":"string","uniqueKey":"metadata.labels.additionalProperties","typeLabel":"string"},"description":"Key-value pairs for categorization and filtering. Values are 0-63\n alphanumeric characters with \"-\", \"_\", or \".\" allowed between; keys\n follow the same shape and additionally accept an optional DNS-subdomain\n prefix (e.g. \"cadenya.com/\") of at most 253 characters.\n Examples: {\"environment\": \"production\", \"team\": \"platform\", \"version\": \"v2\"}","uniqueKey":"metadata.labels","typeLabel":"object"}},"description":"CreateResourceMetadata contains the user-provided fields for creating\n a workspace-scoped resource. Read-only fields (id, account_id, workspace_id, profile_id,\n created_at) are excluded since they are set by the server.","isRequired":true,"uniqueKey":"metadata","typeLabel":"object"},"spec":{"type":"object","properties":{"description":{"type":"string","description":"Description of the agent's purpose","uniqueKey":"spec.description","typeLabel":"string"},"webhookEventsUrl":{"type":"string","description":"The URL that Cadenya will send events for any objective assigned to the agent.","uniqueKey":"spec.webhookEventsUrl","typeLabel":"string"},"variationSelectionMode":{"enum":["VARIATION_SELECTION_MODE_UNSPECIFIED","VARIATION_SELECTION_MODE_RANDOM","VARIATION_SELECTION_MODE_WEIGHTED"],"type":"string","description":"Controls how variations are automatically selected when creating objectives\n Defaults to WEIGHTED when unspecified","format":"enum","uniqueKey":"spec.variationSelectionMode","typeLabel":"enum\u003cstring>"},"systemPromptDataSchema":{"type":"object","additionalProperties":true,"description":"SystemPromptDataSchema enforces the shape of system_prompt_data when objectives are created. This is valuable when using liquid formatting in agent\n variation system prompt templates. The schema is also used when the agent is attached as a sub-agent, as it becomes the tool's input parameter schema.\n If omitted, the sub-agent schema will be loaded with a simple \"prompt\" free text string as its schema.","uniqueKey":"spec.systemPromptDataSchema","typeLabel":"object"},"outputDefinition":{"type":"object","additionalProperties":true,"description":"Optional output definition for objectives created for this agent.\n When provided, Cadenya will append a tool to that will be called by the LLM in use by the variant to extract information in the format provided here.\n Use this option when you want structured data to be created by your objectives.","uniqueKey":"spec.outputDefinition","typeLabel":"object"},"enableEpisodicMemory":{"type":"boolean","description":"Enable episodic memory for objectives created for this agent.\n When true, objective creation requires an episodic_memory key (unless\n always_include_subject_memories covers it) and the system finds or creates\n a memory layer for that (agent, tenant, subject, key), letting the agent\n store and retrieve memories across objectives that share them.\n Memory is agent-level so all variations of the agent share the same layers.","uniqueKey":"spec.enableEpisodicMemory","typeLabel":"boolean"},"episodicMemoryTtl":{"example":"604800s","pattern":"^-?(?:0|[1-9][0-9]{0,11})(?:\\.[0-9]{1,9})?s$","type":"string","description":"How long episodic memories should be retained.\n Each new objective slides the layer's expiry forward by this duration, and\n stored entries expire this long after they are written.\n If not set, episodic memories are retained indefinitely.\n A duration string in seconds, such as \"604800s\".","uniqueKey":"spec.episodicMemoryTtl","typeLabel":"string"},"alwaysIncludeSubjectMemories":{"type":"boolean","description":"Always load the asserted subject's memories. Requires\n enable_episodic_memory. When an objective asserts a subject:\n\n * Every memory layer scoped to that subject loads into the cascade,\n followed by the tenant's layers that have no subject (tenant-wide\n defaults). They rank below the objective's own memory_cascade\n references and above the variation's layers.\n * The episodic_memory key becomes optional. Without one, the agent stores\n memories in a system-managed episodic layer for (agent, tenant, subject),\n so it remembers the person across objectives with no key from the\n caller. With one, the keyed layer receives writes and the subject's\n other layers, including that keyless one, still load beneath it.","uniqueKey":"spec.alwaysIncludeSubjectMemories","typeLabel":"boolean"}},"description":"Agent specification (user-provided configuration)","isRequired":true,"uniqueKey":"spec","typeLabel":"object"},"defaultVariation":{"type":"object","description":"Optional default variation to add to the agent on create. Its spec accepts\n assignments and memory_layer_assignments using the same atomic validation\n as CreateAgentVariation. Failure rejects the entire agent creation.","required":["metadata","spec"],"properties":{"metadata":{"required":["name"],"type":"object","properties":{"name":{"type":"string","description":"Human-readable name for the resource (e.g., \"Customer Support Agent\", \"Email Tool\")","isRequired":true,"uniqueKey":"defaultVariation.metadata.name","typeLabel":"string"},"externalId":{"type":"string","description":"External ID for the resource (e.g., a workflow ID from an external system)","uniqueKey":"defaultVariation.metadata.externalId","typeLabel":"string"},"labels":{"type":"object","additionalProperties":{"type":"string","uniqueKey":"defaultVariation.metadata.labels.additionalProperties","typeLabel":"string"},"description":"Key-value pairs for categorization and filtering. Values are 0-63\n alphanumeric characters with \"-\", \"_\", or \".\" allowed between; keys\n follow the same shape and additionally accept an optional DNS-subdomain\n prefix (e.g. \"cadenya.com/\") of at most 253 characters.\n Examples: {\"environment\": \"production\", \"team\": \"platform\", \"version\": \"v2\"}","uniqueKey":"defaultVariation.metadata.labels","typeLabel":"object"}},"description":"CreateResourceMetadata contains the user-provided fields for creating\n a workspace-scoped resource. Read-only fields (id, account_id, workspace_id, profile_id,\n created_at) are excluded since they are set by the server.","isRequired":true,"uniqueKey":"defaultVariation.metadata","typeLabel":"object"},"spec":{"type":"object","properties":{"systemPromptTemplate":{"type":"string","description":"Liquid template for the system prompt of objectives using this variation.\n Rendered with CreateObjectiveRequest.system_prompt_data into Objective.system_prompt.","uniqueKey":"defaultVariation.spec.systemPromptTemplate","typeLabel":"string"},"progressiveDiscovery":{"type":"object","description":"ProgressiveDiscovery is an optional config that, when set, will load a Cadenya provided tool that\n can search for tools in the assigned tool sets or tools.\n\n Note: Sub-agents and agent pools are always loaded as tools regardless of this value.","properties":{"maxTools":{"type":"integer","description":"The most tool names tool_search will load in a single call. Requesting more\n than this returns an error telling the model to retry in smaller batches --\n it is a per-call batch limit, not a ceiling on how many tools an objective\n may end up with.","format":"int32","uniqueKey":"defaultVariation.spec.progressiveDiscovery.maxTools","typeLabel":"integer\u003cint32>"},"hints":{"type":"array","items":{"type":"string","uniqueKey":"defaultVariation.spec.progressiveDiscovery.hints.items.[INDEX]","typeLabel":"string"},"description":"Free-text guidance appended to the discoverable-tools appendix in the\n system prompt. Hints steer the model's choice of tool names; they do not\n filter or rank anything, because tool_search matches names exactly rather\n than searching.","uniqueKey":"defaultVariation.spec.progressiveDiscovery.hints","typeLabel":"string[]"}},"uniqueKey":"defaultVariation.spec.progressiveDiscovery","typeLabel":"object"},"constraints":{"type":"object","description":"Execution constraints","properties":{"maxToolCalls":{"type":"integer","description":"The maximum number of tool calls that can be made. 0 means no limit.","format":"int32","uniqueKey":"defaultVariation.spec.constraints.maxToolCalls","typeLabel":"integer\u003cint32>"},"maxSubObjectives":{"type":"integer","description":"The maximum number of sub-objectives that can be created. 0 means no limit.","format":"int32","uniqueKey":"defaultVariation.spec.constraints.maxSubObjectives","typeLabel":"integer\u003cint32>"},"inactivityTimeout":{"pattern":"^-?(?:0|[1-9][0-9]{0,11})(?:\\.[0-9]{1,9})?s$","type":"string","description":"How long an objective may sit with no activity (no user messages, no\n LLM calls) before it is finalized as timed out. Between 1 minute and\n 24 hours, expressed as a duration string in seconds (e.g. \"7200s\").\n When not set, objectives are still swept at the system-wide 24 hour\n maximum — every objective eventually reaches a terminal state.\n\n SDKs represent this as a duration string, like AgentScheduleSpec.every,\n rather than an integer.","uniqueKey":"defaultVariation.spec.constraints.inactivityTimeout","typeLabel":"string"}},"uniqueKey":"defaultVariation.spec.constraints","typeLabel":"object"},"description":{"type":"string","description":"Human-readable description of what this variation does or when it should be used","uniqueKey":"defaultVariation.spec.description","typeLabel":"string"},"modelConfig":{"type":"object","description":"Model configuration for this variation","required":["modelId"],"properties":{"modelId":{"example":"claude/opus-4.6","type":"string","description":"The model identifier for the agent variation to use. Should be either the reference key (ai-provider.model-name) or the canonical model ID (e.g.: \"model_ABC123\")","isRequired":true,"uniqueKey":"defaultVariation.spec.modelConfig.modelId","typeLabel":"string"},"temperature":{"type":"number","description":"Sampling temperature for model inference (0.0 to 1.0)\n Lower values produce more deterministic outputs, higher values increase randomness.\n Presence-tracked so a deliberate 0.0 (fully deterministic) is\n distinguishable from unset.","format":"float","uniqueKey":"defaultVariation.spec.modelConfig.temperature","typeLabel":"number\u003cfloat>"},"topP":{"type":"number","description":"Nucleus sampling: only tokens comprising the top_p probability mass\n are considered. Requires the model's \"topP\" capability.","format":"float","uniqueKey":"defaultVariation.spec.modelConfig.topP","typeLabel":"number\u003cfloat>"},"topK":{"type":"integer","description":"Only sample from the top_k most likely tokens.\n Requires the model's \"topK\" capability.","format":"int32","uniqueKey":"defaultVariation.spec.modelConfig.topK","typeLabel":"integer\u003cint32>"},"stopSequences":{"type":"array","items":{"type":"string","uniqueKey":"defaultVariation.spec.modelConfig.stopSequences.items.[INDEX]","typeLabel":"string"},"description":"Sequences that stop generation when produced. Empty means none.\n No count cap here — providers impose their own limits (surfaced as\n the \"stopSequences\" capability's `limit` on the model spec), and it\n is the caller's responsibility to stay within the selected model's\n limit. Requires the model's \"stopSequences\" capability.","uniqueKey":"defaultVariation.spec.modelConfig.stopSequences","typeLabel":"string[]"},"maxOutputTokens":{"type":"integer","description":"Cap on output tokens per LLM call. Must not exceed the model's\n spec.max_output_tokens. Requires the model's \"maxOutputTokens\"\n capability.","format":"int32","uniqueKey":"defaultVariation.spec.modelConfig.maxOutputTokens","typeLabel":"integer\u003cint32>"},"reasoningEffort":{"enum":["REASONING_EFFORT_UNSPECIFIED","REASONING_EFFORT_NONE","REASONING_EFFORT_LOW","REASONING_EFFORT_MEDIUM","REASONING_EFFORT_HIGH"],"type":"string","description":"Reasoning effort. Requires the model's \"reasoning\" capability.","format":"enum","uniqueKey":"defaultVariation.spec.modelConfig.reasoningEffort","typeLabel":"enum\u003cstring>"},"cachingEnabled":{"type":"boolean","description":"Prompt/token caching. Requires the model's \"caching\" capability.\n Presence-tracked tri-state: unset means the default — caching is ON\n whenever the model has the capability; false opts this variation\n out; true is an explicit opt-in (equivalent to unset).","uniqueKey":"defaultVariation.spec.modelConfig.cachingEnabled","typeLabel":"boolean"},"streamingEnabled":{"type":"boolean","description":"Token streaming. Requires the model's \"streaming\" capability.\n Presence-tracked tri-state: unset means the default — completions\n stream whenever the model has the capability, so live streams that\n set includeDeltas receive text as it is generated; false opts this\n variation out (for example, for a provider credential that is not\n allowed to stream); true is an explicit opt-in (equivalent to unset).","uniqueKey":"defaultVariation.spec.modelConfig.streamingEnabled","typeLabel":"boolean"}},"uniqueKey":"defaultVariation.spec.modelConfig","typeLabel":"object"},"compactionConfig":{"type":"object","description":"Compaction configuration for managing context window limits during long-running objectives.\n When not set, the system uses a default summarization strategy at 75% context window usage.","properties":{"triggerThreshold":{"type":"number","description":"Trigger threshold as a percentage of the model's context window (0.0 to 1.0).\n When input tokens reach this percentage of the model's limit, compaction triggers.\n Default: 0.75 (75%)","format":"float","uniqueKey":"defaultVariation.spec.compactionConfig.triggerThreshold","typeLabel":"number\u003cfloat>"},"summarization":{"type":"object","description":"Strategies — set one or more. When multiple are set, they execute in order:\n tool_result_clearing → summarization.\n When none are set, defaults to summarization with the system default prompt.","properties":{"instructions":{"type":"string","description":"Custom instructions that guide what the summarizer preserves.\n Replaces the default summarization prompt entirely.\n Example: \"Preserve all code snippets, variable names, and technical decisions.\"","uniqueKey":"defaultVariation.spec.compactionConfig.summarization.instructions","typeLabel":"string"}},"uniqueKey":"defaultVariation.spec.compactionConfig.summarization","typeLabel":"object"},"toolResultClearing":{"type":"object","properties":{"preserveRecentResults":{"type":"integer","description":"Number of most recent tool call results to keep intact.\n Older tool results have their content replaced with \"[result cleared]\"\n while preserving the assistant tool call message (function name, arguments).\n Default: 2","format":"int32","uniqueKey":"defaultVariation.spec.compactionConfig.toolResultClearing.preserveRecentResults","typeLabel":"integer\u003cint32>"}},"description":"ToolResultClearingStrategy configures clearing of older tool result content.","uniqueKey":"defaultVariation.spec.compactionConfig.toolResultClearing","typeLabel":"object"}},"uniqueKey":"defaultVariation.spec.compactionConfig","typeLabel":"object"},"firstUserMessageTemplate":{"type":"string","description":"Liquid template for the first user message of objectives using this variation.\n Rendered with CreateObjectiveRequest.first_user_message_data into\n Objective.first_user_message, the first user message in the LLM chat history.\n CreateObjectiveRequest.first_user_message, when set, overrides the rendered\n result. If neither this template nor first_user_message is present, objective\n creation is rejected with InvalidArgument.","uniqueKey":"defaultVariation.spec.firstUserMessageTemplate","typeLabel":"string"},"assignments":{"type":"array","items":{"oneOf":[{"type":"object","description":"A tool, tool set, sub-agent, or agent pool assigned to a variation, identified only by\n the target resource ID. The same shape is accepted in a spec and returned\n on reads. Assignment junction records are an internal implementation detail.","required":["type","toolId"],"properties":{"type":{"type":"string","enum":["toolId"],"isRequired":true,"uniqueKey":"defaultVariation.spec.assignments.items.[INDEX].oneOf.0.type","typeLabel":"enum\u003cstring>"},"toolId":{"minLength":1,"type":"string","description":"Canonical tool ID.","isRequired":true,"uniqueKey":"defaultVariation.spec.assignments.items.[INDEX].oneOf.0.toolId","typeLabel":"string"}},"additionalProperties":false,"uniqueKey":"defaultVariation.spec.assignments.items.[INDEX].oneOf.0","typeLabel":"object"},{"type":"object","description":"A tool, tool set, sub-agent, or agent pool assigned to a variation, identified only by\n the target resource ID. The same shape is accepted in a spec and returned\n on reads. Assignment junction records are an internal implementation detail.","required":["type","toolSetId"],"properties":{"type":{"type":"string","enum":["toolSetId"],"isRequired":true,"uniqueKey":"defaultVariation.spec.assignments.items.[INDEX].oneOf.1.type","typeLabel":"enum\u003cstring>"},"toolSetId":{"minLength":1,"type":"string","description":"Canonical tool set ID.","isRequired":true,"uniqueKey":"defaultVariation.spec.assignments.items.[INDEX].oneOf.1.toolSetId","typeLabel":"string"}},"additionalProperties":false,"uniqueKey":"defaultVariation.spec.assignments.items.[INDEX].oneOf.1","typeLabel":"object"},{"type":"object","description":"A tool, tool set, sub-agent, or agent pool assigned to a variation, identified only by\n the target resource ID. The same shape is accepted in a spec and returned\n on reads. Assignment junction records are an internal implementation detail.","required":["type","subAgentId"],"properties":{"type":{"type":"string","enum":["subAgentId"],"isRequired":true,"uniqueKey":"defaultVariation.spec.assignments.items.[INDEX].oneOf.2.type","typeLabel":"enum\u003cstring>"},"subAgentId":{"minLength":1,"type":"string","description":"Canonical sub-agent ID.","isRequired":true,"uniqueKey":"defaultVariation.spec.assignments.items.[INDEX].oneOf.2.subAgentId","typeLabel":"string"}},"additionalProperties":false,"uniqueKey":"defaultVariation.spec.assignments.items.[INDEX].oneOf.2","typeLabel":"object"},{"type":"object","description":"A tool, tool set, sub-agent, or agent pool assigned to a variation, identified only by\n the target resource ID. The same shape is accepted in a spec and returned\n on reads. Assignment junction records are an internal implementation detail.","required":["type","agentPoolId"],"properties":{"type":{"type":"string","enum":["agentPoolId"],"isRequired":true,"uniqueKey":"defaultVariation.spec.assignments.items.[INDEX].oneOf.3.type","typeLabel":"enum\u003cstring>"},"agentPoolId":{"minLength":1,"type":"string","description":"Canonical agent pool ID. Attaches the pool as a single callable target.","isRequired":true,"uniqueKey":"defaultVariation.spec.assignments.items.[INDEX].oneOf.3.agentPoolId","typeLabel":"string"}},"additionalProperties":false,"uniqueKey":"defaultVariation.spec.assignments.items.[INDEX].oneOf.3","typeLabel":"object"}],"uniqueKey":"defaultVariation.spec.assignments.items.[INDEX]","typeLabel":"object"},"description":"Complete set of assigned tools, tool sets, sub-agents, and agent pools. Order has no\n meaning. Duplicate (target kind, canonical target ID) pairs are collapsed.\n On create, omitted or empty means no assignments. On update, selecting\n spec.assignments in update_mask replaces the entire set; empty clears it.","uniqueKey":"defaultVariation.spec.assignments","typeLabel":"object[]"},"memoryLayerAssignments":{"maxItems":10,"type":"array","items":{"required":["memoryLayerId","position"],"type":"object","properties":{"memoryLayerId":{"example":"memlyr_01HXKD2E5NQM3T9AYWCFFFBMJH","minLength":1,"type":"string","description":"Accepts the canonical memlyr_… ID or external_id:\u003cvalue> on input.\n Reads always return the canonical ID.","isRequired":true,"uniqueKey":"defaultVariation.spec.memoryLayerAssignments.items.[INDEX].memoryLayerId","typeLabel":"string"},"position":{"type":"integer","description":"Position is specificity: lower positions are consulted first; the highest\n position is the most general fallback. Gaps and zero are valid. Positions\n must be unique within a variation. Explicitly required in a full spec;\n only AddAgentVariationMemoryLayer can choose an append position for you.","format":"int32","isRequired":true,"uniqueKey":"defaultVariation.spec.memoryLayerAssignments.items.[INDEX].position","typeLabel":"integer\u003cint32>"}},"description":"A whole memory layer in a variation's baseline memory cascade. Identified\n by the memory layer ID; no assignment junction ID is exposed. Entry pinning\n remains an objective-level capability.","uniqueKey":"defaultVariation.spec.memoryLayerAssignments.items.[INDEX]","typeLabel":"object"},"description":"Complete baseline memory cascade, returned in ascending position. At most\n 10 whole layers; system-managed layers cannot be assigned. Duplicate layer\n IDs (after alias resolution) or positions are InvalidArgument. Validate the\n final cascade, so swapping two positions in one update is supported.\n On create, omitted or empty means no layers. On update, selecting\n spec.memory_layer_assignments replaces the entire list; empty clears it.","uniqueKey":"defaultVariation.spec.memoryLayerAssignments","typeLabel":"object[]"}},"description":"AgentVariationSpec defines the complete operational configuration for a\n variation, including assignments. Reads always populate both assignment lists,\n even when include_info is false. Create and update validate and persist the\n configuration atomically: any invalid target or cascade rejects the entire\n request. Targets must belong to the variation's workspace and pass the same\n eligibility checks as the dedicated add methods.","isRequired":true,"uniqueKey":"defaultVariation.spec","typeLabel":"object"}},"uniqueKey":"defaultVariation","typeLabel":"object"}},"description":"Create agent request","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"metadata":{"name":"\u003cstring>","externalId":"\u003cstring>","labels":{}},"spec":{"description":"\u003cstring>","webhookEventsUrl":"\u003cstring>","systemPromptDataSchema":{},"outputDefinition":{},"enableEpisodicMemory":true,"episodicMemoryTtl":"604800s","alwaysIncludeSubjectMemories":true}}}},"exampleType":"generated"}},"required":true,"exampleType":"generated"},"responses":{"ff9c5dfd-30b1-464e-9706-4ec60c8d7a01":{"description":"OK","content":{"application/json":{"schema":{"required":["metadata","spec","state","info"],"type":"object","properties":{"metadata":{"type":"object","description":"Resource metadata","required":["id","accountId","workspaceId","name","profileId","createdAt","externalId","labels"],"properties":{"id":{"readOnly":true,"type":"string","description":"Unique identifier for the resource (prefixed ULID, e.g., \"agent_01HXK...\")","isRequired":true,"uniqueKey":"metadata.id","typeLabel":"string"},"accountId":{"readOnly":true,"example":"account_01HXKD2E5NQM3T9AYWCFTJHJVF","type":"string","description":"Account this resource belongs to for multi-tenant isolation (prefixed ULID)","isRequired":true,"uniqueKey":"metadata.accountId","typeLabel":"string"},"workspaceId":{"readOnly":true,"example":"workspace_01HXKD2E5NQM3T9AYWCF133E3Q","type":"string","description":"Workspace this resource belongs to for organizational grouping (prefixed ULID)","isRequired":true,"uniqueKey":"metadata.workspaceId","typeLabel":"string"},"name":{"type":"string","description":"Human-readable name for the resource (e.g., \"Customer Support Agent\", \"Email Tool\")\n Required for resources that users interact with directly","isRequired":true,"uniqueKey":"metadata.name","typeLabel":"string"},"externalId":{"type":"string","description":"External ID for the resource (e.g., a workflow ID from an external system)","isRequired":true,"uniqueKey":"metadata.externalId","typeLabel":"string"},"labels":{"type":"object","additionalProperties":{"type":"string","uniqueKey":"metadata.labels.additionalProperties","typeLabel":"string"},"description":"Key-value pairs for categorization and filtering. Values are 0-63\n alphanumeric characters with \"-\", \"_\", or \".\" allowed between; keys\n follow the same shape and additionally accept an optional DNS-subdomain\n prefix (e.g. \"cadenya.com/\") of at most 253 characters.\n Examples: {\"environment\": \"production\", \"team\": \"platform\", \"version\": \"v2\"}","isRequired":true,"uniqueKey":"metadata.labels","typeLabel":"object"},"profileId":{"readOnly":true,"example":"profile_01HXKD2E5NQM3T9AYWCFS0AP08","type":"string","description":"ID of the actor (user or service account) that created this resource","isRequired":true,"uniqueKey":"metadata.profileId","typeLabel":"string"},"createdAt":{"readOnly":true,"type":"string","description":"Timestamp when this resource was created","format":"date-time","isRequired":true,"uniqueKey":"metadata.createdAt","typeLabel":"string\u003cdate-time>"},"updatedAt":{"readOnly":true,"type":"string","description":"Timestamp when this resource was last updated","format":"date-time","uniqueKey":"metadata.updatedAt","typeLabel":"string\u003cdate-time>"}},"isRequired":true,"uniqueKey":"metadata","typeLabel":"object"},"spec":{"type":"object","description":"Agent specification","properties":{"description":{"type":"string","description":"Description of the agent's purpose","uniqueKey":"spec.description","typeLabel":"string"},"webhookEventsUrl":{"type":"string","description":"The URL that Cadenya will send events for any objective assigned to the agent.","uniqueKey":"spec.webhookEventsUrl","typeLabel":"string"},"variationSelectionMode":{"enum":["VARIATION_SELECTION_MODE_UNSPECIFIED","VARIATION_SELECTION_MODE_RANDOM","VARIATION_SELECTION_MODE_WEIGHTED"],"type":"string","description":"Controls how variations are automatically selected when creating objectives\n Defaults to WEIGHTED when unspecified","format":"enum","uniqueKey":"spec.variationSelectionMode","typeLabel":"enum\u003cstring>"},"systemPromptDataSchema":{"type":"object","additionalProperties":true,"description":"SystemPromptDataSchema enforces the shape of system_prompt_data when objectives are created. This is valuable when using liquid formatting in agent\n variation system prompt templates. The schema is also used when the agent is attached as a sub-agent, as it becomes the tool's input parameter schema.\n If omitted, the sub-agent schema will be loaded with a simple \"prompt\" free text string as its schema.","uniqueKey":"spec.systemPromptDataSchema","typeLabel":"object"},"outputDefinition":{"type":"object","additionalProperties":true,"description":"Optional output definition for objectives created for this agent.\n When provided, Cadenya will append a tool to that will be called by the LLM in use by the variant to extract information in the format provided here.\n Use this option when you want structured data to be created by your objectives.","uniqueKey":"spec.outputDefinition","typeLabel":"object"},"enableEpisodicMemory":{"type":"boolean","description":"Enable episodic memory for objectives created for this agent.\n When true, objective creation requires an episodic_memory key (unless\n always_include_subject_memories covers it) and the system finds or creates\n a memory layer for that (agent, tenant, subject, key), letting the agent\n store and retrieve memories across objectives that share them.\n Memory is agent-level so all variations of the agent share the same layers.","uniqueKey":"spec.enableEpisodicMemory","typeLabel":"boolean"},"episodicMemoryTtl":{"example":"604800s","pattern":"^-?(?:0|[1-9][0-9]{0,11})(?:\\.[0-9]{1,9})?s$","type":"string","description":"How long episodic memories should be retained.\n Each new objective slides the layer's expiry forward by this duration, and\n stored entries expire this long after they are written.\n If not set, episodic memories are retained indefinitely.\n A duration string in seconds, such as \"604800s\".","uniqueKey":"spec.episodicMemoryTtl","typeLabel":"string"},"alwaysIncludeSubjectMemories":{"type":"boolean","description":"Always load the asserted subject's memories. Requires\n enable_episodic_memory. When an objective asserts a subject:\n\n * Every memory layer scoped to that subject loads into the cascade,\n followed by the tenant's layers that have no subject (tenant-wide\n defaults). They rank below the objective's own memory_cascade\n references and above the variation's layers.\n * The episodic_memory key becomes optional. Without one, the agent stores\n memories in a system-managed episodic layer for (agent, tenant, subject),\n so it remembers the person across objectives with no key from the\n caller. With one, the keyed layer receives writes and the subject's\n other layers, including that keyless one, still load beneath it.","uniqueKey":"spec.alwaysIncludeSubjectMemories","typeLabel":"boolean"}},"isRequired":true,"uniqueKey":"spec","typeLabel":"object"},"info":{"type":"object","description":"Agent information","required":["variationCount"],"properties":{"variationCount":{"readOnly":true,"type":"integer","format":"int32","isRequired":true,"uniqueKey":"info.variationCount","typeLabel":"integer\u003cint32>"},"createdBy":{"required":["metadata","spec"],"type":"object","properties":{"metadata":{"required":["id","accountId","name","profileId","externalId","labels"],"type":"object","properties":{"id":{"readOnly":true,"type":"string","description":"Unique identifier for the resource (prefixed ULID, e.g., \"apikey_01HXK...\")","isRequired":true,"uniqueKey":"info.createdBy.metadata.id","typeLabel":"string"},"accountId":{"readOnly":true,"example":"account_01HXKD2E5NQM3T9AYWCFTJHJVF","type":"string","description":"Account this resource belongs to for multi-tenant isolation (prefixed ULID)","isRequired":true,"uniqueKey":"info.createdBy.metadata.accountId","typeLabel":"string"},"name":{"type":"string","description":"Human-readable name for the resource (e.g., \"Customer Support Agent\", \"Email Tool\")\n Required for resources that users interact with directly","isRequired":true,"uniqueKey":"info.createdBy.metadata.name","typeLabel":"string"},"externalId":{"type":"string","description":"External ID for the resource (e.g., a workflow ID from an external system)","isRequired":true,"uniqueKey":"info.createdBy.metadata.externalId","typeLabel":"string"},"labels":{"type":"object","additionalProperties":{"type":"string","uniqueKey":"info.createdBy.metadata.labels.additionalProperties","typeLabel":"string"},"description":"Key-value pairs for categorization and filtering. Values are 0-63\n alphanumeric characters with \"-\", \"_\", or \".\" allowed between; keys\n follow the same shape and additionally accept an optional DNS-subdomain\n prefix (e.g. \"cadenya.com/\") of at most 253 characters.\n Examples: {\"environment\": \"production\", \"team\": \"platform\", \"version\": \"v2\"}","isRequired":true,"uniqueKey":"info.createdBy.metadata.labels","typeLabel":"object"},"profileId":{"readOnly":true,"example":"profile_01HXKD2E5NQM3T9AYWCFS0AP08","type":"string","isRequired":true,"uniqueKey":"info.createdBy.metadata.profileId","typeLabel":"string"},"createdAt":{"readOnly":true,"type":"string","format":"date-time","uniqueKey":"info.createdBy.metadata.createdAt","typeLabel":"string\u003cdate-time>"}},"description":"AccountResourceMetadata is used to represent a resource that is associated to an account but not to a workspace.","isRequired":true,"uniqueKey":"info.createdBy.metadata","typeLabel":"object"},"spec":{"required":["type","email","name"],"type":"object","properties":{"email":{"type":"string","description":"Email address of the profile. Required and unique within an account for\n user profiles.","isRequired":true,"uniqueKey":"info.createdBy.spec.email","typeLabel":"string"},"name":{"type":"string","description":"Display name (e.g., \"Bobby Tables\").","isRequired":true,"uniqueKey":"info.createdBy.spec.name","typeLabel":"string"},"type":{"enum":["PROFILE_TYPE_UNSPECIFIED","PROFILE_TYPE_USER","PROFILE_TYPE_API_KEY","PROFILE_TYPE_SYSTEM"],"type":"string","description":"Whether this profile represents a human user, an API key, or a system\n principal.","format":"enum","isRequired":true,"uniqueKey":"info.createdBy.spec.type","typeLabel":"enum\u003cstring>"}},"description":"Configuration for a profile.","isRequired":true,"uniqueKey":"info.createdBy.spec","typeLabel":"object"}},"description":"A profile identifies a user or non-human principal (such as an API key)\n at the account level. Profiles are account-scoped and can be granted access\n to multiple workspaces.","uniqueKey":"info.createdBy","typeLabel":"object"}},"isRequired":true,"uniqueKey":"info","typeLabel":"object"},"state":{"readOnly":true,"enum":["STATE_UNSPECIFIED","STATE_DRAFT","STATE_PUBLISHED","STATE_ARCHIVED"],"type":"string","description":"The current lifecycle state of the agent. Output only. Agents are created\n in STATE_DRAFT; use the :publish, :unpublish, :archive, and :unarchive\n actions to transition between states.","format":"enum","isRequired":true,"uniqueKey":"state","typeLabel":"enum\u003cstring>"}},"description":"Agent resource","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"metadata":{"id":"\u003cstring>","accountId":"account_01HXKD2E5NQM3T9AYWCFTJHJVF","workspaceId":"workspace_01HXKD2E5NQM3T9AYWCF133E3Q","name":"\u003cstring>","externalId":"\u003cstring>","labels":{},"profileId":"profile_01HXKD2E5NQM3T9AYWCFS0AP08","createdAt":"2023-11-07T05:31:56Z","updatedAt":"2023-11-07T05:31:56Z"},"spec":{"description":"\u003cstring>","webhookEventsUrl":"\u003cstring>","variationSelectionMode":"VARIATION_SELECTION_MODE_UNSPECIFIED","systemPromptDataSchema":{},"outputDefinition":{},"enableEpisodicMemory":true,"episodicMemoryTtl":"604800s","alwaysIncludeSubjectMemories":true},"info":{"variationCount":123,"createdBy":{"metadata":{"id":"\u003cstring>","accountId":"account_01HXKD2E5NQM3T9AYWCFTJHJVF","name":"\u003cstring>","externalId":"\u003cstring>","labels":{},"profileId":"profile_01HXKD2E5NQM3T9AYWCFS0AP08","createdAt":"2023-11-07T05:31:56Z"},"spec":{"email":"\u003cstring>","name":"\u003cstring>","type":"PROFILE_TYPE_UNSPECIFIED"}}},"state":"STATE_UNSPECIFIED"}}},"exampleType":"generated"}},"exampleType":"generated"},"87a126f9-ff51-4095-9d20-cff1ce83fcaa":{"description":"Default error response","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"integer","description":"The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code].","format":"int32","uniqueKey":"code","typeLabel":"integer\u003cint32>"},"message":{"type":"string","description":"A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the [google.rpc.Status.details][google.rpc.Status.details] field, or localized by the client.","uniqueKey":"message","typeLabel":"string"},"details":{"type":"array","items":{"oneOf":[{"type":"object","description":"google.rpc.ErrorInfo detail for widget lifecycle failures. Match both domain and reason; ignore unknown reasons rather than renewing automatically.","required":["@type","domain","reason"],"properties":{"@type":{"type":"string","enum":["type.googleapis.com/google.rpc.ErrorInfo"],"isRequired":true,"uniqueKey":"details.items.[INDEX].oneOf.0.@type","typeLabel":"enum\u003cstring>"},"domain":{"type":"string","enum":["api.cadenya.com"],"isRequired":true,"uniqueKey":"details.items.[INDEX].oneOf.0.domain","typeLabel":"enum\u003cstring>"},"reason":{"type":"string","description":"TOKEN_EXPIRED identifies access-token expiry beyond the 60-second clock-skew tolerance. That token cannot renew; use already-installed newer credentials or require explicit app reauthentication. SESSION_* reasons are terminal. Never infer renewability from HTTP status alone.","enum":["TOKEN_EXPIRED","SESSION_REVOKED","SESSION_EXPIRED","SESSION_EXHAUSTED"],"isRequired":true,"uniqueKey":"details.items.[INDEX].oneOf.0.reason","typeLabel":"enum\u003cstring>"},"metadata":{"type":"object","additionalProperties":{"type":"string","uniqueKey":"details.items.[INDEX].oneOf.0.metadata.additionalProperties","typeLabel":"string"},"description":"Optional non-sensitive context. Never contains tokens or secrets.","uniqueKey":"details.items.[INDEX].oneOf.0.metadata","typeLabel":"object"}},"uniqueKey":"details.items.[INDEX].oneOf.0","typeLabel":"object"},{"type":"object","description":"Contains an arbitrary serialized message along with a @type that describes the type of the serialized message.","properties":{"@type":{"type":"string","description":"The type of the serialized message.","uniqueKey":"details.items.[INDEX].oneOf.1.@type","typeLabel":"string"}},"additionalProperties":true,"uniqueKey":"details.items.[INDEX].oneOf.1","typeLabel":"object"}],"uniqueKey":"details.items.[INDEX]","typeLabel":"object"},"description":"A list of messages that carry the error details. There is a common set of message types for APIs to use.","uniqueKey":"details","typeLabel":"object[]"}},"description":"The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors).","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"code":123,"message":"\u003cstring>","details":[{"@type":"type.googleapis.com/google.rpc.ErrorInfo","domain":"api.cadenya.com","reason":"TOKEN_EXPIRED","metadata":{}}]}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"3ca901ac-a242-46fa-adfa-914f40bb8d0f":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT","scopes":[],"schemeName":"bearerAuth"}}},"servers":{"a2273d97-7234-4afb-a819-e55eda5e09e0":{"url":"https://api.cadenya.com","description":"Production server"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","bearerFormat":"JWT","scopes":[],"schemeName":"bearerAuth"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"Bearer authentication header of the form `Bearer \u003ctoken>`, where `\u003ctoken>` is your auth token.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"bearerAuth","name":"Authorization"}],"title":"bearerAuth"}]},"originalFileLocation":"https://openapi.cadenya.com/api-spec.yml"},"subdomain":"cadenya","siteName":"Cadenya","title":"Create a new agent - Cadenya","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-15T18:49:54.088Z","originalFileLocation":"api-reference/agentservice/create-a-new-agent.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=\"Creates a new agent in the workspace\">\u003cmeta data-mint-head name=\"application-name\" content=\"Cadenya\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/cadenya/LWU29iiUTwEZ-Irb/_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=\"/docs/mintlify-assets/_mintlify/favicons/cadenya/LWU29iiUTwEZ-Irb/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/cadenya/LWU29iiUTwEZ-Irb/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/cadenya/LWU29iiUTwEZ-Irb/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/cadenya/LWU29iiUTwEZ-Irb/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/cadenya/LWU29iiUTwEZ-Irb/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/cadenya/LWU29iiUTwEZ-Irb/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/cadenya/LWU29iiUTwEZ-Irb/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/cadenya/LWU29iiUTwEZ-Irb/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Create a new agent - Cadenya\">\u003cmeta data-mint-head property=\"og:description\" content=\"Creates a new agent in the workspace\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Cadenya\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://cadenya.com/docs/api-reference/agentservice/create-a-new-agent\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://cadenya.mintlify.site/docs/_mintlify/api/og/v2?division=Agents\u0026amp;title=Create+a+new+agent\u0026amp;description=Creates+a+new+agent+in+the+workspace\u0026amp;theme=5f66039c69522c5b0d37ea0d\u0026amp;signature=d1895d1b79b8c572908b1793ea40ee6ec01e2872d574c0c7edad8e72d27643f3\">\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 a new agent - Cadenya\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Creates a new agent in the workspace\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://cadenya.mintlify.site/docs/_mintlify/api/og/v2?division=Agents\u0026amp;title=Create+a+new+agent\u0026amp;description=Creates+a+new+agent+in+the+workspace\u0026amp;theme=5f66039c69522c5b0d37ea0d\u0026amp;signature=d1895d1b79b8c572908b1793ea40ee6ec01e2872d574c0c7edad8e72d27643f3\">\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=\"/docs/mintlify-assets/_mintlify/favicons/cadenya/LWU29iiUTwEZ-Irb/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Cadenya\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#165B41\">\u003clink data-mint-head rel=\"canonical\" href=\"https://cadenya.com/docs/api-reference/agentservice/create-a-new-agent\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/docs/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/docs/api-reference/agentservice/create-a-new-agent.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://cadenya.com/#organization\",\"name\":\"Cadenya\",\"url\":\"https://cadenya.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/cadenya/jC_UqeyZ_EgHWKnX/logo/light.svg?fit=max\u0026auto=format\u0026n=jC_UqeyZ_EgHWKnX\u0026q=85\u0026s=163995d0cd296848f58b95d41cfbb847\"}},{\"@type\":\"WebSite\",\"@id\":\"https://cadenya.com/docs#website\",\"name\":\"Cadenya\",\"url\":\"https://cadenya.com/docs\",\"publisher\":{\"@id\":\"https://cadenya.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://cadenya.com/docs/api-reference/agentservice/create-a-new-agent#webpage\",\"url\":\"https://cadenya.com/docs/api-reference/agentservice/create-a-new-agent\",\"name\":\"Create a new agent\",\"description\":\"Creates a new agent in the workspace\",\"dateModified\":\"2026-11-15T18:49:54.088Z\",\"isPartOf\":{\"@id\":\"https://cadenya.com/docs#website\"},\"breadcrumb\":{\"@id\":\"https://cadenya.com/docs/api-reference/agentservice/create-a-new-agent#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://cadenya.com/docs/api-reference/agentservice/create-a-new-agent#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Agents\",\"item\":\"https://cadenya.com/docs/api-reference/agentservice/list-agents\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Create a new agent\",\"item\":\"https://cadenya.com/docs/api-reference/agentservice/create-a-new-agent\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://cadenya.com/docs/api-reference/agentservice/create-a-new-agent#apireference\",\"headline\":\"Create a new agent\",\"name\":\"Create a new agent\",\"description\":\"Creates a new agent in the workspace\",\"url\":\"https://cadenya.com/docs/api-reference/agentservice/create-a-new-agent\",\"mainEntityOfPage\":{\"@id\":\"https://cadenya.com/docs/api-reference/agentservice/create-a-new-agent#webpage\"},\"dateModified\":\"2026-11-15T18:49:54.088Z\",\"publisher\":{\"@id\":\"https://cadenya.com/#organization\"},\"isPartOf\":{\"@id\":\"https://cadenya.com/docs#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Cadenya\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Cadenya\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/docs/api-reference/agentservice/create-a-new-agent.md","siteName":"Cadenya","nav":{"global":null,"tabs":[{"tab":"Guides","pages":[{"title":"Guides","href":"/setup-from-a-coding-agent"}]},{"tab":"API Reference","icon":"brackets-curly","groups":[{"group":"Overview","pages":[{"title":"API reference","href":"/api-reference"}]},{"group":"Tool Sets","pages":[{"title":"List tool sets","deprecated":null,"version":null,"openapi":"https://openapi.cadenya.com/api-spec.yml get /v1/workspaces/{workspaceId}/tool_sets","href":"/api-reference/toolservice/list-tool-sets"},{"title":"Create a new tool set","deprecated":null,"version":null,"openapi":"https://openapi.cadenya.com/api-spec.yml post /v1/workspaces/{workspaceId}/tool_sets","href":"/api-reference/toolservice/create-a-new-tool-set"},{"title":"Get a tool set by ID","deprecated":null,"version":null,"openapi":"https://openapi.cadenya.com/api-spec.yml get /v1/workspaces/{workspaceId}/tool_sets/{id}","href":"/api-reference/toolservice/get-a-tool-set-by-id"},{"title":"Update a tool set","deprecated":null,"version":null,"openapi":"https://openapi.cadenya.com/api-spec.yml patch /v1/workspaces/{workspaceId}/tool_sets/{id}","href":"/api-reference/toolservice/update-a-tool-set"},{"title":"Delete a tool set","deprecated":null,"version":null,"openapi":"https://openapi.cadenya.com/api-spec.yml delete /v1/workspaces/{workspaceId}/tool_sets/{id}","href":"/api-reference/toolservice/delete-a-tool-set"},{"title":"Archive a tool set","deprecated":null,"version":null,"openapi":"https://openapi.cadenya.com/api-spec.yml post /v1/workspaces/{workspaceId}/tool_sets/{id}:archive","href":"/api-reference/toolservice/archive-a-tool-set"},{"title":"Unarchive a tool set","deprecated":null,"version":null,"openapi":"https://openapi.cadenya.com/api-spec.yml post /v1/workspaces/{workspaceId}/tool_sets/{id}:unarchive","href":"/api-reference/toolservice/unarchive-a-tool-set"},{"title":"List tool set events","deprecated":null,"version":null,"openapi":"https://openapi.cadenya.com/api-spec.yml get /v1/workspaces/{workspaceId}/tool_sets/{toolSetId}/events","href":"/api-reference/toolservice/list-tool-set-events"},{"title":"Get consumed OpenAPI spec","deprecated":null,"version":null,"openapi":"https://openapi.cadenya.com/api-spec.yml get /v1/workspaces/{workspaceId}/tool_sets/{toolSetId}/openapi_spec","href":"/api-reference/toolservice/get-consumed-openapi-spec"},{"title":"List tool set usage","deprecated":null,"version":null,"openapi":"https://openapi.cadenya.com/api-spec.yml get /v1/workspaces/{workspaceId}/tool_sets/{toolSetId}/usage","href":"/api-reference/toolservice/list-tool-set-usage"}]},{"group":"Tools","pages":[{"title":"List tools","deprecated":null,"version":null,"openapi":"https://openapi.cadenya.com/api-spec.yml get /v1/workspaces/{workspaceId}/tool_sets/{toolSetId}/tools","href":"/api-reference/toolservice/list-tools"},{"title":"Create a new tool","deprecated":null,"version":null,"openapi":"https://openapi.cadenya.com/api-spec.yml post /v1/workspaces/{workspaceId}/tool_sets/{toolSetId}/tools","href":"/api-reference/toolservice/create-a-new-tool"},{"title":"Get a tool by ID","deprecated":null,"version":null,"openapi":"https://openapi.cadenya.com/api-spec.yml get /v1/workspaces/{workspaceId}/tool_sets/{toolSetId}/tools/{id}","href":"/api-reference/toolservice/get-a-tool-by-id"},{"title":"Update a tool","deprecated":null,"version":null,"openapi":"https://openapi.cadenya.com/api-spec.yml patch /v1/workspaces/{workspaceId}/tool_sets/{toolSetId}/tools/{id}","href":"/api-reference/toolservice/update-a-tool"},{"title":"Delete a tool","deprecated":null,"version":null,"openapi":"https://openapi.cadenya.com/api-spec.yml delete /v1/workspaces/{workspaceId}/tool_sets/{toolSetId}/tools/{id}","href":"/api-reference/toolservice/delete-a-tool"},{"title":"Omit a tool","deprecated":null,"version":null,"openapi":"https://openapi.cadenya.com/api-spec.yml post /v1/workspaces/{workspaceId}/tool_sets/{toolSetId}/tools/{id}:omit","href":"/api-reference/toolservice/omit-a-tool"},{"title":"Restore a tool","deprecated":null,"version":null,"openapi":"https://openapi.cadenya.com/api-spec.yml post /v1/workspaces/{workspaceId}/tool_sets/{toolSetId}/tools/{id}:restore","href":"/api-reference/toolservice/restore-a-tool"},{"title":"Search for tools or tool sets","deprecated":null,"version":null,"openapi":"https://openapi.cadenya.com/api-spec.yml get /v1/workspaces/{workspaceId}/search/tools_or_tool_sets","href":"/api-reference/searchservice/search-for-tools-or-tool-sets"}]},{"group":"Tool Set Secrets","pages":[{"title":"List tool set secrets","deprecated":null,"version":null,"openapi":"https://openapi.cadenya.com/api-spec.yml get /v1/workspaces/{workspaceId}/tool_sets/{toolSetId}/secrets","href":"/api-reference/toolservice/list-tool-set-secrets"},{"title":"Create a new tool set secret","deprecated":null,"version":null,"openapi":"https://openapi.cadenya.com/api-spec.yml post /v1/workspaces/{workspaceId}/tool_sets/{toolSetId}/secrets","href":"/api-reference/toolservice/create-a-new-tool-set-secret"},{"title":"Get a tool set secret by ID","deprecated":null,"version":null,"openapi":"https://openapi.cadenya.com/api-spec.yml get /v1/workspaces/{workspaceId}/tool_sets/{toolSetId}/secrets/{id}","href":"/api-reference/toolservice/get-a-tool-set-secret-by-id"},{"title":"Update a tool set secret","deprecated":null,"version":null,"openapi":"https://openapi.cadenya.com/api-spec.yml patch /v1/workspaces/{workspaceId}/tool_sets/{toolSetId}/secrets/{id}","href":"/api-reference/toolservice/update-a-tool-set-secret"},{"title":"Delete a tool set secret","deprecated":null,"version":null,"openapi":"https://openapi.cadenya.com/api-spec.yml delete /v1/workspaces/{workspaceId}/tool_sets/{toolSetId}/secrets/{id}","href":"/api-reference/toolservice/delete-a-tool-set-secret"}]},{"group":"Agents","pages":[{"title":"List agents","description":"Lists all agents in the workspace","deprecated":null,"version":null,"openapi":"https://openapi.cadenya.com/api-spec.yml get /v1/workspaces/{workspaceId}/agents","href":"/api-reference/agentservice/list-agents"},{"title":"Create a new agent","deprecated":null,"version":null,"openapi":"https://openapi.cadenya.com/api-spec.yml post /v1/workspaces/{workspaceId}/agents","href":"/api-reference/agentservice/create-a-new-agent"},{"title":"List feedback for an agent","description":"Lists feedback submitted across all objectives belonging to an agent. Supports search by comment, sentiment filter, agent variation filter, and creation date range. Results are ordered by creation time, newest first.","deprecated":null,"version":null,"openapi":"https://openapi.cadenya.com/api-spec.yml get /v1/workspaces/{workspaceId}/agents/{agentId}/feedback","href":"/api-reference/agentservice/list-feedback-for-an-agent"},{"title":"List webhook deliveries","deprecated":null,"version":null,"openapi":"https://openapi.cadenya.com/api-spec.yml get /v1/workspaces/{workspaceId}/agents/{agentId}/webhook_deliveries","href":"/api-reference/agentservice/list-webhook-deliveries"},{"title":"Get an agent by ID","deprecated":null,"version":null,"openapi":"https://openapi.cadenya.com/api-spec.yml get /v1/workspaces/{workspaceId}/agents/{id}","href":"/api-reference/agentservice/get-an-agent-by-id"},{"title":"Delete an agent","deprecated":null,"version":null,"openapi":"https://openapi.cadenya.com/api-spec.yml delete /v1/workspaces/{workspaceId}/agents/{id}","href":"/api-reference/agentservice/delete-an-agent"},{"title":"Update an agent","deprecated":null,"version":null,"openapi":"https://openapi.cadenya.com/api-spec.yml patch /v1/workspaces/{workspaceId}/agents/{id}","href":"/api-reference/agentservice/update-an-agent"},{"title":"Publish an agent","deprecated":null,"version":null,"openapi":"https://openapi.cadenya.com/api-spec.yml post /v1/workspaces/{workspaceId}/agents/{id}:publish","href":"/api-reference/agentservice/publish-an-agent"},{"title":"Unpublish an agent","deprecated":null,"version":null,"openapi":"https://openapi.cadenya.com/api-spec.yml post /v1/workspaces/{workspaceId}/agents/{id}:unpublish","href":"/api-reference/agentservice/unpublish-an-agent"},{"title":"Archive an agent","deprecated":null,"version":null,"openapi":"https://openapi.cadenya.com/api-spec.yml post /v1/workspaces/{workspaceId}/agents/{id}:archive","href":"/api-reference/agentservice/archive-an-agent"},{"title":"Unarchive an agent","deprecated":null,"version":null,"openapi":"https://openapi.cadenya.com/api-spec.yml post /v1/workspaces/{workspaceId}/agents/{id}:unarchive","href":"/api-reference/agentservice/unarchive-an-agent"}]},{"group":"Agent Variations","pages":[{"title":"List variations","deprecated":null,"version":null,"openapi":"https://openapi.cadenya.com/api-spec.yml get /v1/workspaces/{workspaceId}/agents/{agentId}/variations","href":"/api-reference/agentvariationservice/list-variations"},{"title":"Create a new variation","deprecated":null,"version":null,"openapi":"https://openapi.cadenya.com/api-spec.yml post /v1/workspaces/{workspaceId}/agents/{agentId}/variations","href":"/api-reference/agentvariationservice/create-a-new-variation"},{"title":"Get a variation by ID","deprecated":null,"version":null,"openapi":"https://openapi.cadenya.com/api-spec.yml get /v1/workspaces/{workspaceId}/agents/{agentId}/variations/{id}","href":"/api-reference/agentvariationservice/get-a-variation-by-id"},{"title":"Delete a variation","deprecated":null,"version":null,"openapi":"https://openapi.cadenya.com/api-spec.yml delete /v1/workspaces/{workspaceId}/agents/{agentId}/variations/{id}","href":"/api-reference/agentvariationservice/delete-a-variation"},{"title":"Update a variation","deprecated":null,"version":null,"openapi":"https://openapi.cadenya.com/api-spec.yml patch /v1/workspaces/{workspaceId}/agents/{agentId}/variations/{id}","href":"/api-reference/agentvariationservice/update-a-variation"},{"title":"Add an assignment to a variation","deprecated":null,"version":null,"openapi":"https://openapi.cadenya.com/api-spec.yml post /v1/workspaces/{workspaceId}/agents/{agentId}/variations/{variationId}:addAssignment","href":"/api-reference/agentvariationservice/add-an-assignment-to-a-variation"},{"title":"Remove an assignment from a variation","deprecated":null,"version":null,"openapi":"https://openapi.cadenya.com/api-spec.yml post /v1/workspaces/{workspaceId}/agents/{agentId}/variations/{variationId}:removeAssignment","href":"/api-reference/agentvariationservice/remove-an-assignment-from-a-variation"},{"title":"Attach a memory layer to a variation","deprecated":null,"version":null,"openapi":"https://openapi.cadenya.com/api-spec.yml post /v1/workspaces/{workspaceId}/agents/{agentId}/variations/{variationId}:addMemoryLayer","href":"/api-reference/agentvariationservice/attach-a-memory-layer-to-a-variation"},{"title":"Remove a memory layer assignment from a variation","deprecated":null,"version":null,"openapi":"https://openapi.cadenya.com/api-spec.yml post /v1/workspaces/{workspaceId}/agents/{agentId}/variations/{variationId}:removeMemoryLayer","href":"/api-reference/agentvariationservice/remove-a-memory-layer-assignment-from-a-variation"},{"title":"Update a variation's memory layer assignment","deprecated":null,"version":null,"openapi":"https://openapi.cadenya.com/api-spec.yml post /v1/workspaces/{workspaceId}/agents/{agentId}/variations/{variationId}:updateMemoryLayer","href":"/api-reference/agentvariationservice/update-a-variations-memory-layer-assignment"}]},{"group":"Agent Schedules","pages":[{"title":"List schedules","deprecated":null,"version":null,"openapi":"https://openapi.cadenya.com/api-spec.yml get /v1/workspaces/{workspaceId}/agents/{agentId}/schedules","href":"/api-reference/agentscheduleservice/list-schedules"},{"title":"Create a new schedule","deprecated":null,"version":null,"openapi":"https://openapi.cadenya.com/api-spec.yml post /v1/workspaces/{workspaceId}/agents/{agentId}/schedules","href":"/api-reference/agentscheduleservice/create-a-new-schedule"},{"title":"Get a schedule by ID","deprecated":null,"version":null,"openapi":"https://openapi.cadenya.com/api-spec.yml get /v1/workspaces/{workspaceId}/agents/{agentId}/schedules/{id}","href":"/api-reference/agentscheduleservice/get-a-schedule-by-id"},{"title":"Delete a schedule","deprecated":null,"version":null,"openapi":"https://openapi.cadenya.com/api-spec.yml delete /v1/workspaces/{workspaceId}/agents/{agentId}/schedules/{id}","href":"/api-reference/agentscheduleservice/delete-a-schedule"},{"title":"Update a schedule","deprecated":null,"version":null,"openapi":"https://openapi.cadenya.com/api-spec.yml patch /v1/workspaces/{workspaceId}/agents/{agentId}/schedules/{id}","href":"/api-reference/agentscheduleservice/update-a-schedule"},{"title":"Pause a schedule","deprecated":null,"version":null,"openapi":"https://openapi.cadenya.com/api-spec.yml post /v1/workspaces/{workspaceId}/agents/{agentId}/schedules/{id}:pause","href":"/api-reference/agentscheduleservice/pause-a-schedule"},{"title":"Resume a schedule","deprecated":null,"version":null,"openapi":"https://openapi.cadenya.com/api-spec.yml post /v1/workspaces/{workspaceId}/agents/{agentId}/schedules/{id}:resume","href":"/api-reference/agentscheduleservice/resume-a-schedule"},{"title":"Archive a schedule","deprecated":null,"version":null,"openapi":"https://openapi.cadenya.com/api-spec.yml post /v1/workspaces/{workspaceId}/agents/{agentId}/schedules/{id}:archive","href":"/api-reference/agentscheduleservice/archive-a-schedule"}]},{"group":"Objectives","pages":[{"title":"List objectives","deprecated":null,"version":null,"openapi":"https://openapi.cadenya.com/api-spec.yml get /v1/workspaces/{workspaceId}/objectives","href":"/api-reference/objectiveservice/list-objectives"},{"title":"Create a new objective","deprecated":null,"version":null,"openapi":"https://openapi.cadenya.com/api-spec.yml post /v1/workspaces/{workspaceId}/objectives","href":"/api-reference/objectiveservice/create-a-new-objective"},{"title":"Create an objective and stream its events","deprecated":null,"version":null,"openapi":"https://openapi.cadenya.com/api-spec.yml post /v1/workspaces/{workspaceId}/objectives:stream","href":"/api-reference/objectiveeventstreamsservice/create-an-objective-and-stream-its-events"},{"title":"Get an objective by ID","deprecated":null,"version":null,"openapi":"https://openapi.cadenya.com/api-spec.yml get /v1/workspaces/{workspaceId}/objectives/{id}","href":"/api-reference/objectiveservice/get-an-objective-by-id"},{"title":"Cancel an objective","deprecated":null,"version":null,"openapi":"https://openapi.cadenya.com/api-spec.yml post /v1/workspaces/{workspaceId}/objectives/{objectiveId}:cancel","href":"/api-reference/objectiveservice/cancel-an-objective"},{"title":"Compact an objective","deprecated":null,"version":null,"openapi":"https://openapi.cadenya.com/api-spec.yml post /v1/workspaces/{workspaceId}/objectives/{objectiveId}:compact","href":"/api-reference/objectiveservice/compact-an-objective"},{"title":"List objective context windows","deprecated":null,"version":null,"openapi":"https://openapi.cadenya.com/api-spec.yml get /v1/workspaces/{workspaceId}/objectives/{objectiveId}/context_windows","href":"/api-reference/objectiveservice/list-objective-context-windows"},{"title":"Continue an objective","deprecated":null,"version":null,"openapi":"https://openapi.cadenya.com/api-spec.yml post /v1/workspaces/{workspaceId}/objectives/{objectiveId}:continue","href":"/api-reference/objectiveservice/continue-an-objective"},{"title":"List objective events","deprecated":null,"version":null,"openapi":"https://openapi.cadenya.com/api-spec.yml get /v1/workspaces/{workspaceId}/objectives/{objectiveId}/events","href":"/api-reference/objectiveservice/list-objective-events"},{"title":"Stream objective events","deprecated":null,"version":null,"openapi":"https://openapi.cadenya.com/api-spec.yml get /v1/workspaces/{workspaceId}/objectives/{objectiveId}/events:stream","href":"/api-reference/objectiveeventstreamsservice/stream-objective-events"},{"title":"Get objective context usage","deprecated":null,"version":null,"openapi":"https://openapi.cadenya.com/api-spec.yml get /v1/workspaces/{workspaceId}/objectives/{objectiveId}/diagnostics","href":"/api-reference/objectiveservice/get-objective-context-usage"},{"title":"List feedback for an objective","deprecated":null,"version":null,"openapi":"https://openapi.cadenya.com/api-spec.yml get /v1/workspaces/{workspaceId}/objectives/{objectiveId}/feedback","href":"/api-reference/objectiveservice/list-feedback-for-an-objective"},{"title":"Submit feedback for an objective","deprecated":null,"version":null,"openapi":"https://openapi.cadenya.com/api-spec.yml post /v1/workspaces/{workspaceId}/objectives/{objectiveId}/feedback","href":"/api-reference/objectiveservice/submit-feedback-for-an-objective"},{"title":"List objective tool calls","deprecated":null,"version":null,"openapi":"https://openapi.cadenya.com/api-spec.yml get /v1/workspaces/{workspaceId}/objectives/{objectiveId}/tool_calls","href":"/api-reference/objectiveservice/list-objective-tool-calls"},{"title":"Get an objective tool call by ID","deprecated":null,"version":null,"openapi":"https://openapi.cadenya.com/api-spec.yml get /v1/workspaces/{workspaceId}/objectives/{objectiveId}/tool_calls/{toolCallId}","href":"/api-reference/objectiveservice/get-an-objective-tool-call-by-id"},{"title":"Approve a tool call","deprecated":null,"version":null,"openapi":"https://openapi.cadenya.com/api-spec.yml post /v1/workspaces/{workspaceId}/objectives/{objectiveId}/tool_calls/{toolCallId}:approve","href":"/api-reference/objectiveservice/approve-a-tool-call"},{"title":"Deny a tool call","deprecated":null,"version":null,"openapi":"https://openapi.cadenya.com/api-spec.yml post /v1/workspaces/{workspaceId}/objectives/{objectiveId}/tool_calls/{toolCallId}:deny","href":"/api-reference/objectiveservice/deny-a-tool-call"},{"title":"Set a bare tool call's content","deprecated":null,"version":null,"openapi":"https://openapi.cadenya.com/api-spec.yml post /v1/workspaces/{workspaceId}/objectives/{objectiveId}/tool_calls/{toolCallId}:setContent","href":"/api-reference/objectiveservice/set-a-bare-tool-calls-content"},{"title":"List objective tools","deprecated":null,"version":null,"openapi":"https://openapi.cadenya.com/api-spec.yml get /v1/workspaces/{workspaceId}/objectives/{objectiveId}/tools","href":"/api-reference/objectiveservice/list-objective-tools"}]},{"group":"Widgets","pages":[{"title":"List widgets","deprecated":null,"version":null,"openapi":"https://openapi.cadenya.com/api-spec.yml get /v1/workspaces/{workspaceId}/widgets","href":"/api-reference/widgetservice/list-widgets"},{"title":"Create a new widget","deprecated":null,"version":null,"openapi":"https://openapi.cadenya.com/api-spec.yml post /v1/workspaces/{workspaceId}/widgets","href":"/api-reference/widgetservice/create-a-new-widget"},{"title":"Get a widget by ID","deprecated":null,"version":null,"openapi":"https://openapi.cadenya.com/api-spec.yml get /v1/workspaces/{workspaceId}/widgets/{id}","href":"/api-reference/widgetservice/get-a-widget-by-id"},{"title":"Update a widget","deprecated":null,"version":null,"openapi":"https://openapi.cadenya.com/api-spec.yml patch /v1/workspaces/{workspaceId}/widgets/{id}","href":"/api-reference/widgetservice/update-a-widget"},{"title":"Delete a widget","deprecated":null,"version":null,"openapi":"https://openapi.cadenya.com/api-spec.yml delete /v1/workspaces/{workspaceId}/widgets/{id}","href":"/api-reference/widgetservice/delete-a-widget"},{"title":"Archive a widget","deprecated":null,"version":null,"openapi":"https://openapi.cadenya.com/api-spec.yml post /v1/workspaces/{workspaceId}/widgets/{id}:archive","href":"/api-reference/widgetservice/archive-a-widget"},{"title":"Unarchive a widget","deprecated":null,"version":null,"openapi":"https://openapi.cadenya.com/api-spec.yml post /v1/workspaces/{workspaceId}/widgets/{id}:unarchive","href":"/api-reference/widgetservice/unarchive-a-widget"}]},{"group":"Widget Sessions","pages":[{"title":"List widget sessions","deprecated":null,"version":null,"openapi":"https://openapi.cadenya.com/api-spec.yml get /v1/workspaces/{workspaceId}/widget_sessions","href":"/api-reference/widgetsessionservice/list-widget-sessions"},{"title":"Create a widget session","deprecated":null,"version":null,"openapi":"https://openapi.cadenya.com/api-spec.yml post /v1/workspaces/{workspaceId}/widget_sessions","href":"/api-reference/widgetsessionservice/create-a-widget-session"},{"title":"Get a widget session by ID","deprecated":null,"version":null,"openapi":"https://openapi.cadenya.com/api-spec.yml get /v1/workspaces/{workspaceId}/widget_sessions/{id}","href":"/api-reference/widgetsessionservice/get-a-widget-session-by-id"},{"title":"Revoke a widget session","deprecated":null,"version":null,"openapi":"https://openapi.cadenya.com/api-spec.yml post /v1/workspaces/{workspaceId}/widget_sessions/{id}:revoke","href":"/api-reference/widgetsessionservice/revoke-a-widget-session"},{"title":"Delete a widget session","deprecated":null,"version":null,"openapi":"https://openapi.cadenya.com/api-spec.yml delete /v1/workspaces/{workspaceId}/widget_sessions/{id}","href":"/api-reference/widgetsessionservice/delete-a-widget-session"},{"title":"Delete all of a tenant's widget sessions","deprecated":null,"version":null,"openapi":"https://openapi.cadenya.com/api-spec.yml delete /v1/workspaces/{workspaceId}/widget_sessions","href":"/api-reference/widgetsessionservice/delete-all-of-a-tenants-widget-sessions"}]},{"group":"Tenants","pages":[{"title":"List tenants","deprecated":null,"version":null,"openapi":"https://openapi.cadenya.com/api-spec.yml get /v1/workspaces/{workspaceId}/tenants","href":"/api-reference/tenantservice/list-tenants"},{"title":"Get a tenant by ID","deprecated":null,"version":null,"openapi":"https://openapi.cadenya.com/api-spec.yml get /v1/workspaces/{workspaceId}/tenants/{id}","href":"/api-reference/tenantservice/get-a-tenant-by-id"},{"title":"List a tenant's subjects","deprecated":null,"version":null,"openapi":"https://openapi.cadenya.com/api-spec.yml get /v1/workspaces/{workspaceId}/tenants/{tenantId}/subjects","href":"/api-reference/tenantservice/list-a-tenants-subjects"},{"title":"Erase a tenant","deprecated":null,"version":null,"openapi":"https://openapi.cadenya.com/api-spec.yml delete /v1/workspaces/{workspaceId}/tenants/{id}","href":"/api-reference/tenantservice/erase-a-tenant"}]},{"group":"Memory Layers","pages":[{"title":"List memory layers","deprecated":null,"version":null,"openapi":"https://openapi.cadenya.com/api-spec.yml get /v1/workspaces/{workspaceId}/memory_layers","href":"/api-reference/memoryservice/list-memory-layers"},{"title":"Create a new memory layer","deprecated":null,"version":null,"openapi":"https://openapi.cadenya.com/api-spec.yml post /v1/workspaces/{workspaceId}/memory_layers","href":"/api-reference/memoryservice/create-a-new-memory-layer"},{"title":"Get a memory layer by ID","deprecated":null,"version":null,"openapi":"https://openapi.cadenya.com/api-spec.yml get /v1/workspaces/{workspaceId}/memory_layers/{id}","href":"/api-reference/memoryservice/get-a-memory-layer-by-id"},{"title":"Delete a memory layer","deprecated":null,"version":null,"openapi":"https://openapi.cadenya.com/api-spec.yml delete /v1/workspaces/{workspaceId}/memory_layers/{id}","href":"/api-reference/memoryservice/delete-a-memory-layer"},{"title":"Update a memory layer","deprecated":null,"version":null,"openapi":"https://openapi.cadenya.com/api-spec.yml patch /v1/workspaces/{workspaceId}/memory_layers/{id}","href":"/api-reference/memoryservice/update-a-memory-layer"}]},{"group":"Memory Entries","pages":[{"title":"List memory entries","deprecated":null,"version":null,"openapi":"https://openapi.cadenya.com/api-spec.yml get /v1/workspaces/{workspaceId}/memory_layers/{memoryLayerId}/entries","href":"/api-reference/memoryservice/list-memory-entries"},{"title":"Create a new memory entry","deprecated":null,"version":null,"openapi":"https://openapi.cadenya.com/api-spec.yml post /v1/workspaces/{workspaceId}/memory_layers/{memoryLayerId}/entries","href":"/api-reference/memoryservice/create-a-new-memory-entry"},{"title":"Get a memory entry by ID","deprecated":null,"version":null,"openapi":"https://openapi.cadenya.com/api-spec.yml get /v1/workspaces/{workspaceId}/memory_layers/{memoryLayerId}/entries/{id}","href":"/api-reference/memoryservice/get-a-memory-entry-by-id"},{"title":"Delete a memory entry","deprecated":null,"version":null,"openapi":"https://openapi.cadenya.com/api-spec.yml delete /v1/workspaces/{workspaceId}/memory_layers/{memoryLayerId}/entries/{id}","href":"/api-reference/memoryservice/delete-a-memory-entry"},{"title":"Update a memory entry","deprecated":null,"version":null,"openapi":"https://openapi.cadenya.com/api-spec.yml patch /v1/workspaces/{workspaceId}/memory_layers/{memoryLayerId}/entries/{id}","href":"/api-reference/memoryservice/update-a-memory-entry"}]},{"group":"Models","pages":[{"title":"List models","deprecated":null,"version":null,"openapi":"https://openapi.cadenya.com/api-spec.yml get /v1/workspaces/{workspaceId}/models","href":"/api-reference/modelservice/list-models"},{"title":"Get a model by ID","deprecated":null,"version":null,"openapi":"https://openapi.cadenya.com/api-spec.yml get /v1/workspaces/{workspaceId}/models/{id}","href":"/api-reference/modelservice/get-a-model-by-id"},{"title":"Enable a model","deprecated":null,"version":null,"openapi":"https://openapi.cadenya.com/api-spec.yml post /v1/workspaces/{workspaceId}/models/{id}:enable","href":"/api-reference/modelservice/enable-a-model"},{"title":"Disable a model","deprecated":null,"version":null,"openapi":"https://openapi.cadenya.com/api-spec.yml post /v1/workspaces/{workspaceId}/models/{id}:disable","href":"/api-reference/modelservice/disable-a-model"},{"title":"Swap models on agent variations","deprecated":null,"version":null,"openapi":"https://openapi.cadenya.com/api-spec.yml post /v1/workspaces/{workspaceId}/models:swapModelOnVariations","href":"/api-reference/modelservice/swap-models-on-agent-variations"}]},{"group":"Uploads","pages":[{"title":"Create an upload","deprecated":null,"version":null,"openapi":"https://openapi.cadenya.com/api-spec.yml post /v1/workspaces/{workspaceId}/uploads","href":"/api-reference/uploadservice/create-an-upload"},{"title":"Get an upload by ID","deprecated":null,"version":null,"openapi":"https://openapi.cadenya.com/api-spec.yml get /v1/workspaces/{workspaceId}/uploads/{id}","href":"/api-reference/uploadservice/get-an-upload-by-id"}]},{"group":"Workspaces","pages":[{"title":"List workspaces","deprecated":null,"version":null,"openapi":"https://openapi.cadenya.com/api-spec.yml get /v1/workspaces","href":"/api-reference/workspaceservice/list-workspaces"}]},{"group":"Workspace Secrets","pages":[{"title":"List workspace secrets","deprecated":null,"version":null,"openapi":"https://openapi.cadenya.com/api-spec.yml get /v1/workspaces/{workspaceId}/workspace_secrets","href":"/api-reference/workspacesecretservice/list-workspace-secrets"},{"title":"Create a new workspace secret","deprecated":null,"version":null,"openapi":"https://openapi.cadenya.com/api-spec.yml post /v1/workspaces/{workspaceId}/workspace_secrets","href":"/api-reference/workspacesecretservice/create-a-new-workspace-secret"},{"title":"Get a workspace secret by ID","deprecated":null,"version":null,"openapi":"https://openapi.cadenya.com/api-spec.yml get /v1/workspaces/{workspaceId}/workspace_secrets/{id}","href":"/api-reference/workspacesecretservice/get-a-workspace-secret-by-id"},{"title":"Delete a workspace secret","deprecated":null,"version":null,"openapi":"https://openapi.cadenya.com/api-spec.yml delete /v1/workspaces/{workspaceId}/workspace_secrets/{id}","href":"/api-reference/workspacesecretservice/delete-a-workspace-secret"},{"title":"Update a workspace secret","deprecated":null,"version":null,"openapi":"https://openapi.cadenya.com/api-spec.yml patch /v1/workspaces/{workspaceId}/workspace_secrets/{id}","href":"/api-reference/workspacesecretservice/update-a-workspace-secret"}]},{"group":"Workspace Admin","pages":[{"title":"Search account profiles","deprecated":null,"version":null,"openapi":"https://openapi.cadenya.com/api-spec.yml get /v1/account/profiles","href":"/api-reference/workspaceadminservice/search-account-profiles"},{"title":"List all workspaces in the account","deprecated":null,"version":null,"openapi":"https://openapi.cadenya.com/api-spec.yml get /v1/account/workspaces","href":"/api-reference/workspaceadminservice/list-all-workspaces-in-the-account"},{"title":"Create a workspace","deprecated":null,"version":null,"openapi":"https://openapi.cadenya.com/api-spec.yml post /v1/account/workspaces","href":"/api-reference/workspaceadminservice/create-a-workspace"},{"title":"Get a workspace by ID","deprecated":null,"version":null,"openapi":"https://openapi.cadenya.com/api-spec.yml get /v1/account/workspaces/{workspaceId}","href":"/api-reference/workspaceadminservice/get-a-workspace-by-id"},{"title":"Archive a workspace","deprecated":null,"version":null,"openapi":"https://openapi.cadenya.com/api-spec.yml delete /v1/account/workspaces/{workspaceId}","href":"/api-reference/workspaceadminservice/archive-a-workspace"},{"title":"Update a workspace","deprecated":null,"version":null,"openapi":"https://openapi.cadenya.com/api-spec.yml patch /v1/account/workspaces/{workspaceId}","href":"/api-reference/workspaceadminservice/update-a-workspace"},{"title":"List workspace members","deprecated":null,"version":null,"openapi":"https://openapi.cadenya.com/api-spec.yml get /v1/account/workspaces/{workspaceId}/members","href":"/api-reference/workspaceadminservice/list-workspace-members"},{"title":"Add a member to a workspace","deprecated":null,"version":null,"openapi":"https://openapi.cadenya.com/api-spec.yml post /v1/account/workspaces/{workspaceId}/members","href":"/api-reference/workspaceadminservice/add-a-member-to-a-workspace"},{"title":"Remove a member from a workspace","deprecated":null,"version":null,"openapi":"https://openapi.cadenya.com/api-spec.yml delete /v1/account/workspaces/{workspaceId}/members/{profileId}","href":"/api-reference/workspaceadminservice/remove-a-member-from-a-workspace"}]},{"group":"Accounts","pages":[{"title":"Retrieves the current account for the token accessing the API","deprecated":null,"version":null,"openapi":"https://openapi.cadenya.com/api-spec.yml get /v1/account","href":"/api-reference/accountservice/retrieves-the-current-account-for-the-token-accessing-the-api"},{"title":"Retrieves the profile for the credentials accessing the API","deprecated":null,"version":null,"openapi":"https://openapi.cadenya.com/api-spec.yml get /v1/whoami","href":"/api-reference/profilesservice/retrieves-the-profile-for-the-credentials-accessing-the-api"},{"title":"Rotates the webhook signing key for the account","deprecated":null,"version":null,"openapi":"https://openapi.cadenya.com/api-spec.yml post /v1/account:rotateWebhookSigningKey","href":"/api-reference/accountservice/rotates-the-webhook-signing-key-for-the-account"},{"title":"Rotates the challenge token for the account","deprecated":null,"version":null,"openapi":"https://openapi.cadenya.com/api-spec.yml post /v1/account:rotateChallengeToken","href":"/api-reference/accountservice/rotates-the-challenge-token-for-the-account"}]},{"group":"API Keys","pages":[{"title":"List API keys","deprecated":null,"version":null,"openapi":"https://openapi.cadenya.com/api-spec.yml get /v1/account/api_keys","href":"/api-reference/apikeyservice/list-api-keys"},{"title":"Create a new API key","deprecated":null,"version":null,"openapi":"https://openapi.cadenya.com/api-spec.yml post /v1/account/api_keys","href":"/api-reference/apikeyservice/create-a-new-api-key"},{"title":"Get an API key by ID","deprecated":null,"version":null,"openapi":"https://openapi.cadenya.com/api-spec.yml get /v1/account/api_keys/{id}","href":"/api-reference/apikeyservice/get-an-api-key-by-id"},{"title":"Update an API key","deprecated":null,"version":null,"openapi":"https://openapi.cadenya.com/api-spec.yml patch /v1/account/api_keys/{id}","href":"/api-reference/apikeyservice/update-an-api-key"},{"title":"Delete an API key","deprecated":null,"version":null,"openapi":"https://openapi.cadenya.com/api-spec.yml delete /v1/account/api_keys/{id}","href":"/api-reference/apikeyservice/delete-an-api-key"},{"title":"Rotate an API key","deprecated":null,"version":null,"openapi":"https://openapi.cadenya.com/api-spec.yml post /v1/account/api_keys/{id}:rotate","href":"/api-reference/apikeyservice/rotate-an-api-key"},{"title":"Disable an API key","deprecated":null,"version":null,"openapi":"https://openapi.cadenya.com/api-spec.yml post /v1/account/api_keys/{id}:disable","href":"/api-reference/apikeyservice/disable-an-api-key"},{"title":"Enable an API key","deprecated":null,"version":null,"openapi":"https://openapi.cadenya.com/api-spec.yml post /v1/account/api_keys/{id}:enable","href":"/api-reference/apikeyservice/enable-an-api-key"},{"title":"Assign a workspace to an API key","deprecated":null,"version":null,"openapi":"https://openapi.cadenya.com/api-spec.yml post /v1/account/api_keys/{id}:addWorkspace","href":"/api-reference/apikeyservice/assign-a-workspace-to-an-api-key"},{"title":"Remove a workspace from an API key","deprecated":null,"version":null,"openapi":"https://openapi.cadenya.com/api-spec.yml post /v1/account/api_keys/{id}:removeWorkspace","href":"/api-reference/apikeyservice/remove-a-workspace-from-an-api-key"},{"title":"Reveal an API key's token","deprecated":null,"version":null,"openapi":"https://openapi.cadenya.com/api-spec.yml post /v1/account/api_keys/{id}:reveal","href":"/api-reference/apikeyservice/reveal-an-api-keys-token"}]},{"group":"AI Provider Keys","pages":[{"title":"List AI provider keys","deprecated":null,"version":null,"openapi":"https://openapi.cadenya.com/api-spec.yml get /v1/workspaces/{workspaceId}/ai_provider_keys","href":"/api-reference/aiproviderkeyservice/list-ai-provider-keys"},{"title":"Create a new AI provider key","deprecated":null,"version":null,"openapi":"https://openapi.cadenya.com/api-spec.yml post /v1/workspaces/{workspaceId}/ai_provider_keys","href":"/api-reference/aiproviderkeyservice/create-a-new-ai-provider-key"},{"title":"Get an AI provider key by ID","deprecated":null,"version":null,"openapi":"https://openapi.cadenya.com/api-spec.yml get /v1/workspaces/{workspaceId}/ai_provider_keys/{id}","href":"/api-reference/aiproviderkeyservice/get-an-ai-provider-key-by-id"},{"title":"Update an AI provider key","deprecated":null,"version":null,"openapi":"https://openapi.cadenya.com/api-spec.yml patch /v1/workspaces/{workspaceId}/ai_provider_keys/{id}","href":"/api-reference/aiproviderkeyservice/update-an-ai-provider-key"},{"title":"Delete an AI provider key","deprecated":null,"version":null,"openapi":"https://openapi.cadenya.com/api-spec.yml delete /v1/workspaces/{workspaceId}/ai_provider_keys/{id}","href":"/api-reference/aiproviderkeyservice/delete-an-ai-provider-key"}]},{"group":"Webhook Events","pages":[{"title":"Webhook events","sidebarTitle":"Overview","href":"/api-reference/webhook-events"},{"title":"User message","sidebarTitle":"User message","href":"/api-reference/objective-user-message-event"},{"title":"Assistant message","sidebarTitle":"Assistant message","href":"/api-reference/objective-assistant-message-event"},{"title":"Tool called","sidebarTitle":"Tool called","href":"/api-reference/objective-tool-called-event"},{"title":"Tool result","sidebarTitle":"Tool result","href":"/api-reference/objective-tool-result-event"},{"title":"Tool approval requested","sidebarTitle":"Tool approval requested","href":"/api-reference/objective-tool-approval-requested-event"},{"title":"Tool approved","sidebarTitle":"Tool approved","href":"/api-reference/objective-tool-approved-event"},{"title":"Tool denied","sidebarTitle":"Tool denied","href":"/api-reference/objective-tool-denied-event"},{"title":"Tool error","sidebarTitle":"Tool error","href":"/api-reference/objective-tool-error-event"},{"title":"Sub-agent spawned","sidebarTitle":"Sub-agent spawned","href":"/api-reference/objective-sub-agent-spawned-event"},{"title":"Sub-agent updated","sidebarTitle":"Sub-agent updated","href":"/api-reference/objective-sub-agent-updated-event"},{"title":"Memory read","sidebarTitle":"Memory read","href":"/api-reference/objective-memory-read-event"},{"title":"Reasoning","sidebarTitle":"Reasoning","href":"/api-reference/objective-reasoning-event"},{"title":"Objective finalized","sidebarTitle":"Objective finalized","href":"/api-reference/objective-finalized-event"},{"title":"Error","sidebarTitle":"Error","href":"/api-reference/objective-error-event"}]}]},{"tab":"Widgets API","icon":"comments","pages":[{"title":"Widgets API","href":"/widgets-api-reference"}]}]},"basePath":"","title":"Create a new agent - Cadenya","deploymentId":"dpl_81ettUQ5G7NASN425B6JKU3FX1Rg","buildId":"dpl_81ettUQ5G7NASN425B6JKU3FX1Rg","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-GKHRyhW5.js","utils-CXMoydtj.js","cloneDeep-Cl7CR73B.js","_Uint8Array-7sQhd3aE.js","isObject-FP1Yky1u.js","utils-ABJ_F6Yn.js","addUniqueKeysToSchema-B7v39GOQ.js","snippetPresets-CgibLHmh.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","conditional-requirements-CFM0id0Q.js","ApiExamples-C2n3VqMC.js","isEqual-BKe3Q7nP.js","usePlaygroundInputsStore-Iji6acs6.js","shallow-Db9K5ulX.js","getApiPlaygroundDisplay-BGnJQBSj.js","CodeSnippet-DlQqWRja.js","CodeSnippets-JF3Bj6-U.js","Page-Ctn-BHcp.js","getPastedJson-B0pIrOza.js","icon-UPBYC1Wr.js","MethodPill-CoVRW5MG.js","DuplicateIcon-BuNnsqwg.js","createIcon-Cj9cJegl.js","DynamicMarkdown-C_R66tyH.js","SectionHeading-C6RB-y9f.js","axios-vUo_bRtp.js","Markdown-g2PbGssl.js","dist-DbZ3bm7k.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","katex-YMM-FMeD.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js","AssistantPageLink-BGnit25E.js"]}