Guides
Pagination and filters
Walk lists with a cursor and narrow results with the filters parameter in bracket syntax.
The API's lists (accounts, operations, beneficiaries, subscriptions and webhook execution logs) use cursor pagination and accept the filters parameter. The UBO and funding instruction lists return a plain array, without pagination.
Pagination parameters
| Parameter | Default | Description |
|---|---|---|
limit | 10 | Items per page, from 1 to 100 |
cursor | Cursor returned by a previous page | |
direction | NEXT | NEXT or PREVIOUS, from the cursor |
sortOrder | DESCENDING | DESCENDING (newest first) or ASCENDING, by createdAt |
Response
{
"data": [ { "id": "06b57ef0-f2ed-4d1b-a833-a2d0ed2ebeb3" } ],
"meta": {
"previousCursor": null,
"nextCursor": "YWNjb3VudDoyMDI2LTExLTA1VDIwOjEwOjMxWnwwNmI1N2VmMC1mMmVkLTRkMWItYTgzMy1hMmQwZWQyZWJlYjM",
"total": 1
}
}| Field | Description |
|---|---|
previousCursor | Cursor of the previous page; null on the first |
nextCursor | Cursor of the next page; null on the last |
total | Number of items in this page, not in the whole list |
Treat the cursor as opaque. In Mimicr it is base64 of <resource>:<createdAt>|<id>; the |<id> suffix is Mimicr's choice to keep the cursor unique. A cursor from another resource answers 400 INVALID_DATA with INVALID_CURSOR, and a limit outside 1 to 100 answers 400 INVALID_DATA.
Walk every page
curl --url 'https://trace.mimicr.dev/v1/accounts?limit=10' \ --header 'Authorization: Bearer <token>' curl --url 'https://trace.mimicr.dev/v1/accounts?limit=10&cursor=<nextCursor>' \ --header 'Authorization: Bearer <token>'
cursor = None
while True:
params = {"limit": 100}
if cursor:
params["cursor"] = cursor
page = client.get("/v1/operations", params=params).json()
for item in page["data"]:
process(item)
cursor = page["meta"]["nextCursor"]
if cursor is None:
breakFilters
The format is field[operator]=value. Fields are dotted paths over the resource JSON, such as owner.type or currentState.status.
| Operator | Meaning | Example |
|---|---|---|
eq | Equals | id[eq]=399ca839-abd5-4a7d-981b-f187e7777ec8 |
ne | Not equal | currentState.status[ne]=FAILED |
gt, gte | Greater, greater or equal | createdAt[gte]=2026-11-01T00:00:00Z |
lt, lte | Less, less or equal | sourceAmount.value[lt]=1000 |
in, nin | In or not in a list | see below |
like | Contains, case-insensitive | owner.legalName[like]=acme |
text | Text search | externalId[text]=order |
last | Last array element equals | states.status[last]=ACTIVE |
last_ne | Last array element differs | states.status[last_ne]=REJECTED |
In in and nin lists, values are separated by a pipe:
intent.type[in]=DEPOSIT|WITHDRAW
Use null for the null value: externalId[eq]=null.
Combine conditions
- Groups separated by
;are AND-ed. and(...)andor(...)group conditions separated by commas.
states.status[last]=ACTIVE;owner.type[eq]=COMPANY and(createdAt[gte]=2026-11-01T00:00:00Z,createdAt[lt]=2026-12-01T00:00:00Z) or(intent.type[eq]=SWAP,intent.type[eq]=TRANSFER)
curl --get --url https://trace.mimicr.dev/v1/accounts \ --data-urlencode 'filters=states.status[last]=ACTIVE' \ --data-urlencode 'limit=10' \ --header 'Authorization: Bearer <token>'
A malformed filter answers:
{
"code": "INVALID_FILTER_FORMAT",
"message": "Invalid filter format: 'owner.type=COMPANY'",
"details": { "filters": "owner.type=COMPANY" }
}List-specific parameters
- List operations also accepts
intentType(DEPOSIT,WITHDRAW,SWAP,TRANSFER) andstatus; an invalid value answers422 INVALID_DATA. - List funding instructions accepts
assetandrail. - Get a report requires
periodStartandperiodEndand acceptsfiltersonaccount.id,asset,directionandintent.type.
Related
- Money and dates: the amount and date formats used in filters.
- List accounts, List beneficiaries, List subscriptions, List execution logs.