Namespace

Create a namespace

Create a new namespace in an existing account.

post/namespace

Request body

namestring required

The name of the namespace. Represents a department, team, or logical unit within your organization.

account_idinteger required

The ID of the account that owns this namespace.

Example request

{
  "name": "Crypto Kong Billing",
  "account_id": 1234
}

Response

The operation was successful.

idinteger required

A system-wide unique ID for the namespace.

namestring required

The name of the namespace.

status'active' | 'inactive' required

The status of the namespace.

slugstring required

An account-wide unique slug for the namespace.

account_idinteger required

The ID of the account that owns this namespace.

Example response

{
  "id": 234,
  "name": "Crypto Kong Billing",
  "status": "active",
  "slug": "crypto-kong-billing",
  "account_id": 123,
  "metadata": {
    "key": "value"
  }
}

Changes

No recorded changes to this endpoint across all 1 revision of this API.