Skip to main content
GET
/
v1
/
namespace
TypeScript
import { Agentset } from "agentset";

const agentset = new Agentset({ apiKey: 'agentset_xxx' });

const namespaces = await agentset.namespaces.list();
console.log(namespaces);
{
  "success": true,
  "data": [
    {
      "id": "<string>",
      "name": "<string>",
      "slug": "<string>",
      "organizationId": "<string>",
      "createdAt": "<string>",
      "embeddingConfig": {
        "provider": "<string>",
        "model": "text-embedding-3-small",
        "apiKey": "<string>"
      },
      "vectorStoreConfig": {
        "provider": "<string>"
      }
    }
  ]
}

Authorizations

Authorization
string
header
required

Default authentication mechanism

Response

The retrieved namespaces

success
boolean
required
data
Namespace · object[]
required
I