Monica
Log in
API v1
v1
View as Markdown

Delete a record

DELETE /api/v1/vaults/{vault}/entities/{entity}

Delete a record. It goes to the trash of the vault, where it can be restored for 30 days.

Path parameters

Sent as JSON. Anything not listed here is ignored.

vault string Required

The vault the record lives in, named either by the readable name it reports as slug or by its id. Both answer.

entity uuid Required

The id of the record, as the list of records gives it.

Returns

Nothing at all. A record in another vault, or belonging to somebody else, answers 404.

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://monica-789392842564.asia-southeast1.run.app/api/v1/vaults/schrute-farms/entities/9b1e6c42-7a35-4f08-b2d9-5c8e41a7f031 \
-X DELETE \
-H "Authorization: Bearer $MONICA_TOKEN"
const response = await fetch('https://monica-789392842564.asia-southeast1.run.app/api/v1/vaults/schrute-farms/entities/9b1e6c42-7a35-4f08-b2d9-5c8e41a7f031', {
method: 'DELETE',
headers: { Authorization: `Bearer ${token}` },
})
$response = Http::withToken($token)->delete('https://monica-789392842564.asia-southeast1.run.app/api/v1/vaults/schrute-farms/entities/9b1e6c42-7a35-4f08-b2d9-5c8e41a7f031');
Response 204

No content.

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