Endpoint
The API checks two possible file locations for each request:
<contentDir>/<docPath>.mdx and <contentDir>/<docPath>/index.mdx. Named files take precedence over index files.Path parameters
The slug identifying the product. Must match a key in the server’s product configuration.Examples:
terraform-plugin-framework, terraform-enterprise, vaultThe documentation version to retrieve. Use
latest to resolve to the most recent stable version automatically.Examples: latest, v1.9.x, v20220610-01For products without versioned docs, use latest.The path to the document, relative to the product’s content directory. Segments are joined with
/.Example: plugin/framework, docs/internals/stateExample requests
Response
Returns a JSON object with ameta envelope and a result object containing the document content and metadata.
200
Response fields
Response envelope with HTTP status information.
The document data.
Response headers
| Header | Description |
|---|---|
content-type | Always application/json |
served-from | Indicates whether content was served from current build or production |
Error responses
| Status | Body | Cause |
|---|---|---|
404 | Not found | The productSlug is not in the product configuration, the version does not exist for the product, or no content file was found at any of the expected locations. |