List Target Lists
List the calling organisation's target lists, newest first by default.
With an API client's token, returns only lists shared with your organisation, or created by an API client. With a signed-in user's token, returns the lists that user sees in Handshaik, each with their access. A list hidden from the caller is left out, and is not in total_count. company_id narrows the list to the lists holding one company and keeps the same pagination. Keyset cursor pagination on created_at. Requires the target_lists:read scope.
Errors: 400 a malformed cursor (not checked when company_id names no company, which returns an empty page) ยท 422 limit is out of range, or sort_order is not asc/desc.
curl -X GET "https://api.handshaik.com/v1/target-lists" \
-H "Authorization: Bearer $HANDSHAIK_PUBLIC_API_KEY"Authorization
AuthorizationstringheaderrequiredOAuth2 client_credentials (M2M). Request a token with the
audienceset tohttps://api.handshaik.com.Handshaik's own first-party apps, such as the Chrome extension, instead sign a Handshaik user in with the authorization code flow and PKCE, with the same
audience. Such a token acts as that user, within their organisation. Partner integrations use client_credentials.
Parameters
cursorstring | nullqueryOpaque pagination cursor
limitintegerqueryItems per page (1โ100)
Default:50sort_orderenum<string>queryOrder by created_at: asc or desc
One of:ascdescDefault:desccompany_idstring | nullqueryOnly target lists holding this company โ its
id(UUID) or its Companies-Housecompany_number. An unknown company returns an empty page, without readingcursor
Response
Successful Response
itemsTargetListPublic[]requiredThis page of results, in the requested sort order
next_cursorstring | nullrequiredOpaque cursor for the following page โ pass it back as
cursor. Null when this is the last page. Treat it as opaque: its encoding is not contract and changes without noticeprev_cursorstring | nullrequiredOpaque cursor for the preceding page. Null on the first page, and always null on endpoints documented as forward-only
has_nextbooleanrequiredWhether a further page follows. Page on this and `next_cursor`, never on `len(items)` โ a page may hold fewer than
limititems, even none at all, while this is still true, so a client that stops at the first short page silently truncates its resultshas_prevbooleanrequiredWhether a preceding page exists
limitintegerrequiredThe page size that was applied โ an upper bound on
items, not the number returnedtotal_countinteger | nullHow many records match, or null where the endpoint does not count. Read `count_capped` before using this: when counting is capped this is clamped to the cap and the true total is higher. Some endpoints return it on the first page only, rather than paying for a count on every page
total_pagesinteger | nullPages at the current
limit, derived fromtotal_countโ so it inheritstotal_count's capping and is a lower bound whenevercount_cappedis truecount_cappedboolean | nullWhether
total_countwas limited by a counting cap. True means it was clamped to the cap and the real total is greater than or equal to it โ never present it as an exact figure. False means a cap was in force but the real total fell under it; null means no cap applied. Under either,total_countis exact *when present* โ but it can still be null, because an endpoint that does not count, and a bounded count that timed out, both leave it null without flagging a cap
{
"items": [
{
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "string",
"company_count": 0,
"access": "owner",
"created_at": "2026-01-15T09:30:00Z",
"updated_at": "2026-01-15T09:30:00Z"
}
],
"next_cursor": "string",
"prev_cursor": "string",
"has_next": true,
"has_prev": true,
"limit": 0,
"total_count": 0,
"total_pages": 0,
"count_capped": true
}