Create a project

​

Create a guide project.

OAuth scopes
  • platform:write

Body

required
application/json

Responses

  • application/json
  • application/json
  • application/json
  • application/json
  • application/json
  • application/json
  • application/json
Request Example for post/v1/guides
import Scalar from '@scalar/sdk';

const client = new Scalar({
  bearerAuth: process.env['BEARER_AUTH'], // defaults to the BEARER_AUTH env var
});

const scalarDoc = await client.scalarDocs.createGuide({
  name: 'Acme Documentation',
  isPrivate: false,
  allowedUsers: [],
  allowedDomains: [],
});

console.log(scalarDoc);
{
  "uid": "UakgbKJ5m9gl0JDMbcJqL",
  "slug": "acme-docs"
}