API v1
v1
View as Markdown

Cancel the subscription

DELETE /api/v1/billing/subscription

Stop the subscription renewing at the end of the period already paid for.

It never takes effect at once. Full access stays to the last day that was paid for, the billing object then carries ends_at, and nothing the account holds is removed after that day: the free ceilings simply refuse additions again.

Until that day the cancellation can be taken back, at no charge, with the endpoint below.

Returns

Nothing. 422 when there is no subscription to cancel, or when it is already ending.

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/billing/subscription \
-X DELETE \
-H "Authorization: Bearer $MONICA_TOKEN"
const response = await fetch('https://my.monicahq.com/api/v1/billing/subscription', {
method: 'DELETE',
headers: { Authorization: `Bearer ${token}` },
})
$response = Http::withToken($token)->delete('https://my.monicahq.com/api/v1/billing/subscription');
Response 204

No content.

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