POST
/
v1
/
namespace
curl --request POST \
  --url https://api.agentset.ai/v1/namespace \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "<string>",
  "slug": "<string>",
  "embeddingConfig": {
    "provider": "OPENAI",
    "model": "text-embedding-3-small",
    "apiKey": "<string>"
  },
  "vectorStoreConfig": {
    "provider": "PINECONE",
    "apiKey": "<string>",
    "indexHost": "https://example.svc.aped-1234-a56b.pinecone.io"
  }
}'
{
  "success": true,
  "data": {
    "id": "<string>",
    "name": "<string>",
    "slug": "<string>",
    "organizationId": "<string>",
    "createdAt": "<string>",
    "embeddingConfig": {
      "provider": "OPENAI",
      "model": "text-embedding-3-small",
      "apiKey": "<string>"
    },
    "vectorStoreConfig": {
      "provider": "PINECONE",
      "apiKey": "<string>",
      "indexHost": "https://example.svc.aped-1234-a56b.pinecone.io"
    }
  }
}

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
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.

vectorStoreConfig
object

The vector store config. If not provided, our managed vector store will be used. Note: You can't change the vector store config after the namespace is created.

Response

201
application/json
The created namespace
success
boolean
required
data
object
required