Log out
DELETE
/api/v1/logout
Revokes the token you are calling with. Anything still using it stops working, immediately.
Your other tokens are untouched, which is the point of naming them: an integration you no longer trust can be cut off without signing everything else out.
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://my.monicahq.com/api/v1/logout \
-X DELETE \
-H "Authorization: Bearer $MONICA_TOKEN"
const response = await fetch('https://my.monicahq.com/api/v1/logout', {
method: 'DELETE',
headers: { Authorization: `Bearer ${token}` },
})
$response = Http::withToken($token)->delete('https://my.monicahq.com/api/v1/logout');
Response
204
No content.
Keys act as you, with exactly the access you have. Make one per integration so you can revoke it alone.