hostdocs API
API Reference

Accounts

List workspaces

Personal account plus every organization the key’s owner belongs to.

GET
/api/v1/accounts
AuthorizationBearer <token>

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

In: header

Response Body

curl -X GET "https://api.hostdocs.io/api/v1/accounts"
{
  "success": true,
  "data": [
    {}
  ]
}

Get the current workspace

GET
/api/v1/accounts/current
AuthorizationBearer <token>

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

In: header

Response Body

curl -X GET "https://api.hostdocs.io/api/v1/accounts/current"
{
  "success": true,
  "data": {}
}