Skip to content
Skip to Content
DevelopersAPI referenceUsers

Update the signed-in user

PATCH
/v1/me

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.

Authorization

bearer
headerAuthorizationBearer <token>

A personal API key (ga_…), sent as Authorization: Bearer ga_…. A key gets 403 on a resource it has no access to, and on anything that changes data without write access.

Request Body

application/json
  1. body
lang?string|null
archive_pages?boolean

Response Body

The user, after the change

application/json
  1. response
id*string

Trova user id (ULID); independent of the auth provider

email?string|null
created_at*string
Formatdate-time
updated_at*string
Formatdate-time
lang?|

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?boolean

Whether 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.

Example Request
curl -X PATCH 'https://example.com/v1/me' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "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"  }}