Skip to main content
POST
/
namespaces
JavaScript
import Smithery from '@smithery/api';

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

const namespace = await client.namespaces.create();

console.log(namespace.createdAt);
{
  "name": "myorg",
  "createdAt": "2024-01-01T00:00:00.000Z"
}

Authorizations

Authorization
string
header
required

Smithery API key as Bearer token

Response

Namespace created successfully

name
string
required
Example:

"myorg"

createdAt
string
required
Example:

"2024-01-01T00:00:00.000Z"