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.
All operations require an API key, read Authentication.
All operations (except Search content) must be called from a back-end. Cross-origin requests are not allowed.
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 |
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. Permission: page.edit
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. Permission: page.publish
OK
Access denied
Unsupported content-type
Too many requests
Get page by slug
Get a page by slugs and read its content in Darkdown, markdown, HTML, or text 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. Permission: page.read
OK
Access denied
Too many requests
Read page
Read a page including its content in Darkdown, markdown, HTML, or text format. Rate limit: 600 in 1 minute. Permission: page.read
OK
Access denied
Too many requests
Update a page
Updates a page title, slug or draft contents. Rate limit: 10800 in 1 hour. Permission: page.edit
OK
Access denied
Unsupported content-type
Too many requests
Version
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. Permission: project.read
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. Permission: version.publish
OK
Access denied
Unsupported content-type
Too many requests
Read reference
Reads a reference definition. Permission: reference.read. Rate limit: 600 in 60 seconds.
OK
Access denied
Too many requests
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. Changes are published and do not pass through a draft state. Rate limit: 300 in 60 minutes. Permission: reference.publish
Created
General Exception
Access denied
Too many requests
Publish API reference
Publishes the draft of an API reference. Rate limit: 3600 in 1 hour. Permission: reference.publish
Published
General Exception
Access denied
Too many requests
Project
Get users
Get all users and their roles. Rate limit: 3600 in 60 minutes. Permission: project.read
OK
Client Error
Access denied
Too many requests
Exports project
Exports the project into a ZIP file. Only available for enterprise plans. Rate limit: 10 in 60 minutes. Permission: project.export
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. Permission: search
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. Permission: project.read
OK
Access denied
Too many requests
Get audit log
Query the audit log. Only available in enterprise plans. Rate limit: 600 in 60 minutes. Permission: audit.read
OK
Client Error
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. Permission: access.read
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. Permission: access.write
OK
Access denied
Unsupported content-type
Too many requests
Revoke access to reader
Revokes access to reader. Rate limit: 100 in 60 minutes. Permission: access.write
OK
Access denied
Unsupported content-type
Too many requests