Skip to main content
GET
/
v1beta
/
namespaces
/
{namespace}
/
documents
JavaScript
import Charcoal from 'charcoal';

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

const documents = await client.namespaces.documents.list('namespace');

console.log(documents.results);
{
  "results": [
    {
      "id": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

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

Path Parameters

namespace
string
required

Namespace identifier. Alphanumeric characters, hyphens, underscores, and dots. Max 128 characters.

Maximum string length: 128

Response

200 - application/json

Successful response

results
object[]
required