V³ Aware Members API
The members API from V³ Aware, for members.
The members API from V³ Aware, for members.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/v3-news:v3-news-members-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: V³ News API v3 Members API
version: 0.1.0
tags:
- name: Members
paths:
/members/tier:
get:
tags:
- Members
summary: Get Member Tier
description: 'Return the subscription tier (''free'' | ''standard'') for a Clerk
user id. Service-to-service only (X-V3-Service-Key). Used by the MCP
member connector to gate tier-aware tools. Reuses the same resolver
the usage pipeline uses, so the tier definition stays single-sourced.'
operationId: get_member_tier_members_tier_get
parameters:
- name: clerk_user_id
in: query
required: true
schema:
type: string
title: Clerk User Id
- name: X-V3-Service-Key
in: header
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: X-V3-Service-Key
responses:
'200':
description: Successful Response
content:
application/json:
schema:
type: object
additionalProperties: true
title: Response Get Member Tier Members Tier Get
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/members/me:
get:
tags:
- Members
summary: Get Me
description: 'Return the current member row.
The dependency auto-upserts on first authed visit, so this is
also the closest thing the platform has to a "provision the
member" call — any frontend module wanting a member row exists
can hit GET /members/me once on mount and it''ll be there.
Wrapped in a ``member`` envelope to leave room for future
sibling fields (e.g. ``feature_flags``, ``unread_count``) at
the top level of the response without breaking clients.'
operationId: get_me_members_me_get
responses:
'200':
description: Successful Response
content:
application/json:
schema:
additionalProperties: true
type: object
title: Response Get Me Members Me Get
delete:
tags:
- Members
summary: Delete Me
description: 'Hard-delete the authenticated member''s account.
Apple App Store guideline 5.1.1(v) — apps that support account
creation MUST offer in-app account deletion. Same expectation in
Google Play Policy. The flow:
1. Delete the Clerk user (so they can''t sign back in with the
same identity — important for the App Reviewer''s test).
Idempotent on 404 in case a stuck retry already cleared
the Clerk side.
2. Delete the local members row. The CASCADE FKs handle the
downstream cleanup:
• member_perspectives (031) → DELETE CASCADE
• member_follows (032) → DELETE CASCADE
• member_subscriptions (037) → DELETE CASCADE
• field_notes initiated_by_member_id (044) → SET NULL
(preserves the public-facing finding; just anonymizes
the attribution — desired behavior since field notes
are LLM-authored editorial content, not member content)
Session telemetry (048) keys on a HMAC pseudonym of the
Clerk user_id with a server-only salt. Deleting the Clerk
user severs the link without us touching user_sessions:
the pseudonym is no longer reversible. The nightly
retention worker auto-clears rows after 90 days.
Important nuance for paid users:
Deleting the local member row removes our knowledge of their
subscription, but does NOT cancel an active Apple or Stripe
subscription on the provider side. The user must cancel via
Settings → Apple ID → Subscriptions (or our web billing
portal for Stripe). The mobile confirmation modal surfaces
this explicitly so the user isn''t surprised by continued
renewals on a deleted account. (Apple App Review tolerates
this pattern; the requirement is account deletion, not
subscription cancellation — they''re separate concerns.)
Returns 204 No Content on success. The client is expected to
sign the user out via Clerk client-side and clear any local
cache (subscription tier, perspectives, etc.) immediately
after.'
operationId: delete_me_members_me_delete
responses:
'204':
description: Successful Response
patch:
tags:
- Members
summary: Patch Me
description: 'Update the current member''s mutable profile fields.
Only ``display_name`` + ``metadata`` are writable today. Email +
role are NOT updatable here (email lives in Clerk; role is
admin-only and changed via direct DB write). Future phases will
add more allowed fields — keep the patch shape forward-compat
by ignoring unknown keys rather than rejecting the request.'
operationId: patch_me_members_me_patch
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/MemberPatch'
required: true
responses:
'200':
description: Successful Response
content:
application/json:
schema:
additionalProperties: true
type: object
title: Response Patch Me Members Me Patch
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/members/me/visits/{page}:
post:
tags:
- Members
summary: Post Page Visit
description: 'Record a visit to a page and return the PREVIOUS visit, so the page
can say what is new since then (front page, owner review 2026-10-08).
Stores only two timestamps per member and page (migration 172). A visit
within VISIT_SESSION_GAP_MINUTES of the last counts as the same visit:
previous_visit_at does not move, so refreshing the page keeps showing
what was new when the reader arrived.'
operationId: post_page_visit_members_me_visits__page__post
parameters:
- name: page
in: path
required: true
schema:
type: string
title: Page
responses:
'200':
description: Successful Response
content:
application/json:
schema:
type: object
additionalProperties: true
title: Response Post Page Visit Members Me Visits Page Post
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/members/me/tracking:
post:
tags:
- Members
summary: Post Tracking
description: 'No-op stub. Accepts the event, validates the shape, returns
202. Persistence + querying are deferred — see M0 acceptance
notes in docs/plans/member-experience.md.
The endpoint exists today so:
• Frontend analytics code paths can fire without 404 noise
• The Clerk JWT round-trip is exercised on a write endpoint
before M1/M2 introduce real per-member writes
• Future analytics work can swap the implementation without
a frontend change'
operationId: post_tracking_members_me_tracking_post
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/TrackingEvent'
required: true
responses:
'202':
description: Successful Response
content:
application/json:
schema:
additionalProperties: true
type: object
title: Response Post Tracking Members Me Tracking Post
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/members/me/perspectives:
get:
tags:
- Members
summary: Get Perspectives
description: 'Return the current member''s pinned perspectives.
Returns a stable shape even when no row exists yet (member has
never visited /me/perspectives) — the frontend renders the
empty state without needing to special-case 404.'
operationId: get_perspectives_members_me_perspectives_get
responses:
'200':
description: Successful Response
content:
application/json:
schema:
additionalProperties: true
type: object
title: Response Get Perspectives Members Me Perspectives Get
put:
tags:
- Members
summary: Put Perspectives
description: 'Full-replacement write of the current member''s perspectives.
Categories normalise to lowercase (matches the rest of the
platform); countries normalise to uppercase ISO-2. Validation
runs against the live categories + countries tables so we can''t
accept a slug that the rest of the platform won''t understand.
POSTed acknowledged_at is ignored — that field is owned by the
``/acknowledge`` route, not the perspectives shape itself.'
operationId: put_perspectives_members_me_perspectives_put
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/PerspectivesPayload'
required: true
responses:
'200':
description: Successful Response
content:
application/json:
schema:
additionalProperties: true
type: object
title: Response Put Perspectives Members Me Perspectives Put
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/members/me/perspectives/acknowledge:
post:
tags:
- Members
summary: Acknowledge Perspectives
description: 'Stamp ``acknowledged_at = now()`` so the explainer strip
stops rendering for this member. Inserts an otherwise-empty row
if none exists yet (so a member can dismiss the explainer
without having to set a perspective first).'
operationId: acknowledge_perspectives_members_me_perspectives_acknowledge_post
responses:
'200':
description: Successful Response
content:
application/json:
schema:
additionalProperties: true
type: object
title: Response Acknowledge Perspectives Members Me Perspectives Acknowledge Post
/members/me/follows:
get:
tags:
- Members
summary: List Follows
description: 'The member''s follows, hydrated, newest first.
Sorted by created_at desc — the natural "recently followed" order for the
M3 dashboard.'
operationId: list_follows_members_me_follows_get
responses:
'200':
description: Successful Response
content:
application/json:
schema:
additionalProperties: true
type: object
title: Response List Follows Members Me Follows Get
post:
tags:
- Members
summary: Create Follow
description: 'Follow a target. Idempotent: re-following the same target
returns the existing row with status 200 (the FastAPI default
on returning the row is to keep 201; we override below for the
conflict case).
Verifies target exists in the underlying table before insert
so we can''t accumulate orphan follow rows. The orphan cleanup
worker (M2 → M4 follow-up) catches the case where a target is
deleted after the follow is created.'
operationId: create_follow_members_me_follows_post
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/FollowCreate'
required: true
responses:
'201':
description: Successful Response
content:
application/json:
schema:
additionalProperties: true
type: object
title: Response Create Follow Members Me Follows Post
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/members/me/follows/insights:
get:
tags:
- Members
summary: Follows Insights
description: 'Shape of the member''s watchlist: what is in it, what moved, what went
quiet, and whether it matches the perspective they said they care about.
WHY THIS EXISTS. My Feed had no summary of its own holdings, so the page
could not tell a member the two things a watchlist owner actually asks:
is any of this still moving, and am I watching what I said I care about.
EVERY COUNT COMES FROM ``_hydrated_follows``, the same rows the page
renders. has_unread in particular is read, not recomputed, so the rail''s
"moved" figure can never disagree with the New badges in the lane.
``by_type`` covers all five follow types the API accepts. The web page
bucketed only three and silently dropped entity and theme follows, which
is the defect that motivated returning the full set explicitly.
QUIET means the target''s best-available updated timestamp is older than
14 days. On a watchlist, silence is a finding: it either means the story
stopped or the follow has outlived its usefulness.
LENS ALIGNMENT counts followed EVENTS whose country or category matches
the member''s saved perspective. Only events, because a decision or
outcome inherits its event''s placement and counting both would
double-count the same alignment.'
operationId: follows_insights_members_me_follows_insights_get
responses:
'200':
description: Successful Response
content:
application/json:
schema:
additionalProperties: true
type: object
title: Response Follows Insights Members Me Follows Insights Get
/members/me/follows/{follow_id}:
delete:
tags:
- Members
summary: Delete Follow
description: 'Unfollow. Returns 204 whether or not the row existed —
DELETE is idempotent. Members can only delete their OWN
follows; cross-member access returns 204 (the row doesn''t
exist from this member''s perspective) without leaking that
the id maps to another member''s follow.'
operationId: delete_follow_members_me_follows__follow_id__delete
parameters:
- name: follow_id
in: path
required: true
schema:
type: string
format: uuid
title: Follow Id
responses:
'204':
description: Successful Response
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/members/me/follows/{follow_id}/seen:
post:
tags:
- Members
summary: Mark Follow Seen
description: 'Stamp ``last_seen_at = now()``. Resets has_unread until the
target updates again.
Called by the frontend when the member opens a followed event /
decision / outcome — the click-through into the detail page is
the natural "I''ve seen this update" moment.'
operationId: mark_follow_seen_members_me_follows__follow_id__seen_post
parameters:
- name: follow_id
in: path
required: true
schema:
type: string
format: uuid
title: Follow Id
responses:
'200':
description: Successful Response
content:
application/json:
schema:
type: object
additionalProperties: true
title: Response Mark Follow Seen Members Me Follows Follow Id Seen Post
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
components:
schemas:
HTTPValidationError:
properties:
detail:
items:
$ref: '#/components/schemas/ValidationError'
type: array
title: Detail
type: object
title: HTTPValidationError
PerspectivesPayload:
properties:
primary_country:
anyOf:
- type: string
maxLength: 2
- type: 'null'
title: Primary Country
pinned_categories:
items:
type: string
type: array
maxItems: 12
title: Pinned Categories
follow_other_countries:
items:
type: string
type: array
maxItems: 20
title: Follow Other Countries
type: object
title: PerspectivesPayload
description: "Full replacement payload for PUT /members/me/perspectives.\n\nAll three fields are optional in shape but the semantics are\nexplicit:\n • None for primary_country = \"no primary lens\"\n • Empty array for pinned_categories = \"no category filter\"\n • Empty array for follow_other_countries = \"no watch chips\"\n\nValidation runs in two layers: Pydantic enforces shape (string\ntypes, max lengths, no duplicates), and the route handler\nvalidates against the live categories + countries tables in the\nDB. The DB validation MUST run inside the same transaction as\nthe upsert to avoid a TOCTOU window — but since these are\nreference data that change at PR cadence, eventual consistency\nis fine in practice."
ValidationError:
properties:
loc:
items:
anyOf:
- type: string
- type: integer
type: array
title: Location
msg:
type: string
title: Message
type:
type: string
title: Error Type
input:
title: Input
ctx:
type: object
title: Context
type: object
required:
- loc
- msg
- type
title: ValidationError
FollowCreate:
properties:
target_type:
type: string
pattern: ^(event|decision|outcome|entity|theme)$
title: Target Type
target_id:
type: string
format: uuid
title: Target Id
notes:
anyOf:
- type: string
maxLength: 280
- type: 'null'
title: Notes
type: object
required:
- target_type
- target_id
title: FollowCreate
description: 'Payload for POST /members/me/follows. ``target_type`` +
``target_id`` together identify the thing being followed.
``notes`` is reserved for a future "why I''m following" annotation
surface — capped at 280 chars (tweet-shape) to keep the UI
treatment simple. Empty/missing is the default.'
MemberPatch:
properties:
display_name:
anyOf:
- type: string
maxLength: 200
- type: 'null'
title: Display Name
metadata:
anyOf:
- additionalProperties: true
type: object
- type: 'null'
title: Metadata
type: object
title: MemberPatch
description: 'Operator-supplied profile updates. Both fields optional;
only non-None values are written. ``email`` is intentionally
NOT here — the source of truth is Clerk, not the V3 DB.
Update email in Clerk; it propagates on next sign-in via the
JWT claims.'
TrackingEvent:
properties:
event_type:
type: string
maxLength: 100
title: Event Type
payload:
anyOf:
- additionalProperties: true
type: object
- type: 'null'
title: Payload
type: object
required:
- event_type
title: TrackingEvent
description: 'Forward-compat analytics envelope. Phase M0 is a no-op stub
so the frontend can wire calls without a 404 dance; persistence
+ querying lands in a later phase.
Shape mirrors what the parked legacy ``POST /members/me/tracking``
on the V1 API expected — keeps the frontend''s existing code path
valid without UI changes.'