Skip to main content
TroopyDocs
Open Troopy
Troopy

API reference / Docs

List the properties of docs

The properties that the docs of one collection can have, in order, with the choices of each select. A doc keeps its values by the id of each property.

get/api/v1/doc-fields

Authorization

HeaderAuthorization: Bearer <API key>
Or the headerX-API-Key: <API key>
API keyMake one in Troopy under Settings > API keys. It acts as you, in its workspace.

Other ways to call it

CLItroopy docs fields
MCP tooltroopy_list_doc_fields
Rate limit120 calls in 60 seconds, for each key

Query parameters

collectionenum<string>

A set of properties: docs (the library), interviews, or research (the reports). A record has none

docsinterviewsresearch

Default "docs"

Response

200 · application/json
data*array<object>
6 properties
id*string

A 24-character id

collection*enum<string>

A set of properties: docs (the library), interviews, or research (the reports). A record has none

docsinterviewsresearch

name*string
type*enum<string>

textnumberdateselectmulti_selecturlcheckbox

options*array<object>

The choices of a select or multi_select

3 properties
id*string

A 24-character id

name*string
color*enum<string>

stoneskymintsandrosepeachcyanorange

position*integer

Its place among the properties of its collection, from 0

Errors

400 invalid_inputFix the field named in detail. Each operation's schema is in /api/v1/openapi.json.
401 unauthorizedSend an API key as `Authorization: Bearer tr_live_...`. Create one in Troopy under Settings.
403 forbiddenThe key lacks a scope this operation needs, or its owner lacks the role. detail says which; create a key with the scope, or ask an organization owner or admin.
429 rate_limitedWait the number of seconds in Retry-After, then retry.