Create a project

Create a guide project.

Body
required
application/json
  • allowedDomains
    Type: array string[]
    required
  • allowedUsers
    Type: array string[]
    required
  • isPrivate
    Type: boolean
    required
  • name
    Type: string
    required
  • slug
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 createGuide = await client.scalarDocs.createGuide({
  name: "",
  isPrivate: false,
  allowedUsers: [],
  allowedDomains: [],
});
console.log(createGuide);
{
  "uid": "string",
  "slug": "string"
}