Account
Your profile, username, email, plan limits, social sign-ins, connected AI apps and account deletion.
These calls act on the signed-in customer. Every call needs a token. Profile reads work before a username is set. To sign in, see Authentication.
Endpoints
| Operation | What it does | Auth |
|---|---|---|
GET/ | Read your profile. | Token |
PATCH/ | Change the fields you send. Set the username here. | Token |
GET/ | Check if a username is valid and free: ?username=.... | Token |
POST/ | Send a code to a new email address. Answers 202. | Token and username |
POST/ | Confirm the code and move the account to the new address. | Token and username |
GET/ | Read what your plan grants. | Token |
GET/ | List linked social sign-ins. | Token |
DELETE/ | Unlink one social sign-in. Answers 204. | Token |
GET/ | List connected AI apps. Cursor-paginated. | Token |
DELETE/ | Disconnect an AI app. Answers 204. | Token |
DELETE/ | Delete the account. Answers 204. | Token |
Calls that need a username answer 409 profile_incomplete until one is set. This is the same gate that guards writes on watchlists, price alerts and other pages. Any mutating call accepts an Idempotency-Key. See Idempotency.
Example: finish sign-up with a username
A new account has status of pending_profile. Set a username to finish. First check the name:
curl "$BASE/api/v1/users/username-available?username=marketwatcher" \
-H "Authorization: Bearer $TOKEN"The answer is always 200:
{
"username": "marketwatcher",
"available": true
}Then claim it:
curl -X PATCH "$BASE/api/v1/users/me" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{"username": "marketwatcher"}'Send only username in this first call. Any other field before a username is set answers 409 profile_incomplete. Change the other fields in a second call. The answer below is after both calls.
{
"id": "eca8506d-1dfa-56a2-8765-96305e99f89c",
"email": "reader@example.com",
"username": "marketwatcher",
"status": "active",
"ui_language": "en",
"article_language": "en",
"timezone": "America/New_York",
"currency": "USD",
"country": "US",
"mobile": null,
"created_at": "2026-10-04T13:30:00Z",
"last_login_at": "2026-11-04T13:30:00Z"
}Example: read your plan limits
curl "$BASE/api/v1/users/me/entitlements" \
-H "Authorization: Bearer $TOKEN"{
"product_code": "premium",
"capabilities": {
"content.tier": "premium",
"markets.data_download": true,
"mcp.full_text": true,
"notifications.whatsapp": true,
"price_alerts.max_active": 50,
"watchlist.max_lists": 10
}
}Read limits here instead of hard-coding them. See Plans and limits.
Rules and edge cases
- Partial update.
PATCHchanges only the fields you send. A field you leave out stays as it is.mobileset tonullclears it. - Username. It is 3 to 30 characters: letters, digits,
.,_and-. It must start and end with a letter or digit. You can change it later. A name another account holds answers409username_taken. A name that breaks the rules answers422validation_failed, with the field inerrors. - Username check.
GET /api/v1/users/username-availablealways answers200with{username, available}.availableisfalsefor a name that is taken or invalid. It never says who holds a taken name. - Two languages.
ui_languageis the interface language.article_languageis the language articles are served in. They are independent. Send a public tag such asenorzh-Hans. See Locales. - Other fields.
countryis 2 letters.currencyis a 3-letter ISO 4217 code.timezoneis an IANA name.mobileis up to 32 characters. - Change email.
POST /api/v1/users/me/email/requestwith{"email": "..."}emails a code to the new address and answers202with achallenge_token. ThenPOST /api/v1/users/me/email/verifywith{"challenge_token": "...", "code": "..."}moves the account and answers200with the profile. The address does not change before that. - Email change limits. The same address answers
409email_unchanged. An address another account uses answers409email_already_registeredon verify. A wrong or old code answers401with anotp_code, see Authentication. Both calls share the per-IP limits of sign-in codes and answer429rate_limited. See Rate limits. - Entitlements. The answer has
product_codeandcapabilities, with every capability key resolved. A limit your plan does not name shows its default. Premium keys such ascontent.tierare the same on every paid plan. - Social sign-ins.
GET /api/v1/users/me/identitieslists linked providers:google,apple,facebook,xorgithub. There is at most one per provider, so the list is not paged. Each item hasprovider,email,created_atandlast_login_at. Linking starts from a sign-in flow, see Authentication. - Unlinking.
DELETE /api/v1/users/me/identities/{provider}is always allowed, because an emailed code still opens the account. A provider that is not linked answers404identity_not_found. - Connected AI apps.
GET /api/v1/users/me/connectionslists the AI apps you allowed to use your account, newest first. Each hasid,name,client_id,kind,scopes,created_atandlast_used_at.limitdefaults to 20 and may not pass 100. See Pagination and MCP. - Disconnecting an app.
DELETE /api/v1/users/me/connections/{connection_id}revokes the app at once. Its tokens stop on the next call. An unknown or not-yours ID answers404connection_not_found. - Deleting the account.
DELETE /api/v1/users/mesigns out every session and starts a 15-day grace period. A paid subscription is set to cancel at period end. Signing in during grace restores renewal only when deletion set that cancel; an earlier cancel remains. With?now=true, local access ends at once and provider subscriptions are cancelled without a refund. A sign-in after hard deletion answers403customer_account_deleted. - After deleting. Provider customer contact details are redacted. Orders, payments and refunds remain for accounting, and the token used for the call stops working.
Errors
| Code | Status | When |
|---|---|---|
profile_incomplete | 409 | The account has no username yet. |
username_taken | 409 | Another account holds the name. |
validation_failed | 422 | The name breaks the length or character rules. |
email_unchanged | 409 | The new email is the same as the current one. |
email_already_registered | 409 | Another account uses this email. |
identity_not_found | 404 | This provider is not linked to your account. |
connection_not_found | 404 | No connected app with this ID is yours. |
rate_limited | 429 | Too many email change requests or codes from this IP. |
Sign-in and request errors, such as token_expired and validation_failed, can come from any call. See Errors.