Create a unified DocsProject backed by the chosen VCS provider (forgejo, github, or bitbucket)
post/docs-projects/create
Request
- Base URLhttps://api.scalar.com/core
- URLhttps://api.scalar.com/core/docs-projects/create
- AuthHTTP bearer
Request body
Example request
{
"slug": "acme-api",
"api": {
"slug": "acme-api"
}
}Response
Default Response
Example response
{
"uid": "UakgbKJ5m9gl0JDMbcJqL",
"createdAt": 1735689600,
"updatedAt": 1735689600,
"name": "Acme Documentation",
"activeDeployment": {
"uid": "UakgbKJ5m9gl0JDMbcJqL",
"domain": "docs.example.com",
"publishedAt": 1735689600
},
"lastPublished": 1735689600,
"lastPublishedUid": "PakgbKJ5m9gl0JDMbcJqL",
"loginPortalUid": "LakgbKJ5m9gl0JDMbcJqL",
"userInfoHookUrl": "https://example.com/hooks/user-info",
"userInfoHookSecretUid": "UakgbKJ5m9gl0JDMbcJqL",
"activeThemeId": "TakgbKJ5m9gl0JDMbcJqL",
"typesenseId": 42,
"agentEnabled": true,
"analyticsEnabled": true,
"chatInsightsEnabled": true,
"accessGroups": [
"UakgbKJ5m9gl0JDMbcJqL"
],
"slug": "acme-api",
"publishStatus": "published",
"publishMessage": "Documentation published successfully.",
"repository": {
"repositoryUid": "UakgbKJ5m9gl0JDMbcJqL"
},
"remoteActivity": {
"at": 1735689600
}
}Changes
- info
added the required property
to the response with the status
- info
- info
added the new optional request property
- info