View as Markdown

List Trash

GET/v2/trash

Lists the deleted people, companies or lists (kind) of the workspace, newest first, for the 90 days they can be restored. search is a case-insensitive name prefix, since a lower bound on the deletion date; per_page up to 100. Free; a poll (0 rate-limit units, per-second window only).

Query parameters

  • kindenumrequired

    Which Trash tab: deleted people, companies or lists.

    Allowed values: person company list

  • searchstringoptionalmax length: 200

    Name prefix, case-insensitive.

  • sincestringoptional

    Only rows deleted at or after this ISO date (a single lower bound).

  • pageintegeroptionalmin: 1default: 1

    The page, 1-based. Past the end: [] with the totals.

  • per_pageintegeroptionalmin: 1max: 100default: 25

    Rows per page.

Responses

  • 200 One page of Trash rows (data), newest first, and the page window (metadata.pagination).
  • 400 Invalid query (VALIDATION_ERROR; payload.code says which kind of mistake).
  • 401 Missing, unknown or inactive credentials (UNAUTHORIZED).
  • 429 Over the poll rate limit (RATE_LIMIT); wait Retry-After seconds.
  • 500 Unexpected server error.

For error handling see Errors. Response objects are described in Person object and Company object.