Skip to main content
The spaces functions are currently in BETA. The API may change without notice. A one-time warning is emitted on first use.

List Spaces

import { listSpaces } from "@arizeai/ax-client";

const spaces = await listSpaces({
  organizationId: "your_organization_id",
  limit: 10,
});

Create a Space

import { createSpace } from "@arizeai/ax-client";

const space = await createSpace({
  organizationId: "your_organization_id",
  name: "your_space_name",
  description: "optional description",
});

Get a Space

import { getSpace } from "@arizeai/ax-client";

// By space ID
const space = await getSpace({ space: "your_space_id" });

// By space name
const space = await getSpace({ space: "my-space" });

Update a Space

import { updateSpace } from "@arizeai/ax-client";

const space = await updateSpace({
  space: "my-space",  // space name or ID
  name: "updated_space_name",
  description: "updated description",  // optional
});

Delete a Space

This operation is irreversible. Deleting a space permanently removes all resources that belong to it (models, monitors, dashboards, datasets, custom metrics, etc.).
import { deleteSpace } from "@arizeai/ax-client";

await deleteSpace({ space: "my-space" });  // space name or ID