Monica
Log in
API v1
v1
View as Markdown

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.

Called with the token of the Monica mobile app, it signs that phone out: its refresh token stops working too, and your other phones stay signed in.

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://monica-789392842564.asia-southeast1.run.app/api/v1/logout \
-X DELETE \
-H "Authorization: Bearer $MONICA_TOKEN"
const response = await fetch('https://monica-789392842564.asia-southeast1.run.app/api/v1/logout', {
method: 'DELETE',
headers: { Authorization: `Bearer ${token}` },
})
$response = Http::withToken($token)->delete('https://monica-789392842564.asia-southeast1.run.app/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.