Skip to main content
GET
/
v1beta
/
namespaces
JavaScript
import Charcoal from 'charcoal';

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

const namespaces = await client.namespaces.list();

console.log(namespaces.results);
{
  "results": [
    {
      "id": "<string>",
      "company_id": "<string>",
      "created_at": "<string>",
      "updated_at": "<string>",
      "attributes_schema": {}
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Response

200 - application/json

Successful response

results
object[]
required