API to manage your DeveloperHub resources programmatically. Using these APIs, you are able to manage pages, integrate with CI/CD, and retrieve resources among other operations.
Generate an API Key from DeveloperHub.io platform and provide it in the header such as --header "X-Api-Key: <api-key>" for cURL for all the requests requiring this authentication.
| Key | In | |
|---|---|---|
| X | Header |
Page
Operations for creating, reading, updating, publishing, and deleting pages.
Get page by slug
Get a page by slugs and read its content in Markdoc or a derived format. Rate limit: 60 in 1 minute.
Either version_id or version_slug must be provided. Either documentation_id or documentation_slug must be provided.
OK
Access denied
Too many requests
Read page
Read a page including its content in Markdoc or a derived format. Rate limit: 600 in 1 minute.
OK
Access denied
Too many requests
Update a page
Updates a page title, slug or draft contents. Rate limit: 10800 in 1 hour.
OK
Access denied
Unsupported content-type
Too many requests
Delete a page
Deletes a page and removes it from the navigation index. Rate limit: 10800 in 1 hour.
OK
Access denied
Too many requests
Create a page
Creates a page with draft contents. To insert in a pre-existing category, set the categoryTitle. Rate limit: 10800 in 1 hour.
OK
Access denied
Unsupported content-type
Too many requests
Publish a page
Publishes a page from its draft contents. Rate limit: 10800 in 1 hour.
OK
Access denied
Unsupported content-type
Too many requests
Documentation
Operations for listing documentation sections.
Lists documentation sections in a version
Lists all documentation sections in a version. Rate limit: 60 in 60 minutes.
OK
Access denied
Too many requests
Version
Operations for listing, updating, and reporting on project versions.
Lists all project versions
Lists all project versions that are accessible through the API Key. This will only list non-deleted versions. Rate limit: 60 in 60 minutes.
OK
Access denied
Too many requests
Update a version
Updates a version. Enables you to publish or unpublish a version. Rate limit: 3600 in 1 hour.
OK
Access denied
Unsupported content-type
Too many requests
Get version content report
Reports every page in the version with its creation and last-update details. Rate limit: 60 in 60 minutes.
OK
Access denied
Too many requests
Reference
Operations for adding, reading, and publishing API reference specifications.
Adds or updates a reference specification
Adds or updates a reference specification in that version. If the reference title matches one that already existed, then it is updated. Rate limit: 300 in 60 minutes.
Created
General Exception
Access denied
Too many requests
Read a reference specification
Downloads the raw specification of an API reference in JSON or YAML. Rate limit: 600 in 1 minute.
OK
Access denied
Draft not found
Too many requests
Publish a reference draft
Publishes the draft specification of an API reference. Fails if the reference has no draft. Rate limit: 300 in 60 minutes.
Published
General Exception
Access denied
Too many requests
Project
Project-level operations such as export, search, audit log, and users.
Exports project
Exports the project into a ZIP file of Markdoc or Markdown files. Only available for enterprise plans. Rate limit: 10 in 60 minutes.
OK
Upgrade Plan
Access denied
Too many requests
Search content
Searches through project or version. Use this to build custom search into your own website/services which directs users to documentation. Minimum plan required is Grow plan. Rate limit: 10,800 in 60 minutes.
OK
Client Error
Access denied
Too many requests
Get all resources
Returns all pages, documentation, references and versions of your project. Rate limit: 30 in 60 minutes.
OK
Access denied
Too many requests
Get audit log
Query the audit log. Only available in enterprise plans. Rate limit: 600 in 60 minutes.
OK
Client Error
Access denied
Too many requests
Get users
Get all users and their roles. Rate limit: 3600 in 60 minutes.
OK
Client Error
Access denied
Too many requests
Changelog
Operations for creating and listing changelog posts.
Create a changelog post
Creates a changelog post from Markdoc content, optionally publishing it immediately. The slug is generated from the title if not provided. Permission: changelog.edit. Rate limit: 10800 in 1 hour.
OK
Client Error
Access denied
Unsupported content-type
Too many requests
List changelog posts
Lists a changelog's posts, newest first. Returns the 10 most recent posts by default; use cursor to page. Permission: changelog.read. Rate limit: 600 in 60 seconds.
OK
Access denied
Too many requests
Reader Access
Get access details of all invited readers
Get access details of all invited readers. Rate limit: 3600 in 60 minutes.
OK
Client Error
Access denied
Too many requests
Grant access to reader
Grants access to reader. Only applicable when project is protected by "Email Invite". Rate limit: 100 in 60 minutes.
OK
Access denied
Unsupported content-type
Too many requests
Revoke access to reader
Revokes access to reader. Rate limit: 100 in 60 minutes.
OK
Access denied
Unsupported content-type
Too many requests