Namespaces
Create a namespace.
Create a namespace for the authenticated organization.
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
Default authentication mechanism
Body
application/json
Response
201
application/json
The created namespace
The response is of type object
.
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"
}
}
}
Assistant
Responses are generated using AI and may contain mistakes.