List the trash of a vault
List what was deleted from a vault and still waits in its trash, the most recently deleted first.
Without a kind, an item deleted with a person or a group still in the trash is left out, since it comes back with them. With a kind, every item of that kind is listed.
A kind that is not available to the account, such as groups while they are not, lists nothing.
This endpoint answers GET and QUERY alike, and both return the same answer. GET sends the parameters in the address, QUERY in the request body. How QUERY works.
Parameters
Path parameters go in the address. GET sends the others in the address too, QUERY sends them as JSON in the request body. Anything not listed here is ignored.
The vault the trash belongs to, named either by the readable name it reports as slug or by its id.
Only the items of one kind: contact, entity, group, relationship, life-event, reminder, group-membership, group-note or group-file. Anything else answers 422 on kind.
Which page to answer with.
How many items one page holds, between 1 and 100. A number outside the range is brought back into it rather than refused.
Returns
A page of trash items, and how many there are in all. A vault of another account answers 404.
The items on this page. An empty list rather than an error when there are none.
One item.
Always trash_item. It names the kind of record, so a caller holding several kinds can tell them apart without looking at where they came from.
The id of this record, as a string even when it reads as a number. It is what every endpoint naming this record takes.
Everything the record holds.
What the item is: contact, entity, group, relationship, life-event, reminder, group-membership, group-note or group-file.
What the item is called.
The word naming its kind, in the language of the key. A record says the name of its own type, such as Animal.
Where it belonged, in a few words, or null.
When it was deleted, as a count of seconds since 1970.
When it is deleted for good unless restored before, as a count of seconds since 1970.
The person or the group it was deleted with, while that one is still in the trash. Null otherwise.
contact or group.
The id of the person or the group, which addresses it in the trash.
Their name.
Whether restoring it now would work.
Why it cannot be restored yet, or null when it can.
Where you are in the collection.
The page this is, counting from 1.
How many one page holds, which is the size that was asked for once it has been brought into the allowed range.
How many items there are in all, not how many are on this page.
Status codes
Every code the API answers with, and what the body holds when it does.
| Code | When | Body |
|---|---|---|
| 422 Unprocessable Content | With QUERY, a parameter was sent both in the address and in the body. | A message, and an errors object naming each parameter sent twice. |
Rate limit
Sixty requests per minute, per user, shared by every key and device. Every answer carries the budget left in X-RateLimit-Remaining.
Keys act as you, with exactly the access you have. Make one per integration so you can revoke it alone.