hostdocs API
API Reference

Sites

List sites

GET
/api/v1/sites
AuthorizationBearer <token>

A hostdocs developer API key (an opaque token issued by Clerk; create one in the dashboard under API keys).

In: header

Header Parameters

x-hostdocs-account-id?string

Target workspace id. Defaults to the key’s workspace.

Formatuuid

Response Body

curl -X GET "https://api.hostdocs.io/api/v1/sites" \  -H "x-hostdocs-account-id: 497f6eca-6276-4993-bfeb-53cbbbba6f08"
{
  "success": true,
  "data": [
    {}
  ]
}