Create a namespace

1 min readEdit this page
POST
/v1/namespaces

Creates a namespace owned by the caller. The name must be unique among the caller's live namespaces (409 on collision).

Requires the namespace:write scope.

Authorization

x-api-key<token>

Anthropic-style API key header.

In: header

Request Body

application/json

Request body. See the endpoint description for shape.

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/v1/namespaces" \  -H "Content-Type: application/json" \  -d '{}'
{}
{  "error": {    "code": "string",    "message": "string"  }}
{  "error": {    "code": "string",    "message": "string"  }}
{  "error": {    "code": "string",    "message": "string"  }}

How is this guide?