Users
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 signed-in user
application/json- response
id*stringTrova user id (ULID); independent of the auth provider
email?string|nullcreated_at*stringdate-timeupdated_at*stringdate-timelang?|The language the user chose for text the server writes for them: AI summaries, tags and chat
answers, and push notifications. A code from GET /v1/meta, or null when not chosen (AI text then
follows the content's own language; pushes are English). Set it with PATCH /v1/me. Not the same
as an item's lang, which is the language of its content.
archive_pages?booleanWhether a screenshot and full-page archive are kept of each link the user saves. False until the
user turns it on with PATCH /v1/me; links saved while it is off have none. A plan without archives
keeps none either way.
deletion?|The pending deletion the user asked for (POST /v1/me/deletion), or null.
curl -X GET 'https://example.com/v1/me'{ "id": "string", "email": "string", "created_at": "2019-08-24T14:15:22Z", "updated_at": "2019-08-24T14:15:22Z", "lang": "en", "archive_pages": true, "deletion": { "requested_at": "2019-08-24T14:15:22Z", "purge_after": "2019-08-24T14:15:22Z" }}Changes only the fields sent. lang is the language the server writes AI text and push notifications
in: a code from GET /v1/meta (matched without regard to case and stored in its canonical spelling,
so pt-br is stored as pt-BR), or null to clear it. An unknown tag is a 422 with the reason code
unsupported_language. Clients keep their own copy for instant switching and write it here when the
user changes it; on sign-in on a new device, this value wins. archive_pages (boolean) turns the
screenshot and full-page archive of newly saved links on or off; it is off by default.
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
lang?string|nullarchive_pages?booleanThe user, after the change
application/json- response
id*stringTrova user id (ULID); independent of the auth provider
email?string|nullcreated_at*stringdate-timeupdated_at*stringdate-timelang?|The language the user chose for text the server writes for them: AI summaries, tags and chat
answers, and push notifications. A code from GET /v1/meta, or null when not chosen (AI text then
follows the content's own language; pushes are English). Set it with PATCH /v1/me. Not the same
as an item's lang, which is the language of its content.
archive_pages?booleanWhether a screenshot and full-page archive are kept of each link the user saves. False until the
user turns it on with PATCH /v1/me; links saved while it is off have none. A plan without archives
keeps none either way.
deletion?|The pending deletion the user asked for (POST /v1/me/deletion), or null.
curl -X PATCH 'https://example.com/v1/me' \ -H 'Content-Type: application/json' \ -d '{}'{ "id": "string", "email": "string", "created_at": "2019-08-24T14:15:22Z", "updated_at": "2019-08-24T14:15:22Z", "lang": "en", "archive_pages": true, "deletion": { "requested_at": "2019-08-24T14:15:22Z", "purge_after": "2019-08-24T14:15:22Z" }}The allow-list of languages for lang on PATCH /v1/me, so clients cannot drift from the server, and
the best match for the request's Accept-Language for a first visit. Needs no sign-in; limited to 120
requests a minute per client IP. Responses vary on Accept-Language.
Accept-Language?stringThe languages
application/json- response
languages*array<>The languages lang may be set to, in the server's order.
default_language*stringThe best match for the request's Accept-Language, or en.
curl -X GET 'https://example.com/v1/meta' \ -H 'Accept-Language: fr-CA,fr;q=0.9,en;q=0.5'{ "languages": [ { "code": "en", "name": "English" } ], "default_language": "en"}Needs a signed-in session; an API key gets 403. Allowed when the library is read-only over its plan. The account keeps working until purge_after
(ACCOUNT_DELETE_GRACE_DAYS from now), and GET /v1/me shows the pending deletion. Then the
Supabase sign-in account is deleted and the account locked and erased. Cancel before then with
DELETE /v1/me/deletion. Asking again keeps the first request. See docs/ACCOUNT_DELETION.md.
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
confirm*"delete my account"Must be exactly this phrase.
"delete my account"The deletion is scheduled
application/json- response
requested_at*stringdate-timepurge_after*stringWhen the account is erased unless the deletion is cancelled first.
date-timecurl -X POST 'https://example.com/v1/me/deletion' \ -H 'Content-Type: application/json' \ -d '{ "confirm": "delete my account"}'{ "requested_at": "2019-08-24T14:15:22Z", "purge_after": "2019-08-24T14:15:22Z"}Needs a signed-in session. Only before purge_after; after it, 409.
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 deletion is cancelled; the account stays
curl -X DELETE 'https://example.com/v1/me/deletion'