Monica
Log in
API v1
v1
View as Markdown

Disconnect an app

DELETE /api/v1/oauth-connections/{oauthConnection}

Disconnect one app, for example a phone you lost or an assistant you no longer use.

The app stops reaching your account the moment this answers, and cannot renew its access. Your other connections and your API keys are untouched.

Path parameters

Sent as JSON. Anything not listed here is ignored.

oauthConnection integer Required

The id of the connection.

Returns

Nothing at all. A connection of somebody else, or one already ended, 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://my.monicahq.com/api/v1/oauth-connections/12 \
-X DELETE \
-H "Authorization: Bearer $MONICA_TOKEN"
const response = await fetch('https://my.monicahq.com/api/v1/oauth-connections/12', {
method: 'DELETE',
headers: { Authorization: `Bearer ${token}` },
})
$response = Http::withToken($token)->delete('https://my.monicahq.com/api/v1/oauth-connections/12');
Response 204

No content.

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