Skip to main content
POST
/
namespaces
JavaScript
import Nuntly from '@nuntly/sdk';

const client = new Nuntly({
  apiKey: process.env['NUNTLY_API_KEY'], // This is the default and can be omitted
});

const namespace = await client.namespaces.create({ name: 'x' });

console.log(namespace.id);
{
  "data": {
    "id": "<string>",
    "createdAt": "<string>",
    "name": "<string>",
    "externalId": "<string>",
    "status": "active",
    "updatedAt": "<string>"
  }
}

Authorizations

Authorization
string
header
required

Bearer HTTP authentication. Allowed headers Authorization: Bearer <API_KEY>

Body

application/json

Namespace name and optional external ID for tenant mapping.

name
string
required

The display name of the namespace.

Minimum string length: 1
externalId
string

An optional external identifier for the namespace.

Response

Successful response.

data
object
required