Skip to main content
POST
/
namespaces
Create a namespace
curl --request POST \
  --url https://api.vidnavigator.com/v1/namespaces \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "name": "Client Calls"
}
'
{
  "status": "success",
  "data": {
    "id": "<string>",
    "_id": "<string>",
    "user_id": "<string>",
    "name": "<string>",
    "created_at": "2023-11-07T05:31:56Z",
    "updated_at": "2023-11-07T05:31:56Z"
  }
}
Create a new namespace to organize your uploaded files.

Overview

Each user can have up to 5 namespaces. The name default is reserved and cannot be used when creating a new namespace.

Example Request

curl -X POST "https://api.vidnavigator.com/v1/namespaces" \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Client Calls"
  }'

Success Response (201 Created)

{
  "status": "success",
  "data": {
    "id": "64a1b2c3d4e5f6789abc0003",
    "name": "Client Calls",
    "created_at": "2025-03-20T09:15:00Z",
    "updated_at": "2025-03-20T09:15:00Z"
  }
}

Authorizations

X-API-Key
string
header
required

API key authentication. Include your VidNavigator API key in the X-API-Key header.

Body

application/json
name
string
required

Name for the new namespace (cannot be 'default')

Example:

"Client Calls"

Response

Namespace created successfully

status
enum<string>
Available options:
success
data
object