Skip to main content
TroopyDocs
Open Troopy
Troopy

API reference / CRM

Read a list's rows

A window of a list's rows, filtered (every filter must pass), searched and sorted: rows with a value in the sort column first, empty ones after. Send the rev you have: if nothing changed since, same is true and no rows come back.

post/api/v1/lists/{id}/rows/query

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.
Scopescrm:read

Other ways to call it

CLItroopy lists rows
MCP tooltroopy_query_list_rows
Rate limit600 calls in 60 seconds, for each key

Path parameters

id*string

A 24-character id

Body

application/json
wherearray<object>

At most 10 items

3 properties
column*string

A column's id

At most 40 characters

op*enum<string>

isis_notcontainsgtltemptynot_empty

valuestring | number | boolean

What to compare with; none for empty and not_empty

sortobject
2 properties
column*string

At most 40 characters

dir*enum<string>

ascdesc

qstring

Text to find in names, emails, companies and titles

At least 1 characters · At most 100 characters

offsetinteger

Default 0 · At least 0 · At most 100000

limitinteger

Default 100 · At least 1 · At most 500

revinteger

Response

200 · application/json
data*object
5 properties
same*boolean
rev*integer
total*integer | null

Rows that pass the filters: with the first window (offset 0) and with a read that sent a rev; null with the others

rows*array<object>
5 properties
id*string

A 24-character id

recordId*string

Its person or company

values*object

Values by column id; long text is in texts

texts*object

Long text by column id: the first 200 characters in a window of rows, whole for one row

cells*object

Work columns' cells by column id: queued, working, filled, nothing found or failed, and why

runs*array<object>

Work columns running on the list now (none when same: keep what you had): read again every few seconds while there are any

13 properties
id*string

A 24-character id

list*string

A 24-character id

column*string
status*enum<string>

running: poll statusUrl every few seconds

runningdonestoppedfailed

total*integer

Rows it works on

done*integer

Rows it filled

none*integer

Rows it found nothing for

failed*integer

Rows that failed

note*string | null

While it waits: what for, and until when

error*string | null
by*object

Who wrote it

3 properties
type*enum<string>

personagentapi

id*string
name*string
createdAt*string

ISO 8601 date and time

finishedAt*string | null

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.
404 not_foundCheck the path and any id in it. Every operation is listed in /api/v1/openapi.json.
429 rate_limitedWait the number of seconds in Retry-After, then retry.