Create API Document version
POST
/v1/apis/{namespace}/{slug}/versionFeatures
Create a new API document version.
Input6
Your API key, sent as
Authorization: Bearer YOUR_SCALAR_ACCESS_TOKEN.Sent from your browser straight to the API — never to Docsbook, never stored.Output10
Responses
200Default Response
400Bad request
401No auth
403Forbidden
404Not found
422Invalid payload
500Uncaught error
Example input
curl -X POST 'https://access.scalar.com/v1/apis/{namespace}/{slug}/version' \
-H 'Authorization: Bearer YOUR_SCALAR_ACCESS_TOKEN' \
-H 'Content-Type: application/json' \
-d '{"version":"<version>","document":"<document>"}'Example output
{
"uid": "<uid>",
"createdAt": 0,
"version": "<version>",
"upgraded": true,
"embedStatus": "<embedStatus>",
"tags": [],
"tools": [],
"yamlSha": "<yamlSha>",
"jsonSha": "<jsonSha>",
"versionSha": "<versionSha>"
}