Billing
Limits are the effective ones, with the server's own ceilings applied. null means no limit; 0
means none allowed. read_only is the reason the library is read-only (a PlanLimit with
reason: over_limit), or null. API keys need read on account.
bearerAuthorizationBearer <token>Supabase access token (JWT) or personal API key (ga_…). A key gets 403 on a resource it has no access to, and on anything that changes data without write access.
The plan
application/json- response
plan*string"beta""free""plus""pro"name*stringsource*stringdefault: no plan granted, the server's default applies
"default""subscription"status*string"trialing""active""past_due""canceled""expired"provider*stringWho bills the plan; empty on the default plan. paddle plans are managed through POST /v1/billing/portal
"""manual""paddle"cancel_at_period_end*booleanA cancellation is scheduled for the end of the period
current_period_end?|When the plan ends; null means until changed
date-timelimits*null means no limit.
features*usage*read_only*|nullcurl -X GET 'https://example.com/v1/billing'{ "plan": "beta", "name": "string", "source": "default", "status": "trialing", "provider": "", "cancel_at_period_end": true, "current_period_end": "2019-08-24T14:15:22Z", "limits": { "items": 0, "storage_bytes": 0, "ai_daily_calls": 0, "chat_turns_per_hour": 0, "lists": 0, "smart_lists": 0, "members_per_list": 0, "api_requests_per_minute": 0, "devices": 0, "reminders": 0, "public_links": 0 }, "features": { "semantic_search": true, "sharing": true, "chat": true, "platform_extraction": true, "archive": true, "video_download": true, "api": "none", "webhooks": true, "rules": true, "priority_queue": true }, "usage": { "items": 0, "storage_bytes": 0, "lists": 0, "smart_lists": 0, "devices": 0, "reminders": 0, "ai_calls_today": 0, "public_links": 0 }, "read_only": { "message": "string", "type": "plan_limit", "code": "plan_limit", "reason": "limit", "plan": "beta", "limit": "items", "allowed": 0, "current": 0, "feature": "semantic_search", "upgrade_to": "plus" }}Returns a Paddle checkout URL for the plan and interval; send the user there. The plan changes when
Paddle's webhook arrives, not when this returns, so poll GET /v1/billing after they come back.
Needs a signed-in session (not an API key). Works when the library is over its limits. A user who
already has a Paddle subscription gets billing.already_subscribed: changing plan or card, or
cancelling, goes through POST /v1/billing/portal. 503 billing.unavailable when payments are off.
bearerAuthorizationBearer <token>Supabase access token (JWT) or personal API key (ga_…). A key gets 403 on a resource it has no access to, and on anything that changes data without write access.
application/json- body
plan*string"plus""pro"interval*string"month""year"Where to send the user
application/json- response
url*stringuricurl -X POST 'https://example.com/v1/billing/checkout' \ -H 'Content-Type: application/json' \ -d '{ "plan": "plus", "interval": "month"}'{ "url": "http://example.com"}Returns a link to Paddle's portal, where the user changes their card or plan, cancels, and reads
invoices. 404 billing.no_subscription when the plan is not billed through Paddle. Needs a signed-in
session.
bearerAuthorizationBearer <token>Supabase access token (JWT) or personal API key (ga_…). A key gets 403 on a resource it has no access to, and on anything that changes data without write access.
The portal link
application/json- response
url*stringuricurl -X POST 'https://example.com/v1/billing/portal'{ "url": "http://example.com"}Counts for the Plan & usage page: totals, items by kind, storage by type, and saves this week and
today. On every plan; it makes no model calls and does not count towards AI limits. API keys need
read on account, like GET /v1/billing.
- Deleted items never count. Archived items count in
totals.items,by_kind,activityandfavourites, asusage.itemsofGET /v1/billingdoes;totals.itemsandstorage.total_bytesalways equal that endpoint'susage.itemsandusage.storage_bytes. - Days and hours are read in
tz; weeks start on Monday. - Every number is counted when asked, so an item just saved shows on the next request.
bearerAuthorizationBearer <token>Supabase access token (JWT) or personal API key (ga_…). A key gets 403 on a resource it has no access to, and on anything that changes data without write access.
tz?stringIANA timezone such as Africa/Accra that days and hours are read in. Default UTC; an unknown name is 422.
length <= 64"UTC"The library summary
application/json- response
A summary of the user's library. Item counts are of live items (deleted items never count);
archived items count wherever an item would, except in totals.tags and top_tags.
timezone*stringThe IANA timezone days and hours are read in
totals*by_kind*Live items of each kind, archived ones included. Every kind is present, 0 when there are none.
storage*What the user's stored files take up. Every stored file is a row with a kind (upload, banner,
screenshot, archive, pdf, video, thumbnail) and is counted under that kind; thumbnails
are stored files like the rest, so they count towards the plan's storage. A file whose size is
not known counts 0 bytes (and 1 in count). Files of a kind not listed here would be counted
under other, which is only present when it has any; the parts always add up to total_bytes.
activity*Live items (archived ones included) by created_at, the saved date that updateItem can backdate
and the feed is ordered by, read in timezone. Days run from local midnight to local midnight, so
a day with a clock change is 23 or 25 hours long; on a night the clocks go back, both passes
through the repeated hour count in that hour.
cards*array<>Items by card (recipe, book, film...), most first. Items without a card are left out.
top_domains*array<>The 10 sites saved from most; ties by name.
top_tags*array<>The 10 user tags used most, counted as GET /v1/tags counts them; ties by tag.
by_hour*array<integer>Saves over all time by local hour of day; index 0 is midnight to 1am.
24 <= items <= 24by_weekday*array<integer>Saves over all time by local day of week; index 0 is Monday.
7 <= items <= 7monthly*array<>Saves in each of the last 12 calendar months, oldest first, empty months included.
curl -X GET 'https://example.com/v1/stats'{ "timezone": "Africa/Accra", "totals": { "items": 0, "favourites": 0, "archived": 0, "tags": 0, "storage_bytes": 0, "completed": 0, "domains": 0, "lists": 0, "smart_lists": 0, "dead_links": 0 }, "by_kind": { "link": 0, "note": 0, "quote": 0, "highlight": 0, "todo": 0, "image": 0, "pdf": 0, "video": 0, "audio": 0 }, "storage": { "total_bytes": 0, "by_type": [ { "type": "upload", "bytes": 0, "count": 0 } ] }, "activity": { "week_start": "2019-08-24", "week": [ { "date": "2019-08-24", "count": 0 }, { "date": "2019-08-24", "count": 0 }, { "date": "2019-08-24", "count": 0 }, { "date": "2019-08-24", "count": 0 }, { "date": "2019-08-24", "count": 0 }, { "date": "2019-08-24", "count": 0 }, { "date": "2019-08-24", "count": 0 } ], "today": [ { "hour": 0, "count": 0 }, { "hour": 0, "count": 0 }, { "hour": 0, "count": 0 }, { "hour": 0, "count": 0 }, { "hour": 0, "count": 0 }, { "hour": 0, "count": 0 }, { "hour": 0, "count": 0 }, { "hour": 0, "count": 0 }, { "hour": 0, "count": 0 }, { "hour": 0, "count": 0 }, { "hour": 0, "count": 0 }, { "hour": 0, "count": 0 }, { "hour": 0, "count": 0 }, { "hour": 0, "count": 0 }, { "hour": 0, "count": 0 }, { "hour": 0, "count": 0 }, { "hour": 0, "count": 0 }, { "hour": 0, "count": 0 }, { "hour": 0, "count": 0 }, { "hour": 0, "count": 0 }, { "hour": 0, "count": 0 }, { "hour": 0, "count": 0 }, { "hour": 0, "count": 0 }, { "hour": 0, "count": 0 } ] }, "cards": [ { "name": "string", "count": 0 } ], "top_domains": [ { "name": "string", "count": 0 } ], "top_tags": [ { "name": "string", "count": 0 } ], "by_hour": [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ], "by_weekday": [ 0, 0, 0, 0, 0, 0, 0 ], "monthly": [ { "month": "2026-11", "count": 0 } ]}