Public Docs

View as Markdown

Resolve Domain

GET/api/v1/public/docs/resolve-domain

Resolve a custom domain to a brand slug. Used by the CF Worker middleware.

Errors

CodeWhenWhat to do
422Validation Error—
Request
curl "https://app.opvs.ai/api/v1/public/docs/resolve-domain" \
  -H "Authorization: Bearer $OPVS_TOKEN"

List Public Projects

GET/api/v1/public/docs/projects

List all public documentation projects across all brands.

Request
curl "https://app.opvs.ai/api/v1/public/docs/projects" \
  -H "Authorization: Bearer $OPVS_TOKEN"

Get Public Project

GET/api/v1/public/docs/{brand_slug}

Get public docs project for a brand, including theme settings.

Errors

CodeWhenWhat to do
422Validation Error—
Request
curl "https://app.opvs.ai/api/v1/public/docs/{brand_slug}" \
  -H "Authorization: Bearer $OPVS_TOKEN"

Get Public Doc Tree

GET/api/v1/public/docs/{brand_slug}/tree

Get sidebar navigation tree for a brand's public docs.

Errors

CodeWhenWhat to do
422Validation Error—
Request
curl "https://app.opvs.ai/api/v1/public/docs/{brand_slug}/tree" \
  -H "Authorization: Bearer $OPVS_TOKEN"

Search Public Docs

GET/api/v1/public/docs/{brand_slug}/search

Full-text search within a brand's public docs.

Errors

CodeWhenWhat to do
422Validation Error—
Request
curl "https://app.opvs.ai/api/v1/public/docs/{brand_slug}/search" \
  -H "Authorization: Bearer $OPVS_TOKEN"

Get Public Doc Page

GET/api/v1/public/docs/{brand_slug}/{page_path}

Get a single public doc page with rendered HTML and TOC.

Errors

CodeWhenWhat to do
422Validation Error—
Request
curl "https://app.opvs.ai/api/v1/public/docs/{brand_slug}/{page_path}" \
  -H "Authorization: Bearer $OPVS_TOKEN"
Did this answer your question?