Create a project
Create a guide project.
OAuth scopes
- platform:write
Body
required
application/json
- Type: array of stringallowed
Domains required - Type: array of stringallowed
Users required - Type: booleanis
Private required - Type: stringnamerequired
- Type:slugmin length:1max length:60
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"
}