{
"success": false,
"error": {
"code": "bad_request",
"message": "The requested resource was not found.",
"doc_url": "https://docs.agentset.ai/api-reference/errors#bad-request"
}
}
{
"success": false,
"error": {
"code": "unauthorized",
"message": "The requested resource was not found.",
"doc_url": "https://docs.agentset.ai/api-reference/errors#unauthorized"
}
}
{
"success": false,
"error": {
"code": "forbidden",
"message": "The requested resource was not found.",
"doc_url": "https://docs.agentset.ai/api-reference/errors#forbidden"
}
}
{
"success": false,
"error": {
"code": "not_found",
"message": "The requested resource was not found.",
"doc_url": "https://docs.agentset.ai/api-reference/errors#not-found"
}
}
{
"success": false,
"error": {
"code": "conflict",
"message": "The requested resource was not found.",
"doc_url": "https://docs.agentset.ai/api-reference/errors#conflict"
}
}
{
"success": false,
"error": {
"code": "invite_expired",
"message": "The requested resource was not found.",
"doc_url": "https://docs.agentset.ai/api-reference/errors#invite-expired"
}
}
{
"success": false,
"error": {
"code": "unprocessable_entity",
"message": "The requested resource was not found.",
"doc_url": "https://docs.agentset.ai/api-reference/errors#unprocessable-entity"
}
}
{
"success": false,
"error": {
"code": "rate_limit_exceeded",
"message": "The requested resource was not found.",
"doc_url": "https://docs.agentset.ai/api-reference/errors#rate-limit_exceeded"
}
}
{
"success": false,
"error": {
"code": "internal_server_error",
"message": "The requested resource was not found.",
"doc_url": "https://docs.agentset.ai/api-reference/errors#internal-server_error"
}
}
Authorizations
Authorization
string
header
required
Default authentication mechanism
Body
application/json
name
string
required
Required string length: 1 - 64
slug
string
required
Required string length: 2 - 48
embeddingConfig
OpenAI Embedding Config · object
The embedding model config. If not provided, our managed embedding model will be used. Note: You can't change the embedding model config after the namespace is created.
OpenAI Embedding Config
Azure Embedding Config
Voyage Embedding Config
Google Embedding Config
Option 5
Show child attributes
vectorStoreConfig
object
The vector store config. If not provided, our MANAGED_PINECONE vector store will be used. Note: You can't change the vector store config after the namespace is created.
Option 1
Option 2
Pinecone Config
Turbopuffer Config
Show child attributes
Response
The created namespace
success
boolean
required
data
Namespace · object
required
Show child attributes
⌘I
TypeScript
import { Agentset } from "agentset";const agentset = new Agentset({ apiKey: 'agentset_xxx' });const namespace = await agentset.namespaces.create({ name: "My Knowledge Base", slug: "my-knowledge-base", // embeddingConfig: {...}, // vectorStoreConfig: {...},});console.log(namespace);
from agentset import Agentset
with Agentset(
token="AGENTSET_API_KEY",
) as a_client:
res = a_client.namespaces.create(name="<value>", slug="<value>", embedding_config={
"provider": "GOOGLE",
"model": "text-embedding-004",
"api_key": "<value>",
}, vector_store_config={
"provider": "PINECONE",
"api_key": "<value>",
"index_host": "https://example.svc.aped-1234-a56b.pinecone.io",
})
# Handle response
print(res)
{
"success": false,
"error": {
"code": "bad_request",
"message": "The requested resource was not found.",
"doc_url": "https://docs.agentset.ai/api-reference/errors#bad-request"
}
}
{
"success": false,
"error": {
"code": "unauthorized",
"message": "The requested resource was not found.",
"doc_url": "https://docs.agentset.ai/api-reference/errors#unauthorized"
}
}
{
"success": false,
"error": {
"code": "forbidden",
"message": "The requested resource was not found.",
"doc_url": "https://docs.agentset.ai/api-reference/errors#forbidden"
}
}
{
"success": false,
"error": {
"code": "not_found",
"message": "The requested resource was not found.",
"doc_url": "https://docs.agentset.ai/api-reference/errors#not-found"
}
}
{
"success": false,
"error": {
"code": "conflict",
"message": "The requested resource was not found.",
"doc_url": "https://docs.agentset.ai/api-reference/errors#conflict"
}
}
{
"success": false,
"error": {
"code": "invite_expired",
"message": "The requested resource was not found.",
"doc_url": "https://docs.agentset.ai/api-reference/errors#invite-expired"
}
}
{
"success": false,
"error": {
"code": "unprocessable_entity",
"message": "The requested resource was not found.",
"doc_url": "https://docs.agentset.ai/api-reference/errors#unprocessable-entity"
}
}
{
"success": false,
"error": {
"code": "rate_limit_exceeded",
"message": "The requested resource was not found.",
"doc_url": "https://docs.agentset.ai/api-reference/errors#rate-limit_exceeded"
}
}
{
"success": false,
"error": {
"code": "internal_server_error",
"message": "The requested resource was not found.",
"doc_url": "https://docs.agentset.ai/api-reference/errors#internal-server_error"
}
}
{"docsConfig":{"theme":"maple","$schema":"https://mintlify.com/docs.json","name":"Agentset","colors":{"primary":"#101828","light":"#fff","dark":"#060B14"},"logo":{"light":"https://mintcdn.com/agentset/CEtQtLLZxyndVLIA/images/logo/light.svg?fit=max\u0026auto=format\u0026n=CEtQtLLZxyndVLIA\u0026q=85\u0026s=bad79c1567dca86262478917c11822ad","dark":"https://mintcdn.com/agentset/CEtQtLLZxyndVLIA/images/logo/dark.svg?fit=max\u0026auto=format\u0026n=CEtQtLLZxyndVLIA\u0026q=85\u0026s=2d4c089c575b721ba4b115a517cc43d4"},"favicon":"https://mintcdn.com/agentset/vcYsAoevgOLWGz34/images/logo/favicon.png?fit=max\u0026auto=format\u0026n=vcYsAoevgOLWGz34\u0026q=85\u0026s=288a0f5da8e94eb3f3a3cfc9d4ac49c3","api":{"openapi":"https://spec.speakeasy.com/agentset-ktc/api/agentset-api-with-code-samples"},"navbar":{"links":[{"href":"https://docs.agentset.ai/llms.txt","label":"LLMs.txt"},{"href":"mailto:contact@agentset.ai","label":"Contact Us"},{"href":"https://app.agentset.ai","label":"Login"}]},"footer":{"socials":{"github":"https://github.com/agentset-ai","discord":"https://discord.gg/AqMkKAYZCu"}},"integrations":{"ga4":{"measurementId":"G-QZ84QPSV3W"}},"contextual":{"options":["copy","chatgpt","claude","cursor","vscode"],"display":"header"},"styling":{"latex":false},"navigation":{"global":{"anchors":[]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"agentset","hasAudioNarration":false,"actualSubdomain":"agentset","customDomains":["docs.agentset.ai"],"gitSource":{"type":"github","owner":"agentset-ai","repo":"agentset","deployBranch":"main","contentDirectory":"docs","isPrivate":false,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6ae925ba8d7c6816d59fbb3a:success","clientVersion":"0.0.4336","searchFilterCounts":[{"language":"default","tag":"Documentation","count":32},{"language":"default","tag":"API Reference","count":27},{"language":"default","tag":"Self-hosting","count":12},{"language":"default","tag":"Steps","count":10},{"language":"default","tag":"Data Ingestion","count":9},{"language":"default","tag":"Overview","count":7},{"language":"default","tag":"Search and Retrieval","count":7},{"language":"default","tag":"Get Started","count":6},{"language":"default","tag":"Documents","count":5},{"language":"default","tag":"Ingest Jobs","count":5}]},"assistantConfig":{},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":"#content-area td a{text-decoration:underline!important}#content-area p a{text-decoration:underline!important}"}]}
{"page":{"pagePath":"api-reference/endpoint/namespaces/create","slug":"/api-reference/endpoint/namespaces/create","pageMetadata":{"openapi":"post /v1/namespace","title":"Create a namespace.","description":"Create a namespace for the authenticated organization.","href":"/api-reference/endpoint/namespaces/create"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Create a namespace for the authenticated organization.\"\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":{"openapi":"post /v1/namespace","title":"Create a namespace.","description":"Create a namespace for the authenticated organization.","href":"/api-reference/endpoint/namespaces/create"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"operationId":"createNamespace","x-speakeasy-name-override":"create","x-speakeasy-usage-example":true,"summary":"Create a namespace.","description":"Create a namespace for the authenticated organization.","tags":["Namespaces"],"security":["302838aa-65a6-49c3-8063-ef64e6b8d4f6"],"x-codeSamples":[{"lang":"TypeScript","source":"\nimport { Agentset } from \"agentset\";\n\nconst agentset = new Agentset({ apiKey: 'agentset_xxx' });\n\nconst namespace = await agentset.namespaces.create({\n name: \"My Knowledge Base\",\n slug: \"my-knowledge-base\",\n // embeddingConfig: {...},\n // vectorStoreConfig: {...},\n});\nconsole.log(namespace);\n"},{"lang":"python","label":"Python (SDK)","source":"from agentset import Agentset\n\n\nwith Agentset(\n token=\"AGENTSET_API_KEY\",\n) as a_client:\n\n res = a_client.namespaces.create(name=\"\u003cvalue>\", slug=\"\u003cvalue>\", embedding_config={\n \"provider\": \"GOOGLE\",\n \"model\": \"text-embedding-004\",\n \"api_key\": \"\u003cvalue>\",\n }, vector_store_config={\n \"provider\": \"PINECONE\",\n \"api_key\": \"\u003cvalue>\",\n \"index_host\": \"https://example.svc.aped-1234-a56b.pinecone.io\",\n })\n\n # Handle response\n print(res)"}],"requestBody":"c6c71c9a-134f-4e7b-bd6b-f131e6ddde1b","responses":{"201":"feb5038d-3557-4fb8-adf4-98f8f5bb326d","400":"f9919441-4b75-4964-97d5-f9462adf8885","401":"f22e8fca-8521-4b85-8c6e-e9e6dd4d4077","403":"5b8da39b-67be-446c-bc8b-566a3515c23f","404":"6a4deb44-a208-4516-9aa4-9dd06022430a","409":"f73a380b-79a0-44b7-a6fc-305f4f9d93a0","410":"20507e2f-52f3-4839-9fea-00fe557cb7fa","422":"b7eaeecb-3bb2-4cbc-a301-9327324c9e11","429":"bde87c0d-7097-42f7-bd49-ab58bedde610","500":"4cb1071e-18dc-41d2-99be-e03b9bcb022f"},"method":"post","type":"path","servers":["01d22303-6b66-4548-adb0-bfc5f26d3c3e"],"path":"/v1/namespace","baseUrlOptions":["https://api.agentset.ai"],"title":"Create a namespace.","codeSamples":[{"lang":"TypeScript","source":"\nimport { Agentset } from \"agentset\";\n\nconst agentset = new Agentset({ apiKey: 'agentset_xxx' });\n\nconst namespace = await agentset.namespaces.create({\n name: \"My Knowledge Base\",\n slug: \"my-knowledge-base\",\n // embeddingConfig: {...},\n // vectorStoreConfig: {...},\n});\nconsole.log(namespace);\n"},{"label":"Python (SDK)","lang":"python","source":"from agentset import Agentset\n\n\nwith Agentset(\n token=\"AGENTSET_API_KEY\",\n) as a_client:\n\n res = a_client.namespaces.create(name=\"\u003cvalue>\", slug=\"\u003cvalue>\", embedding_config={\n \"provider\": \"GOOGLE\",\n \"model\": \"text-embedding-004\",\n \"api_key\": \"\u003cvalue>\",\n }, vector_store_config={\n \"provider\": \"PINECONE\",\n \"api_key\": \"\u003cvalue>\",\n \"index_host\": \"https://example.svc.aped-1234-a56b.pinecone.io\",\n })\n\n # Handle response\n print(res)"}],"requiredOnlyExamples":false,"requestExampleType":"codeSamples","responseExampleType":"generated"},"dependencies":{"parameters":{},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":64,"isRequired":true,"uniqueKey":"name","typeLabel":"string"},"slug":{"type":"string","minLength":2,"maxLength":48,"isRequired":true,"uniqueKey":"slug","typeLabel":"string"},"embeddingConfig":{"oneOf":[{"type":"object","title":"OpenAI Embedding Config","description":"The embedding model config. If not provided, our managed embedding model will be used. Note: You can't change the embedding model config after the namespace is created.","default":{"provider":"MANAGED_OPENAI","model":"text-embedding-3-large"},"required":["provider","model","apiKey"],"properties":{"provider":{"type":"string","const":"OPENAI","isRequired":true,"uniqueKey":"embeddingConfig.oneOf.0.provider","typeLabel":"string"},"model":{"type":"string","enum":["text-embedding-3-small","text-embedding-3-large"],"description":"The OpenAI embedding model enum.","isRequired":true,"uniqueKey":"embeddingConfig.oneOf.0.model","typeLabel":"enum\u003cstring>"},"apiKey":{"type":"string","isRequired":true,"uniqueKey":"embeddingConfig.oneOf.0.apiKey","typeLabel":"string"}},"uniqueKey":"embeddingConfig.oneOf.0","typeLabel":"OpenAI Embedding Config · object"},{"type":"object","title":"Azure Embedding Config","description":"The embedding model config. If not provided, our managed embedding model will be used. Note: You can't change the embedding model config after the namespace is created.","default":{"provider":"MANAGED_OPENAI","model":"text-embedding-3-large"},"required":["provider","model","resourceName","deployment","apiKey"],"properties":{"provider":{"type":"string","const":"AZURE_OPENAI","isRequired":true,"uniqueKey":"embeddingConfig.oneOf.1.provider","typeLabel":"string"},"model":{"type":"string","enum":["text-embedding-3-small","text-embedding-3-large"],"description":"The OpenAI embedding model enum.","isRequired":true,"uniqueKey":"embeddingConfig.oneOf.1.model","typeLabel":"enum\u003cstring>"},"resourceName":{"type":"string","format":"uri","description":"The resource name of the Azure OpenAI API. https://{resourceName}.openai.azure.com/v1","examples":["my-resource-name"],"isRequired":true,"uniqueKey":"embeddingConfig.oneOf.1.resourceName","typeLabel":"string\u003curi>"},"deployment":{"type":"string","description":"The deployment name of the Azure OpenAI API.","isRequired":true,"uniqueKey":"embeddingConfig.oneOf.1.deployment","typeLabel":"string"},"apiKey":{"type":"string","description":"The API key for the Azure OpenAI API.","isRequired":true,"uniqueKey":"embeddingConfig.oneOf.1.apiKey","typeLabel":"string"},"apiVersion":{"default":"preview","type":"string","description":"The API version for the Azure OpenAI API. Defaults to `preview`.","uniqueKey":"embeddingConfig.oneOf.1.apiVersion","typeLabel":"string"}},"uniqueKey":"embeddingConfig.oneOf.1","typeLabel":"Azure Embedding Config · object"},{"type":"object","title":"Voyage Embedding Config","description":"The embedding model config. If not provided, our managed embedding model will be used. Note: You can't change the embedding model config after the namespace is created.","default":{"provider":"MANAGED_OPENAI","model":"text-embedding-3-large"},"required":["provider","model","apiKey"],"properties":{"provider":{"type":"string","const":"VOYAGE","isRequired":true,"uniqueKey":"embeddingConfig.oneOf.2.provider","typeLabel":"string"},"model":{"type":"string","enum":["voyage-3-large","voyage-3","voyage-3-lite","voyage-code-3","voyage-finance-2","voyage-law-2"],"description":"The Voyage embedding model enum.","isRequired":true,"uniqueKey":"embeddingConfig.oneOf.2.model","typeLabel":"enum\u003cstring>"},"apiKey":{"type":"string","isRequired":true,"uniqueKey":"embeddingConfig.oneOf.2.apiKey","typeLabel":"string"}},"uniqueKey":"embeddingConfig.oneOf.2","typeLabel":"Voyage Embedding Config · object"},{"type":"object","title":"Google Embedding Config","description":"The embedding model config. If not provided, our managed embedding model will be used. Note: You can't change the embedding model config after the namespace is created.","default":{"provider":"MANAGED_OPENAI","model":"text-embedding-3-large"},"required":["provider","model","apiKey"],"properties":{"provider":{"type":"string","const":"GOOGLE","isRequired":true,"uniqueKey":"embeddingConfig.oneOf.3.provider","typeLabel":"string"},"model":{"type":"string","enum":["text-embedding-004"],"isRequired":true,"uniqueKey":"embeddingConfig.oneOf.3.model","typeLabel":"enum\u003cstring>"},"apiKey":{"type":"string","isRequired":true,"uniqueKey":"embeddingConfig.oneOf.3.apiKey","typeLabel":"string"}},"uniqueKey":"embeddingConfig.oneOf.3","typeLabel":"Google Embedding Config · object"},{"type":"object","description":"The embedding model config. If not provided, our managed embedding model will be used. Note: You can't change the embedding model config after the namespace is created.","default":{"provider":"MANAGED_OPENAI","model":"text-embedding-3-large"},"required":["provider","model"],"properties":{"provider":{"type":"string","const":"MANAGED_OPENAI","isRequired":true,"uniqueKey":"embeddingConfig.oneOf.4.provider","typeLabel":"string"},"model":{"type":"string","enum":["text-embedding-3-large"],"isRequired":true,"uniqueKey":"embeddingConfig.oneOf.4.model","typeLabel":"enum\u003cstring>"}},"uniqueKey":"embeddingConfig.oneOf.4","typeLabel":"object"}],"uniqueKey":"embeddingConfig","typeLabel":"OpenAI Embedding Config · object | Azure Embedding Config · object | Voyage Embedding Config · object | Google Embedding Config · object | object"},"vectorStoreConfig":{"oneOf":[{"type":"object","description":"The vector store config. If not provided, our MANAGED_PINECONE vector store will be used. Note: You can't change the vector store config after the namespace is created.","default":{"provider":"MANAGED_TURBOPUFFER"},"required":["provider"],"properties":{"provider":{"type":"string","const":"MANAGED_PINECONE","isRequired":true,"uniqueKey":"vectorStoreConfig.oneOf.0.provider","typeLabel":"string"}},"uniqueKey":"vectorStoreConfig.oneOf.0","typeLabel":"object"},{"type":"object","description":"The vector store config. If not provided, our MANAGED_PINECONE vector store will be used. Note: You can't change the vector store config after the namespace is created.","default":{"provider":"MANAGED_TURBOPUFFER"},"required":["provider"],"properties":{"provider":{"type":"string","const":"MANAGED_TURBOPUFFER","isRequired":true,"uniqueKey":"vectorStoreConfig.oneOf.1.provider","typeLabel":"string"}},"uniqueKey":"vectorStoreConfig.oneOf.1","typeLabel":"object"},{"type":"object","title":"Pinecone Config","description":"The vector store config. If not provided, our MANAGED_PINECONE vector store will be used. Note: You can't change the vector store config after the namespace is created.","default":{"provider":"MANAGED_TURBOPUFFER"},"required":["provider","apiKey","indexHost"],"properties":{"provider":{"type":"string","const":"PINECONE","isRequired":true,"uniqueKey":"vectorStoreConfig.oneOf.2.provider","typeLabel":"string"},"apiKey":{"type":"string","description":"The API key for the Pinecone index.","isRequired":true,"uniqueKey":"vectorStoreConfig.oneOf.2.apiKey","typeLabel":"string"},"indexHost":{"type":"string","format":"uri","description":"The host of the Pinecone index.","example":"https://example.svc.aped-1234-a56b.pinecone.io","isRequired":true,"uniqueKey":"vectorStoreConfig.oneOf.2.indexHost","typeLabel":"string\u003curi>"}},"uniqueKey":"vectorStoreConfig.oneOf.2","typeLabel":"Pinecone Config · object"},{"type":"object","title":"Turbopuffer Config","description":"The vector store config. If not provided, our MANAGED_PINECONE vector store will be used. Note: You can't change the vector store config after the namespace is created.","default":{"provider":"MANAGED_TURBOPUFFER"},"required":["provider","apiKey","region"],"properties":{"provider":{"type":"string","const":"TURBOPUFFER","isRequired":true,"uniqueKey":"vectorStoreConfig.oneOf.3.provider","typeLabel":"string"},"apiKey":{"type":"string","description":"The API key for the Turbopuffer index.","isRequired":true,"uniqueKey":"vectorStoreConfig.oneOf.3.apiKey","typeLabel":"string"},"region":{"type":"string","enum":["gcp-us-central1","gcp-us-west1","gcp-us-east4","gcp-northamerica-northeast2","gcp-europe-west3","gcp-asia-southeast1","gcp-gcp-asia-northeast3","aws-eu-central-1","aws-eu-west-1","aws-us-east-1","aws-us-west-2","aws-ap-southeast-2","aws-us-east-2","aws-ap-south-1"],"description":"The region for the Turbopuffer index. Check https://turbopuffer.com/docs/regions","isRequired":true,"uniqueKey":"vectorStoreConfig.oneOf.3.region","typeLabel":"enum\u003cstring>"}},"uniqueKey":"vectorStoreConfig.oneOf.3","typeLabel":"Turbopuffer Config · object"}],"uniqueKey":"vectorStoreConfig","typeLabel":"object · object · Pinecone Config · object · Turbopuffer Config · object"}},"required":["name","slug"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"name":"\u003cstring>","slug":"\u003cstring>","embeddingConfig":{"provider":"MANAGED_OPENAI","model":"text-embedding-3-large"},"vectorStoreConfig":{"provider":"MANAGED_TURBOPUFFER"}}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"feb5038d-3557-4fb8-adf4-98f8f5bb326d":{"description":"The created namespace","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true,"isRequired":true,"uniqueKey":"success","typeLabel":"boolean"},"data":{"type":"object","properties":{"id":{"type":"string","description":"The unique ID of the namespace.","isRequired":true,"uniqueKey":"data.id","typeLabel":"string"},"name":{"type":"string","description":"The name of the namespace.","isRequired":true,"uniqueKey":"data.name","typeLabel":"string"},"slug":{"type":"string","description":"The slug of the namespace.","isRequired":true,"uniqueKey":"data.slug","typeLabel":"string"},"organizationId":{"type":"string","description":"The ID of the organization that owns the namespace.","isRequired":true,"uniqueKey":"data.organizationId","typeLabel":"string"},"createdAt":{"description":"The date and time the namespace was created.","type":"string","isRequired":true,"uniqueKey":"data.createdAt","typeLabel":"string"},"embeddingConfig":{"oneOf":[{"type":"object","title":"OpenAI Embedding Config","description":"The embedding model config. If not provided, our managed embedding model will be used. Note: You can't change the embedding model config after the namespace is created.","required":["provider","model","apiKey"],"properties":{"provider":{"type":"string","const":"OPENAI","isRequired":true,"uniqueKey":"data.embeddingConfig.oneOf.0.provider","typeLabel":"string"},"model":{"type":"string","enum":["text-embedding-3-small","text-embedding-3-large"],"description":"The OpenAI embedding model enum.","isRequired":true,"uniqueKey":"data.embeddingConfig.oneOf.0.model","typeLabel":"enum\u003cstring>"},"apiKey":{"type":"string","isRequired":true,"uniqueKey":"data.embeddingConfig.oneOf.0.apiKey","typeLabel":"string"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"data.embeddingConfig.oneOf.0","typeLabel":"OpenAI Embedding Config · object"},{"type":"object","title":"Azure Embedding Config","description":"The embedding model config. If not provided, our managed embedding model will be used. Note: You can't change the embedding model config after the namespace is created.","required":["provider","model","resourceName","deployment","apiKey"],"properties":{"provider":{"type":"string","const":"AZURE_OPENAI","isRequired":true,"uniqueKey":"data.embeddingConfig.oneOf.1.provider","typeLabel":"string"},"model":{"type":"string","enum":["text-embedding-3-small","text-embedding-3-large"],"description":"The OpenAI embedding model enum.","isRequired":true,"uniqueKey":"data.embeddingConfig.oneOf.1.model","typeLabel":"enum\u003cstring>"},"resourceName":{"type":"string","format":"uri","description":"The resource name of the Azure OpenAI API. https://{resourceName}.openai.azure.com/v1","examples":["my-resource-name"],"isRequired":true,"uniqueKey":"data.embeddingConfig.oneOf.1.resourceName","typeLabel":"string\u003curi>"},"deployment":{"type":"string","description":"The deployment name of the Azure OpenAI API.","isRequired":true,"uniqueKey":"data.embeddingConfig.oneOf.1.deployment","typeLabel":"string"},"apiKey":{"type":"string","description":"The API key for the Azure OpenAI API.","isRequired":true,"uniqueKey":"data.embeddingConfig.oneOf.1.apiKey","typeLabel":"string"},"apiVersion":{"default":"preview","type":"string","description":"The API version for the Azure OpenAI API. Defaults to `preview`.","uniqueKey":"data.embeddingConfig.oneOf.1.apiVersion","typeLabel":"string"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"data.embeddingConfig.oneOf.1","typeLabel":"Azure Embedding Config · object"},{"type":"object","title":"Voyage Embedding Config","description":"The embedding model config. If not provided, our managed embedding model will be used. Note: You can't change the embedding model config after the namespace is created.","required":["provider","model","apiKey"],"properties":{"provider":{"type":"string","const":"VOYAGE","isRequired":true,"uniqueKey":"data.embeddingConfig.oneOf.2.provider","typeLabel":"string"},"model":{"type":"string","enum":["voyage-3-large","voyage-3","voyage-3-lite","voyage-code-3","voyage-finance-2","voyage-law-2"],"description":"The Voyage embedding model enum.","isRequired":true,"uniqueKey":"data.embeddingConfig.oneOf.2.model","typeLabel":"enum\u003cstring>"},"apiKey":{"type":"string","isRequired":true,"uniqueKey":"data.embeddingConfig.oneOf.2.apiKey","typeLabel":"string"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"data.embeddingConfig.oneOf.2","typeLabel":"Voyage Embedding Config · object"},{"type":"object","title":"Google Embedding Config","description":"The embedding model config. If not provided, our managed embedding model will be used. Note: You can't change the embedding model config after the namespace is created.","required":["provider","model","apiKey"],"properties":{"provider":{"type":"string","const":"GOOGLE","isRequired":true,"uniqueKey":"data.embeddingConfig.oneOf.3.provider","typeLabel":"string"},"model":{"type":"string","enum":["text-embedding-004"],"isRequired":true,"uniqueKey":"data.embeddingConfig.oneOf.3.model","typeLabel":"enum\u003cstring>"},"apiKey":{"type":"string","isRequired":true,"uniqueKey":"data.embeddingConfig.oneOf.3.apiKey","typeLabel":"string"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"data.embeddingConfig.oneOf.3","typeLabel":"Google Embedding Config · object"},{"type":"object","description":"The embedding model config. If not provided, our managed embedding model will be used. Note: You can't change the embedding model config after the namespace is created.","required":["provider","model"],"properties":{"provider":{"type":"string","const":"MANAGED_OPENAI","isRequired":true,"uniqueKey":"data.embeddingConfig.oneOf.4.provider","typeLabel":"string"},"model":{"type":"string","enum":["text-embedding-3-large"],"isRequired":true,"uniqueKey":"data.embeddingConfig.oneOf.4.model","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"data.embeddingConfig.oneOf.4","typeLabel":"object"},{"type":"null","isRequired":true,"uniqueKey":"data.embeddingConfig.oneOf.5","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.embeddingConfig","typeLabel":"OpenAI Embedding Config · object | Azure Embedding Config · object | Voyage Embedding Config · object | Google Embedding Config · object | object | null"},"vectorStoreConfig":{"oneOf":[{"type":"object","description":"The vector store config.","required":["provider"],"properties":{"provider":{"type":"string","const":"MANAGED_PINECONE_OLD","isRequired":true,"uniqueKey":"data.vectorStoreConfig.oneOf.0.provider","typeLabel":"string"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"data.vectorStoreConfig.oneOf.0","typeLabel":"object"},{"type":"object","description":"The vector store config.","required":["provider"],"properties":{"provider":{"type":"string","const":"MANAGED_PINECONE","isRequired":true,"uniqueKey":"data.vectorStoreConfig.oneOf.1.provider","typeLabel":"string"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"data.vectorStoreConfig.oneOf.1","typeLabel":"object"},{"type":"object","description":"The vector store config.","required":["provider"],"properties":{"provider":{"type":"string","const":"MANAGED_TURBOPUFFER","isRequired":true,"uniqueKey":"data.vectorStoreConfig.oneOf.2.provider","typeLabel":"string"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"data.vectorStoreConfig.oneOf.2","typeLabel":"object"},{"type":"object","title":"Pinecone Config","description":"The vector store config.","required":["provider","apiKey","indexHost"],"properties":{"provider":{"type":"string","const":"PINECONE","isRequired":true,"uniqueKey":"data.vectorStoreConfig.oneOf.3.provider","typeLabel":"string"},"apiKey":{"type":"string","description":"The API key for the Pinecone index.","isRequired":true,"uniqueKey":"data.vectorStoreConfig.oneOf.3.apiKey","typeLabel":"string"},"indexHost":{"type":"string","format":"uri","description":"The host of the Pinecone index.","example":"https://example.svc.aped-1234-a56b.pinecone.io","isRequired":true,"uniqueKey":"data.vectorStoreConfig.oneOf.3.indexHost","typeLabel":"string\u003curi>"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"data.vectorStoreConfig.oneOf.3","typeLabel":"Pinecone Config · object"},{"type":"object","title":"Turbopuffer Config","description":"The vector store config.","required":["provider","apiKey","region"],"properties":{"provider":{"type":"string","const":"TURBOPUFFER","isRequired":true,"uniqueKey":"data.vectorStoreConfig.oneOf.4.provider","typeLabel":"string"},"apiKey":{"type":"string","description":"The API key for the Turbopuffer index.","isRequired":true,"uniqueKey":"data.vectorStoreConfig.oneOf.4.apiKey","typeLabel":"string"},"region":{"type":"string","enum":["gcp-us-central1","gcp-us-west1","gcp-us-east4","gcp-northamerica-northeast2","gcp-europe-west3","gcp-asia-southeast1","gcp-gcp-asia-northeast3","aws-eu-central-1","aws-eu-west-1","aws-us-east-1","aws-us-west-2","aws-ap-southeast-2","aws-us-east-2","aws-ap-south-1"],"description":"The region for the Turbopuffer index. Check https://turbopuffer.com/docs/regions","isRequired":true,"uniqueKey":"data.vectorStoreConfig.oneOf.4.region","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"data.vectorStoreConfig.oneOf.4","typeLabel":"Turbopuffer Config · object"},{"type":"null","isRequired":true,"uniqueKey":"data.vectorStoreConfig.oneOf.5","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.vectorStoreConfig","typeLabel":"object · object · object · Pinecone Config · object · Turbopuffer Config · object · null"}},"required":["id","name","slug","organizationId","createdAt","embeddingConfig","vectorStoreConfig"],"additionalProperties":false,"title":"Namespace","isRequired":true,"uniqueKey":"data","typeLabel":"Namespace · object"}},"required":["success","data"],"additionalProperties":false,"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"success":true,"data":{"id":"\u003cstring>","name":"\u003cstring>","slug":"\u003cstring>","organizationId":"\u003cstring>","createdAt":"\u003cstring>","embeddingConfig":{"provider":"OPENAI","model":"text-embedding-3-small","apiKey":"\u003cstring>"},"vectorStoreConfig":{"provider":"MANAGED_PINECONE_OLD"}}}}},"exampleType":"generated"}},"exampleType":"generated"},"f9919441-4b75-4964-97d5-f9462adf8885":{"description":"The server cannot or will not process the request due to something that is perceived to be a client error (e.g., malformed request syntax, invalid request message framing, or deceptive request routing).","content":{"application/json":{"schema":{"x-speakeasy-name-override":"BadRequest","type":"object","properties":{"success":{"type":"boolean","example":false,"isRequired":true,"uniqueKey":"success","typeLabel":"boolean"},"error":{"type":"object","properties":{"code":{"type":"string","enum":["bad_request"],"description":"A short code indicating the error code returned.","example":"bad_request","isRequired":true,"uniqueKey":"error.code","typeLabel":"enum\u003cstring>"},"message":{"x-speakeasy-error-message":true,"type":"string","description":"A human readable explanation of what went wrong.","example":"The requested resource was not found.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"doc_url":{"type":"string","description":"A link to our documentation with more details about this error code","example":"https://docs.agentset.ai/api-reference/errors#bad-request","uniqueKey":"error.doc_url","typeLabel":"string"}},"required":["code","message"],"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"required":["success","error"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"success":false,"error":{"code":"bad_request","message":"The requested resource was not found.","doc_url":"https://docs.agentset.ai/api-reference/errors#bad-request"}}}},"exampleType":"generated"}},"exampleType":"generated"},"f22e8fca-8521-4b85-8c6e-e9e6dd4d4077":{"description":"Although the HTTP standard specifies \"unauthorized\", semantically this response means \"unauthenticated\". That is, the client must authenticate itself to get the requested response.","content":{"application/json":{"schema":{"x-speakeasy-name-override":"Unauthorized","type":"object","properties":{"success":{"type":"boolean","example":false,"isRequired":true,"uniqueKey":"success","typeLabel":"boolean"},"error":{"type":"object","properties":{"code":{"type":"string","enum":["unauthorized"],"description":"A short code indicating the error code returned.","example":"unauthorized","isRequired":true,"uniqueKey":"error.code","typeLabel":"enum\u003cstring>"},"message":{"x-speakeasy-error-message":true,"type":"string","description":"A human readable explanation of what went wrong.","example":"The requested resource was not found.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"doc_url":{"type":"string","description":"A link to our documentation with more details about this error code","example":"https://docs.agentset.ai/api-reference/errors#unauthorized","uniqueKey":"error.doc_url","typeLabel":"string"}},"required":["code","message"],"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"required":["success","error"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"success":false,"error":{"code":"unauthorized","message":"The requested resource was not found.","doc_url":"https://docs.agentset.ai/api-reference/errors#unauthorized"}}}},"exampleType":"generated"}},"exampleType":"generated"},"5b8da39b-67be-446c-bc8b-566a3515c23f":{"description":"The client does not have access rights to the content; that is, it is unauthorized, so the server is refusing to give the requested resource. Unlike 401 Unauthorized, the client's identity is known to the server.","content":{"application/json":{"schema":{"x-speakeasy-name-override":"Forbidden","type":"object","properties":{"success":{"type":"boolean","example":false,"isRequired":true,"uniqueKey":"success","typeLabel":"boolean"},"error":{"type":"object","properties":{"code":{"type":"string","enum":["forbidden"],"description":"A short code indicating the error code returned.","example":"forbidden","isRequired":true,"uniqueKey":"error.code","typeLabel":"enum\u003cstring>"},"message":{"x-speakeasy-error-message":true,"type":"string","description":"A human readable explanation of what went wrong.","example":"The requested resource was not found.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"doc_url":{"type":"string","description":"A link to our documentation with more details about this error code","example":"https://docs.agentset.ai/api-reference/errors#forbidden","uniqueKey":"error.doc_url","typeLabel":"string"}},"required":["code","message"],"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"required":["success","error"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"success":false,"error":{"code":"forbidden","message":"The requested resource was not found.","doc_url":"https://docs.agentset.ai/api-reference/errors#forbidden"}}}},"exampleType":"generated"}},"exampleType":"generated"},"6a4deb44-a208-4516-9aa4-9dd06022430a":{"description":"The server cannot find the requested resource.","content":{"application/json":{"schema":{"x-speakeasy-name-override":"NotFound","type":"object","properties":{"success":{"type":"boolean","example":false,"isRequired":true,"uniqueKey":"success","typeLabel":"boolean"},"error":{"type":"object","properties":{"code":{"type":"string","enum":["not_found"],"description":"A short code indicating the error code returned.","example":"not_found","isRequired":true,"uniqueKey":"error.code","typeLabel":"enum\u003cstring>"},"message":{"x-speakeasy-error-message":true,"type":"string","description":"A human readable explanation of what went wrong.","example":"The requested resource was not found.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"doc_url":{"type":"string","description":"A link to our documentation with more details about this error code","example":"https://docs.agentset.ai/api-reference/errors#not-found","uniqueKey":"error.doc_url","typeLabel":"string"}},"required":["code","message"],"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"required":["success","error"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"success":false,"error":{"code":"not_found","message":"The requested resource was not found.","doc_url":"https://docs.agentset.ai/api-reference/errors#not-found"}}}},"exampleType":"generated"}},"exampleType":"generated"},"f73a380b-79a0-44b7-a6fc-305f4f9d93a0":{"description":"This response is sent when a request conflicts with the current state of the server.","content":{"application/json":{"schema":{"x-speakeasy-name-override":"Conflict","type":"object","properties":{"success":{"type":"boolean","example":false,"isRequired":true,"uniqueKey":"success","typeLabel":"boolean"},"error":{"type":"object","properties":{"code":{"type":"string","enum":["conflict"],"description":"A short code indicating the error code returned.","example":"conflict","isRequired":true,"uniqueKey":"error.code","typeLabel":"enum\u003cstring>"},"message":{"x-speakeasy-error-message":true,"type":"string","description":"A human readable explanation of what went wrong.","example":"The requested resource was not found.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"doc_url":{"type":"string","description":"A link to our documentation with more details about this error code","example":"https://docs.agentset.ai/api-reference/errors#conflict","uniqueKey":"error.doc_url","typeLabel":"string"}},"required":["code","message"],"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"required":["success","error"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"success":false,"error":{"code":"conflict","message":"The requested resource was not found.","doc_url":"https://docs.agentset.ai/api-reference/errors#conflict"}}}},"exampleType":"generated"}},"exampleType":"generated"},"20507e2f-52f3-4839-9fea-00fe557cb7fa":{"description":"This response is sent when the requested content has been permanently deleted from server, with no forwarding address.","content":{"application/json":{"schema":{"x-speakeasy-name-override":"InviteExpired","type":"object","properties":{"success":{"type":"boolean","example":false,"isRequired":true,"uniqueKey":"success","typeLabel":"boolean"},"error":{"type":"object","properties":{"code":{"type":"string","enum":["invite_expired"],"description":"A short code indicating the error code returned.","example":"invite_expired","isRequired":true,"uniqueKey":"error.code","typeLabel":"enum\u003cstring>"},"message":{"x-speakeasy-error-message":true,"type":"string","description":"A human readable explanation of what went wrong.","example":"The requested resource was not found.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"doc_url":{"type":"string","description":"A link to our documentation with more details about this error code","example":"https://docs.agentset.ai/api-reference/errors#invite-expired","uniqueKey":"error.doc_url","typeLabel":"string"}},"required":["code","message"],"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"required":["success","error"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"success":false,"error":{"code":"invite_expired","message":"The requested resource was not found.","doc_url":"https://docs.agentset.ai/api-reference/errors#invite-expired"}}}},"exampleType":"generated"}},"exampleType":"generated"},"b7eaeecb-3bb2-4cbc-a301-9327324c9e11":{"description":"The request was well-formed but was unable to be followed due to semantic errors.","content":{"application/json":{"schema":{"x-speakeasy-name-override":"UnprocessableEntity","type":"object","properties":{"success":{"type":"boolean","example":false,"isRequired":true,"uniqueKey":"success","typeLabel":"boolean"},"error":{"type":"object","properties":{"code":{"type":"string","enum":["unprocessable_entity"],"description":"A short code indicating the error code returned.","example":"unprocessable_entity","isRequired":true,"uniqueKey":"error.code","typeLabel":"enum\u003cstring>"},"message":{"x-speakeasy-error-message":true,"type":"string","description":"A human readable explanation of what went wrong.","example":"The requested resource was not found.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"doc_url":{"type":"string","description":"A link to our documentation with more details about this error code","example":"https://docs.agentset.ai/api-reference/errors#unprocessable-entity","uniqueKey":"error.doc_url","typeLabel":"string"}},"required":["code","message"],"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"required":["success","error"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"success":false,"error":{"code":"unprocessable_entity","message":"The requested resource was not found.","doc_url":"https://docs.agentset.ai/api-reference/errors#unprocessable-entity"}}}},"exampleType":"generated"}},"exampleType":"generated"},"bde87c0d-7097-42f7-bd49-ab58bedde610":{"description":"The user has sent too many requests in a given amount of time (\"rate limiting\")","content":{"application/json":{"schema":{"x-speakeasy-name-override":"RateLimitExceeded","type":"object","properties":{"success":{"type":"boolean","example":false,"isRequired":true,"uniqueKey":"success","typeLabel":"boolean"},"error":{"type":"object","properties":{"code":{"type":"string","enum":["rate_limit_exceeded"],"description":"A short code indicating the error code returned.","example":"rate_limit_exceeded","isRequired":true,"uniqueKey":"error.code","typeLabel":"enum\u003cstring>"},"message":{"x-speakeasy-error-message":true,"type":"string","description":"A human readable explanation of what went wrong.","example":"The requested resource was not found.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"doc_url":{"type":"string","description":"A link to our documentation with more details about this error code","example":"https://docs.agentset.ai/api-reference/errors#rate-limit_exceeded","uniqueKey":"error.doc_url","typeLabel":"string"}},"required":["code","message"],"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"required":["success","error"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"success":false,"error":{"code":"rate_limit_exceeded","message":"The requested resource was not found.","doc_url":"https://docs.agentset.ai/api-reference/errors#rate-limit_exceeded"}}}},"exampleType":"generated"}},"exampleType":"generated"},"4cb1071e-18dc-41d2-99be-e03b9bcb022f":{"description":"The server has encountered a situation it does not know how to handle.","content":{"application/json":{"schema":{"x-speakeasy-name-override":"InternalServerError","type":"object","properties":{"success":{"type":"boolean","example":false,"isRequired":true,"uniqueKey":"success","typeLabel":"boolean"},"error":{"type":"object","properties":{"code":{"type":"string","enum":["internal_server_error"],"description":"A short code indicating the error code returned.","example":"internal_server_error","isRequired":true,"uniqueKey":"error.code","typeLabel":"enum\u003cstring>"},"message":{"x-speakeasy-error-message":true,"type":"string","description":"A human readable explanation of what went wrong.","example":"The requested resource was not found.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"doc_url":{"type":"string","description":"A link to our documentation with more details about this error code","example":"https://docs.agentset.ai/api-reference/errors#internal-server_error","uniqueKey":"error.doc_url","typeLabel":"string"}},"required":["code","message"],"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"required":["success","error"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"success":false,"error":{"code":"internal_server_error","message":"The requested resource was not found.","doc_url":"https://docs.agentset.ai/api-reference/errors#internal-server_error"}}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"302838aa-65a6-49c3-8063-ef64e6b8d4f6":{"token":{"type":"http","description":"Default authentication mechanism","scheme":"bearer","x-speakeasy-example":"AGENTSET_API_KEY","scopes":[]}}},"servers":{"01d22303-6b66-4548-adb0-bfc5f26d3c3e":{"url":"https://api.agentset.ai","description":"Production API"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","description":"Default authentication mechanism","scheme":"bearer","x-speakeasy-example":"AGENTSET_API_KEY","scopes":[]},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"Default authentication mechanism","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"token","name":"Authorization"}],"title":"token"}]},"originalFileLocation":"https://spec.speakeasy.com/agentset-ktc/api/agentset-api-with-code-samples"},"subdomain":"agentset","siteName":"Agentset","title":"Create a namespace. - Agentset","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-01-27T01:14:03.667Z","originalFileLocation":"api-reference/endpoint/namespaces/create.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Create a namespace for the authenticated organization.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Agentset\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/agentset/e8KXVqz8EgOTbrTs/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/agentset/e8KXVqz8EgOTbrTs/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/agentset/e8KXVqz8EgOTbrTs/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/agentset/e8KXVqz8EgOTbrTs/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/agentset/e8KXVqz8EgOTbrTs/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/agentset/e8KXVqz8EgOTbrTs/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/agentset/e8KXVqz8EgOTbrTs/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/agentset/e8KXVqz8EgOTbrTs/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/agentset/e8KXVqz8EgOTbrTs/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Create a namespace. - Agentset\">\u003cmeta data-mint-head property=\"og:description\" content=\"Create a namespace for the authenticated organization.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Agentset\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.agentset.ai/api-reference/endpoint/namespaces/create\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://agentset.mintlify.site/_mintlify/api/og/v2?division=Namespaces\u0026amp;title=Create+a+namespace.\u0026amp;description=Create+a+namespace+for+the+authenticated+organization.\u0026amp;theme=66fd108204f2c489bf2e2ff3\u0026amp;signature=9862661b6cbe86b0d6a5cba1b7dcc0ed08d7f01e76fad89da5cabad7b0ce6a7d\">\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 namespace. - Agentset\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Create a namespace for the authenticated organization.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://agentset.mintlify.site/_mintlify/api/og/v2?division=Namespaces\u0026amp;title=Create+a+namespace.\u0026amp;description=Create+a+namespace+for+the+authenticated+organization.\u0026amp;theme=66fd108204f2c489bf2e2ff3\u0026amp;signature=9862661b6cbe86b0d6a5cba1b7dcc0ed08d7f01e76fad89da5cabad7b0ce6a7d\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/agentset/e8KXVqz8EgOTbrTs/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Agentset\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#101828\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.agentset.ai/api-reference/endpoint/namespaces/create\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/endpoint/namespaces/create.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.agentset.ai/#organization\",\"name\":\"Agentset\",\"url\":\"https://docs.agentset.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/agentset/CEtQtLLZxyndVLIA/images/logo/light.svg?fit=max\u0026auto=format\u0026n=CEtQtLLZxyndVLIA\u0026q=85\u0026s=bad79c1567dca86262478917c11822ad\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.agentset.ai#website\",\"name\":\"Agentset\",\"url\":\"https://docs.agentset.ai\",\"publisher\":{\"@id\":\"https://docs.agentset.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.agentset.ai/api-reference/endpoint/namespaces/create#webpage\",\"url\":\"https://docs.agentset.ai/api-reference/endpoint/namespaces/create\",\"name\":\"Create a namespace.\",\"description\":\"Create a namespace for the authenticated organization.\",\"dateModified\":\"2026-01-27T01:14:03.667Z\",\"isPartOf\":{\"@id\":\"https://docs.agentset.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.agentset.ai/api-reference/endpoint/namespaces/create#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.agentset.ai/api-reference/endpoint/namespaces/create#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Namespaces\",\"item\":\"https://docs.agentset.ai/api-reference/endpoint/namespaces/list\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Create a namespace.\",\"item\":\"https://docs.agentset.ai/api-reference/endpoint/namespaces/create\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.agentset.ai/api-reference/endpoint/namespaces/create#apireference\",\"headline\":\"Create a namespace.\",\"name\":\"Create a namespace.\",\"description\":\"Create a namespace for the authenticated organization.\",\"url\":\"https://docs.agentset.ai/api-reference/endpoint/namespaces/create\",\"mainEntityOfPage\":{\"@id\":\"https://docs.agentset.ai/api-reference/endpoint/namespaces/create#webpage\"},\"dateModified\":\"2026-01-27T01:14:03.667Z\",\"publisher\":{\"@id\":\"https://docs.agentset.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.agentset.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Agentset\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Agentset\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/endpoint/namespaces/create.md","siteName":"Agentset","nav":{"global":{"anchors":[]},"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":"/get-started/introduction"}]},{"tab":"Self-hosting","pages":[{"title":"Self-hosting","href":"/open-source/prerequisites"}]},{"tab":"API Reference","groups":[{"group":"Overview","pages":[{"title":"Introduction","href":"/api-reference/introduction"},{"title":"API Keys","href":"/api-reference/tokens"},{"title":"Rate limits","href":"/api-reference/rate-limits"},{"title":"Pagination","href":"/api-reference/pagination"},{"title":"Errors","href":"/api-reference/errors"}]},{"group":"Namespaces","pages":[{"openapi":"get /v1/namespace","title":"Retrieve a list of namespaces","href":"/api-reference/endpoint/namespaces/list"},{"openapi":"get /v1/namespace/{namespaceId}","title":"Retrieve a namespace","description":"Retrieve the info for a namespace.","href":"/api-reference/endpoint/namespaces/get"},{"openapi":"post /v1/namespace","title":"Create a namespace.","href":"/api-reference/endpoint/namespaces/create"},{"openapi":"patch /v1/namespace/{namespaceId}","title":"Update a namespace.","description":"Update a namespace for the authenticated organization. If there is no change, return it as it is.","href":"/api-reference/endpoint/namespaces/update"},{"openapi":"delete /v1/namespace/{namespaceId}","title":"Delete a namespace.","href":"/api-reference/endpoint/namespaces/delete"}]},{"group":"Ingest Jobs","pages":[{"openapi":"get /v1/namespace/{namespaceId}/ingest-jobs","title":"Retrieve a list of ingest jobs","href":"/api-reference/endpoint/ingest-jobs/list"},{"openapi":"get /v1/namespace/{namespaceId}/ingest-jobs/{jobId}","title":"Retrieve an ingest job","href":"/api-reference/endpoint/ingest-jobs/get"},{"openapi":"post /v1/namespace/{namespaceId}/ingest-jobs","title":"Create an ingest job","href":"/api-reference/endpoint/ingest-jobs/create"},{"openapi":"post /v1/namespace/{namespaceId}/ingest-jobs/{jobId}/re-ingest","title":"Re-ingest a job","href":"/api-reference/endpoint/ingest-jobs/re-ingest"},{"openapi":"delete /v1/namespace/{namespaceId}/ingest-jobs/{jobId}","title":"Delete an ingest job","href":"/api-reference/endpoint/ingest-jobs/delete"}]},{"group":"Documents","pages":[{"openapi":"get /v1/namespace/{namespaceId}/documents","title":"Retrieve a list of documents","href":"/api-reference/endpoint/documents/list"},{"openapi":"get /v1/namespace/{namespaceId}/documents/{documentId}","title":"Retrieve a document","href":"/api-reference/endpoint/documents/get"},{"openapi":"post /v1/namespace/{namespaceId}/documents/{documentId}/chunks-download-url","title":"Get chunks download URL","href":"/api-reference/endpoint/documents/chunks-download-url"},{"openapi":"post /v1/namespace/{namespaceId}/documents/{documentId}/file-download-url","title":"Get file download URL","href":"/api-reference/endpoint/documents/file-download-url"},{"openapi":"delete /v1/namespace/{namespaceId}/documents/{documentId}","title":"Delete a document","href":"/api-reference/endpoint/documents/delete"}]},{"group":"Hosting","pages":[{"openapi":"post /v1/namespace/{namespaceId}/hosting","title":"Enable hosting","href":"/api-reference/endpoint/hosting/enable"},{"openapi":"get /v1/namespace/{namespaceId}/hosting","title":"Retrieve hosting configuration","href":"/api-reference/endpoint/hosting/get"},{"openapi":"patch /v1/namespace/{namespaceId}/hosting","title":"Update hosting configuration","href":"/api-reference/endpoint/hosting/update"},{"openapi":"delete /v1/namespace/{namespaceId}/hosting","title":"Delete hosting configuration","href":"/api-reference/endpoint/hosting/delete"}]},{"group":"Search","pages":[{"openapi":"post /v1/namespace/{namespaceId}/search","title":"Search a namespace","href":"/api-reference/endpoint/search"}]},{"group":"Uploads","pages":[{"openapi":"post /v1/namespace/{namespaceId}/uploads","title":"Create presigned URL for file upload","href":"/api-reference/endpoint/uploads/single"},{"openapi":"post /v1/namespace/{namespaceId}/uploads/batch","title":"Create presigned URLs for batch file upload","href":"/api-reference/endpoint/uploads/batch"}]}]},{"tab":"Changelog","pages":[{"title":"Changelog","href":"/changelog"}]}]},"basePath":"","title":"Create a namespace. - Agentset","deploymentId":"dpl_9bQLTw9nc2h9csDGYcKwWenPcQWn","buildId":"dpl_9bQLTw9nc2h9csDGYcKwWenPcQWn","dynamics":["c2aa737661","b0f84f53ff","a9bb46feb3","2b790eda92"],"chunks":["OpenApiReferenceProvider-D4yvBxwa.js","snippetPresets-CkhhQaIQ.js","utils-XnMGX2lF.js","style-to-object-BY3JEAdk.js","utils-CRXL1dwr.js","v4-DIgz8zy6.js","addUniqueKeysToSchema-DvwRKZnA.js","conditional-requirements-CFM0id0Q.js","cloneDeep-DYtgUc7n.js","_Uint8Array-D8z7zjjJ.js","isObject-FP1Yky1u.js","Page-DQd9HN9r.js","api-description-markdown-BpDftTKT.js","DynamicMarkdown-CZT_WAnN.js","CodeSnippet-C1QlaNYl.js","use-playground-group-access-DyQ_1IIe.js","SectionHeading-K1iuDm9j.js","ApiExamples-RYQSJVS4.js","usePlaygroundInputsStore-k_R_BTDL.js","shallow-BwVhzryZ.js","isEqual-Cx5TQjMc.js","CodeSnippets-BDe2dS5N.js","MethodPill-Dx3JIwHJ.js","getPastedJson-buPTdYs_.js","Check2Icon-DmMrzBYX.js","axios-CsQoIw0U.js","Markdown-erv2ryQz.js","AssistantPageLink-DJ01X1Sn.js","dist-D9mz3EIS.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}