Overview

Create a theme

POST/v1/themes
Features

Create a team theme.

Input4
Authorizationheaderrequired
Your API key, sent as Authorization: Bearer YOUR_SCALAR_ACCESS_TOKEN.Sent from your browser straight to the API — never to Docsbook, never stored.
namestring · bodyrequired
descriptionstring · body
slugstring · bodyrequired
documentstring · bodyrequired
Output1
uidstring
Responses
200Default Response
400Bad request
401No auth
403Forbidden
404Not found
422Invalid payload
500Uncaught error
Example input
curl -X POST 'https://access.scalar.com/v1/themes' \
  -H 'Authorization: Bearer YOUR_SCALAR_ACCESS_TOKEN' \
  -H 'Content-Type: application/json' \
  -d '{"name":"<name>","slug":"<slug>","document":"<document>"}'
Example output
{
  "uid": "<uid>"
}

Updated

Was this page helpful?