hostdocs API
API Reference

Records

List records

GET
/api/v1/collections/{id}/records
AuthorizationBearer <token>

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

In: header

Path Parameters

idstring
Formatuuid

Query Parameters

search?string
limit?integer
cursor?string

Header Parameters

x-hostdocs-account-id?string

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

Formatuuid
x-hostdocs-site-id?string

Target site id. Defaults to the workspace’s default site.

Formatuuid

Response Body

curl -X GET "https://api.hostdocs.io/api/v1/collections/497f6eca-6276-4993-bfeb-53cbbbba6f08/records?search=string&limit=0&cursor=string" \  -H "x-hostdocs-account-id: 497f6eca-6276-4993-bfeb-53cbbbba6f08" \  -H "x-hostdocs-site-id: 497f6eca-6276-4993-bfeb-53cbbbba6f08"
{
  "success": true,
  "data": {}
}

Create a record

Requires the write scope.

POST
/api/v1/collections/{id}/records
AuthorizationBearer <token>

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

In: header

Path Parameters

idstring
Formatuuid

Header Parameters

x-hostdocs-account-id?string

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

Formatuuid
x-hostdocs-site-id?string

Target site id. Defaults to the workspace’s default site.

Formatuuid
dataobject

Empty Object

Response Body

curl -X POST "https://api.hostdocs.io/api/v1/collections/497f6eca-6276-4993-bfeb-53cbbbba6f08/records" \  -H "x-hostdocs-account-id: 497f6eca-6276-4993-bfeb-53cbbbba6f08" \  -H "x-hostdocs-site-id: 497f6eca-6276-4993-bfeb-53cbbbba6f08" \  -H "Content-Type: application/json" \  -d '{    "data": {      "property1": null,      "property2": null    }  }'
{
  "success": true,
  "data": {}
}