TickerTrac Users API
The users API from TickerTrac — 16 operation(s) for users.
The users API from TickerTrac — 16 operation(s) for users.
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/tickertrac-com:tickertrac-com-users-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: TickerRAG Users API
version: 0.1.0
tags:
- name: Users
paths:
/users/me:
get:
tags:
- Users
summary: Get Me
operationId: get_me_users_me_get
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/UserOut'
security:
- HTTPBearer: []
- APIKeyHeader: []
delete:
tags:
- Users
summary: Delete Me
description: 'Self-service deletion of the caller''s own account -- distinct from the
admin-only DELETE /{user_id} below. Cascades through existing FKs (watchlists,
watchlist_tickers, theses, tokens). Authentication re-reads users on every
request, so issued credentials lose access as soon as this commits.'
operationId: delete_me_users_me_delete
responses:
'204':
description: Successful Response
security:
- HTTPBearer: []
- APIKeyHeader: []
/users/me/activation-progress:
get:
tags:
- Users
summary: Get Activation Progress
description: 'Project first-use progress from the durable interaction ledger.
The client records a proof view only after evaluated Company Replay evidence or a
stored Investment-theme evidence state is visible. Each event binds to an
owner-validated immutable artifact. Reading those existing milestones keeps Home
aligned with what the investor actually saw without adding parallel mutable state.'
operationId: get_activation_progress_users_me_activation_progress_get
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/ActivationProgressOut'
security:
- HTTPBearer: []
- APIKeyHeader: []
/users:
get:
tags:
- Users
summary: List Users
operationId: list_users_users_get
responses:
'200':
description: Successful Response
content:
application/json:
schema:
items:
$ref: '#/components/schemas/UserOut'
type: array
title: Response List Users Users Get
security:
- HTTPBearer: []
- APIKeyHeader: []
/users/access:
get:
tags:
- Users
summary: List User Access
description: Admin-only account access projection; Stripe and grants stay separate.
operationId: list_user_access_users_access_get
responses:
'200':
description: Successful Response
content:
application/json:
schema:
items:
$ref: '#/components/schemas/AdminUserAccessOut'
type: array
title: Response List User Access Users Access Get
security:
- HTTPBearer: []
- APIKeyHeader: []
/users/signup-controls:
get:
tags:
- Users
summary: Get Signup Controls
description: 'Admin-only: whether new email sign-ups are paused, and when the spike alert last fired.'
operationId: get_signup_controls_users_signup_controls_get
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/SignupControlsOut'
security:
- HTTPBearer: []
- APIKeyHeader: []
put:
tags:
- Users
summary: Put Signup Controls
description: 'Pause or resume new email sign-ups. Google sign-in and existing accounts are
unaffected; the change is recorded in the admin audit log.'
operationId: put_signup_controls_users_signup_controls_put
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/SignupControlsIn'
required: true
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/SignupControlsOut'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
security:
- HTTPBearer: []
- APIKeyHeader: []
/users/audit-log:
get:
tags:
- Users
summary: Get Audit Log
description: 'Declared before /{user_id} below -- FastAPI matches routes in registration
order, and /{user_id}''s int path converter would otherwise 422 on "audit-log"
before ever falling through to this route.'
operationId: get_audit_log_users_audit_log_get
security:
- HTTPBearer: []
- APIKeyHeader: []
parameters:
- name: limit
in: query
required: false
schema:
type: integer
default: 100
title: Limit
responses:
'200':
description: Successful Response
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/AuditLogEntryOut'
title: Response Get Audit Log Users Audit Log Get
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/users/{user_id}:
get:
tags:
- Users
summary: Get User
operationId: get_user_users__user_id__get
security:
- HTTPBearer: []
- APIKeyHeader: []
parameters:
- name: user_id
in: path
required: true
schema:
type: integer
title: User Id
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/UserOut'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
delete:
tags:
- Users
summary: Delete User
operationId: delete_user_users__user_id__delete
security:
- HTTPBearer: []
- APIKeyHeader: []
parameters:
- name: user_id
in: path
required: true
schema:
type: integer
title: User Id
responses:
'204':
description: Successful Response
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/users/{user_id}/admin:
patch:
tags:
- Users
summary: Set Admin
operationId: set_admin_users__user_id__admin_patch
security:
- HTTPBearer: []
- APIKeyHeader: []
parameters:
- name: user_id
in: path
required: true
schema:
type: integer
title: User Id
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/AdminUpdate'
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/UserOut'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/users/{user_id}/verify:
patch:
tags:
- Users
summary: Verify User
description: 'Admin-only escape hatch: manually mark an account''s email verified. Exists
specifically because the Resend sandbox sender can''t reliably deliver the real
verification email to arbitrary signup addresses (see api/routers/auth.py).'
operationId: verify_user_users__user_id__verify_patch
security:
- HTTPBearer: []
- APIKeyHeader: []
parameters:
- name: user_id
in: path
required: true
schema:
type: integer
title: User Id
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/UserOut'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/users/{user_id}/comp:
post:
tags:
- Users
summary: Grant Comp
description: 'Grant complimentary Investor access through the audited account-access desk.
Note this writes comp_expires_at, never subscription_status. See entitlements.py
for why touching Stripe''s column instead would silently lose the grant.
Re-granting overwrites rather than extends. Extension would make "give them
another 30 days" ambiguous depending on whether the previous grant had already
lapsed; setting an absolute end date from now is the same operation every time.'
operationId: grant_comp_users__user_id__comp_post
security:
- HTTPBearer: []
- APIKeyHeader: []
parameters:
- name: user_id
in: path
required: true
schema:
type: integer
title: User Id
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/CompGrantIn'
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/UserOut'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
delete:
tags:
- Users
summary: Revoke Comp
description: 'Ends a comp immediately. The account falls back to whatever Stripe says about
it, which for most comped accounts is nothing -- i.e. back to the free tier.'
operationId: revoke_comp_users__user_id__comp_delete
security:
- HTTPBearer: []
- APIKeyHeader: []
parameters:
- name: user_id
in: path
required: true
schema:
type: integer
title: User Id
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/UserOut'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/users/me/settings:
patch:
tags:
- Users
summary: Update Settings
description: Write only the fields the request named; a field left out is left alone.
operationId: update_settings_users_me_settings_patch
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/UserSettingsIn'
required: true
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/UserOut'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
security:
- HTTPBearer: []
- APIKeyHeader: []
/users/me/onboarding-preferences/confirm:
post:
tags:
- Users
summary: Confirm Onboarding Preferences
description: Confirm the default/custom delivery settings as an explicit onboarding step.
operationId: confirm_onboarding_preferences_users_me_onboarding_preferences_confirm_post
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/UserOut'
security:
- HTTPBearer: []
- APIKeyHeader: []
/users/me/research-history:
delete:
tags:
- Users
summary: Clear Research History
description: 'Delete the caller''s saved Ask questions and answers and price-move explanations.
Ask answers are also copied into research_result_thesis_impacts (artifact_id is the
ask_history row), so those rows go too; otherwise the answers outlive the history.
Price-move impacts hang off alerts, not this history, and stay. A completed
conversational Ask receipt must point at its answer, so the ON DELETE SET NULL on
thesis_ask_command_confirmations would fail its check: those receipts go first.
Account authority only: every non-safe /users route is, so a script key cannot
clear it.'
operationId: clear_research_history_users_me_research_history_delete
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/ResearchHistoryClearedOut'
security:
- HTTPBearer: []
- APIKeyHeader: []
/users/me/api-key/regenerate:
post:
tags:
- Users
summary: Regenerate Api Key
operationId: regenerate_api_key_users_me_api_key_regenerate_post
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/ApiKeyOut'
security:
- HTTPBearer: []
- APIKeyHeader: []
/users/me/api-credentials:
get:
tags:
- Users
summary: List Api Credentials
description: 'Revoked rows are listed too: knowing a credential existed and when it was revoked
is the point of keeping the row instead of deleting it.'
operationId: list_api_credentials_users_me_api_credentials_get
responses:
'200':
description: Successful Response
content:
application/json:
schema:
items:
$ref: '#/components/schemas/ApiCredentialOut'
type: array
title: Response List Api Credentials Users Me Api Credentials Get
security:
- HTTPBearer: []
- APIKeyHeader: []
post:
tags:
- Users
summary: Create Api Credential
description: 'Issue an additional API credential limited to the requested scopes (ADR-060).
This route itself requires `account` authority (see credential_scopes.py), which a
stored credential can never hold -- so a scoped credential cannot mint a broader one,
and the only way to widen authority is to sign in.'
operationId: create_api_credential_users_me_api_credentials_post
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/ApiCredentialIn'
required: true
responses:
'201':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/ApiCredentialCreatedOut'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
security:
- HTTPBearer: []
- APIKeyHeader: []
/users/me/api-credentials/{credential_id}:
delete:
tags:
- Users
summary: Revoke Api Credential
description: 'Idempotent by design: re-revoking an already-revoked credential is still a 204, so
a panicked owner hitting this twice does not see an error and wonder which call won.
The ownership predicate is in the WHERE clause, so another account''s credential id is
a 404 rather than a silent no-op.'
operationId: revoke_api_credential_users_me_api_credentials__credential_id__delete
security:
- HTTPBearer: []
- APIKeyHeader: []
parameters:
- name: credential_id
in: path
required: true
schema:
type: integer
title: Credential Id
responses:
'204':
description: Successful Response
'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
ResearchHistoryClearedOut:
properties:
questions_deleted:
type: integer
title: Questions Deleted
explanations_deleted:
type: integer
title: Explanations Deleted
type: object
required:
- questions_deleted
- explanations_deleted
title: ResearchHistoryClearedOut
AdminUpdate:
properties:
is_admin:
type: boolean
title: Is Admin
type: object
required:
- is_admin
title: AdminUpdate
ApiCredentialOut:
properties:
id:
type: integer
title: Id
name:
type: string
title: Name
scopes:
items:
type: string
type: array
title: Scopes
created_at:
type: string
format: date-time
title: Created At
revoked_at:
anyOf:
- type: string
format: date-time
- type: 'null'
title: Revoked At
type: object
required:
- id
- name
- scopes
- created_at
title: ApiCredentialOut
UserSettingsIn:
properties:
alerts_paused:
anyOf:
- type: boolean
- type: 'null'
title: Alerts Paused
guidance_preference:
anyOf:
- type: string
enum:
- guided
- experienced
- type: 'null'
title: Guidance Preference
example_thesis_hidden:
anyOf:
- type: boolean
- type: 'null'
title: Example Thesis Hidden
type: object
title: UserSettingsIn
description: 'Partial update: only the fields present in the request are written.'
AdminUserAccessOut:
properties:
id:
anyOf:
- type: integer
- type: 'null'
title: Id
email:
type: string
title: Email
is_admin:
type: boolean
title: Is Admin
email_verified:
type: boolean
title: Email Verified
alerts_paused:
type: boolean
title: Alerts Paused
email_delivery_suppressed_at:
anyOf:
- type: string
format: date-time
- type: 'null'
title: Email Delivery Suppressed At
email_delivery_suppression_reason:
anyOf:
- type: string
- type: 'null'
title: Email Delivery Suppression Reason
onboarding_preferences_confirmed_at:
anyOf:
- type: string
format: date-time
- type: 'null'
title: Onboarding Preferences Confirmed At
created_at:
type: string
format: date-time
title: Created At
guidance_preference:
anyOf:
- type: string
enum:
- guided
- experienced
- type: 'null'
title: Guidance Preference
example_thesis_hidden_at:
anyOf:
- type: string
format: date-time
- type: 'null'
title: Example Thesis Hidden At
has_password:
anyOf:
- type: boolean
- type: 'null'
title: Has Password
plan_code:
type: string
title: Plan Code
subscription_status:
anyOf:
- type: string
- type: 'null'
title: Subscription Status
subscription_cancel_at_period_end:
type: boolean
title: Subscription Cancel At Period End
default: false
subscription_cancel_at:
anyOf:
- type: string
format: date-time
- type: 'null'
title: Subscription Cancel At
comp_expires_at:
anyOf:
- type: string
format: date-time
- type: 'null'
title: Comp Expires At
comp_reason:
anyOf:
- type: string
- type: 'null'
title: Comp Reason
type: object
required:
- email
- is_admin
- email_verified
- alerts_paused
- email_delivery_suppressed_at
- email_delivery_suppression_reason
- onboarding_preferences_confirmed_at
- created_at
- plan_code
- subscription_status
- comp_expires_at
- comp_reason
title: AdminUserAccessOut
ApiKeyOut:
properties:
api_key:
type: string
title: Api Key
type: object
required:
- api_key
title: ApiKeyOut
AuditLogEntryOut:
properties:
id:
type: integer
title: Id
admin_user_id:
anyOf:
- type: integer
- type: 'null'
title: Admin User Id
admin_email:
anyOf:
- type: string
- type: 'null'
title: Admin Email
action:
type: string
title: Action
target_user_id:
anyOf:
- type: integer
- type: 'null'
title: Target User Id
target_email:
anyOf:
- type: string
- type: 'null'
title: Target Email
detail:
anyOf:
- type: string
- type: 'null'
title: Detail
created_at:
type: string
format: date-time
title: Created At
type: object
required:
- id
- admin_user_id
- admin_email
- action
- target_user_id
- target_email
- detail
- created_at
title: AuditLogEntryOut
UserOut:
properties:
id:
anyOf:
- type: integer
- type: 'null'
title: Id
email:
type: string
title: Email
is_admin:
type: boolean
title: Is Admin
email_verified:
type: boolean
title: Email Verified
alerts_paused:
type: boolean
title: Alerts Paused
email_delivery_suppressed_at:
anyOf:
- type: string
format: date-time
- type: 'null'
title: Email Delivery Suppressed At
email_delivery_suppression_reason:
anyOf:
- type: string
- type: 'null'
title: Email Delivery Suppression Reason
onboarding_preferences_confirmed_at:
anyOf:
- type: string
format: date-time
- type: 'null'
title: Onboarding Preferences Confirmed At
created_at:
type: string
format: date-time
title: Created At
guidance_preference:
anyOf:
- type: string
enum:
- guided
- experienced
- type: 'null'
title: Guidance Preference
example_thesis_hidden_at:
anyOf:
- type: string
format: date-time
- type: 'null'
title: Example Thesis Hidden At
has_password:
anyOf:
- type: boolean
- type: 'null'
title: Has Password
type: object
required:
- email
- is_admin
- email_verified
- alerts_paused
- email_delivery_suppressed_at
- email_delivery_suppression_reason
- onboarding_preferences_confirmed_at
- created_at
title: UserOut
ApiCredentialCreatedOut:
properties:
id:
type: integer
title: Id
name:
type: string
title: Name
scopes:
items:
type: string
type: array
title: Scopes
created_at:
type: string
format: date-time
title: Created At
revoked_at:
anyOf:
- type: string
format: date-time
- type: 'null'
title: Revoked At
api_key:
type: string
title: Api Key
type: object
required:
- id
- name
- scopes
- created_at
- api_key
title: ApiCredentialCreatedOut
ApiCredentialIn:
properties:
name:
type: string
maxLength: 80
minLength: 1
title: Name
scopes:
items:
type: string
type: array
maxItems: 4
minItems: 1
title: Scopes
additionalProperties: false
type: object
required:
- name
- scopes
title: ApiCredentialIn
description: 'Request for a scoped credential (ADR-060). `scopes` is validated in the router
against tickerrag.credential_scopes so that an unissuable scope is a 422 rather than a
silently narrower key than the caller believes it received.'
SignupControlsOut:
properties:
email_signups_paused:
type: boolean
title: Email Signups Paused
paused_changed_at:
anyOf:
- type: string
format: date-time
- type: 'null'
title: Paused Changed At
spike_alerted_at:
anyOf:
- type: string
format: date-time
- type: 'null'
title: Spike Alerted At
type: object
required:
- email_signups_paused
title: SignupControlsOut
SignupControlsIn:
properties:
email_signups_paused:
type: boolean
title: Email Signups Paused
type: object
required:
- email_signups_paused
title: SignupControlsIn
ActivationProgressOut:
properties:
historical_replay_viewed_at:
anyOf:
- type: string
format: date-time
- type: 'null'
title: Historical Replay Viewed At
historical_replay_ticker:
anyOf:
- type: string
- type: 'null'
title: Historical Replay Ticker
investment_theme_evidence_views:
items:
$ref: '#/components/schemas/InvestmentThemeEvidenceViewProgressOut'
type: array
title: Investment Theme Evidence Views
type: object
title: ActivationProgressOut
description: Content-free projection of first-use milestones already retained elsewhere.
CompGrantIn:
properties:
days:
type: integer
maximum: 3650.0
exclusiveMinimum: 0.0
title: Days
reason:
type: string
maxLength: 200
minLength: 1
pattern: \S
title: Reason
type: object
required:
- days
- reason
title: CompGrantIn
InvestmentThemeEvidenceViewProgressOut:
properties:
shared_thesis_id:
type: integer
title: Shared Thesis Id
shared_thesis_version_id:
type: integer
title: Shared Thesis Version Id
shared_thesis_version_number:
type: integer
title: Shared Thesis Version Number
viewed_at:
type: string
format: date-time
title: Viewed At
type: object
required:
- shared_thesis_id
- shared_thesis_version_id
- shared_thesis_version_number
- viewed_at
title: InvestmentThemeEvidenceViewProgressOut
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
securitySchemes:
HTTPBearer:
type: http
scheme: bearer
APIKeyHeader:
type: apiKey
in: header
name: X-API-Key