Skip to navigation

List contacts

View as Markdown

Returns a cursor-paginated list of contacts. Soft-deleted contacts are excluded. Ordered by id descending — newest contacts appear first on the first page.

Pagination flow: call without a cursor to start. The response includes next_cursor (opaque base64 string) and has_more (boolean). Pass next_cursor as the cursor query parameter on the next request to fetch the following page. When has_more is false, stop iterating.

Search: pass q to filter by name. Matches case-insensitive substring against the contact’s workspace-local label AND the canonical legal-entity name on the linked Party. Useful for type-ahead and autocomplete UIs.

Authentication

AuthorizationBearer

JWT issued via POST /api/v1/auth/sign_in. Used by mobile and SPA clients. Revoked tokens are rejected.

OR
AuthorizationBearer

Lucanto API key. Two prefixes:

  • lct_pat_<random><checksum> — personal access token (owner: User)
  • lct_live_<random><checksum> — workspace token, live data

Issue keys at /settings/api_keys (personal) or /:workspace_id/settings/api_keys (workspace). Plaintext token is shown once and never again.

Path parameters

workspace_idlongRequired>=1
Workspace ID. The numeric ID shown in your URLs.

Query parameters

cursorstringOptional

Pagination cursor from the previous response’s next_cursor.

limitintegerOptional1-100Defaults to 25
Number of items per page. Default 25, maximum 100.
qstringOptional

Case- and accent-insensitive substring match on contact name (workspace-local label) and on the linked legal entity’s registered name. When that finds nothing, a second, more forgiving pass runs which also ignores punctuation and spacing, so R+S service still finds R + S service. SQL wildcard characters in the query value are treated as literals, not patterns.

Response

OK
next_cursorstring or null

Cursor to fetch the next page. Pass it as the cursor query parameter on the next request. null on the last page.

has_moreboolean
True when more pages exist after this one.
datalist of objects

Errors

401
Unauthorized Error
402
Payment Required Error
403
Forbidden Error
429
Too Many Requests Error