---
title: "Create namespace under a parent key"
method: POST
path: "/skynet/namespaced-apikeys"
tags: ["Tracking_Namespace"]
---

# Create namespace under a parent key

`POST /skynet/namespaced-apikeys`

## Query parameters

- `namespace` string, required
- `key` string, 32 character alphanumeric string, required

## Request body

- object

## Response `200`

- object
  - `status` integer — Returns the API response code.
  - `result` object — An object to return the details about the namespace key created.
    - `apikey` string — Returns the unique key created for the specified namespace.
    - `namespace` string — Returns the name of the namespace for which the key is created.
    - `expires_at` integer — Returns the time, expressed as UNIX epoch timestamp in seconds, when the namespace key will expire.
    - `sub_id` string — An internal subscription ID.
    - `created_at` integer — Returns the time, expressed as UNIX epoch timestamp in seconds, when the namespace key was created.
  - `message` string — Returns the error message in case of any error. If there is no error, then this field is absent in the response.
  - `error` string — Returns the error type in case of any error. If there is no error, then this field is absent in the response.

---

[API](https://skmtc.net/nextbillion-ai/apis/one-spec-service.md) · [All operations](https://skmtc.net/nextbillion-ai/apis/one-spec-service/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/nextbillion-ai/one-spec-service/revisions/b647f1808dda/schema)
