Monica
Log in
API v1
v1
View as Markdown

Delete an item of the trash for good

DELETE /api/v1/vaults/{vault}/trash/{kind}/{item}

Delete one item of the trash for good, with everything deleted at the same time as it. This cannot be undone.

Path parameters

Sent as JSON. Anything not listed here is ignored.

vault string Required

The vault the trash belongs to, named either by the readable name it reports as slug or by its id.

kind string Required

The kind of the item, as the list gives it: contact, entity, group, relationship, life-event, reminder, group-membership, group-note or group-file.

item uuid Required

The id of the item, as the list gives it. One not in the trash of this vault, or belonging to another account, answers 404.

Returns

Nothing at all.

Rate limit

Sixty requests per minute, per user, shared by every key and device. Every answer carries the budget left in X-RateLimit-Remaining.

DELETE
curl https://people.hansyeoh.com/api/v1/vaults/dunder-mifflin/trash/contact/7c2e9a41-5b8d-4f63-a1e0-3d94b6f2c815 \
-X DELETE \
-H "Authorization: Bearer $MONICA_TOKEN"
const response = await fetch('https://people.hansyeoh.com/api/v1/vaults/dunder-mifflin/trash/contact/7c2e9a41-5b8d-4f63-a1e0-3d94b6f2c815', {
method: 'DELETE',
headers: { Authorization: `Bearer ${token}` },
})
$response = Http::withToken($token)->delete('https://people.hansyeoh.com/api/v1/vaults/dunder-mifflin/trash/contact/7c2e9a41-5b8d-4f63-a1e0-3d94b6f2c815');
Response 204

No content.

Keys act as you, with exactly the access you have. Make one per integration so you can revoke it alone.