Liftli Analytics API
The analytics API from Liftli — 12 operation(s) for analytics.
The analytics API from Liftli — 12 operation(s) for analytics.
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/liftli-ai:liftli-ai-analytics-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: Liftli Ai Analytics API
version: 1.4.6
description: 'Operations tagged analytics across 2 of this provider''s published API definitions: app.liftli.ai.json, app-liftli-ai-openapi.json. Each path carries the servers of the definition it was published in.'
tags:
- name: Analytics
paths:
/log-draft-action:
post:
tags:
- Analytics
summary: Log Draft Action
description: Log a draft action to the database for analytics tracking.
operationId: log_draft_action_log_draft_action_post
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/ReplyLogRequest'
required: true
responses:
'200':
description: Successful Response
content:
application/json:
schema:
additionalProperties:
type: string
type: object
title: Response Log Draft Action Log Draft Action Post
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/log-reply:
post:
tags:
- Analytics
summary: Log Reply
description: 'Legacy endpoint: Use /log-draft-action instead.'
operationId: log_reply_log_reply_post
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/ReplyLogRequest'
required: true
responses:
'200':
description: Successful Response
content:
application/json:
schema:
additionalProperties:
type: string
type: object
title: Response Log Reply Log Reply Post
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/posthog-config:
get:
tags:
- Analytics
summary: Get Posthog Config
description: Get PostHog configuration for frontend initialization.
operationId: get_posthog_config_posthog_config_get
responses:
'200':
description: Successful Response
content:
application/json:
schema:
additionalProperties:
type: string
type: object
title: Response Get Posthog Config Posthog Config Get
/logs:
get:
tags:
- Analytics
summary: Get Logs
description: 'Retrieve draft action logs from the database.
Admin users get all logs, regular users only see their own.'
operationId: get_logs_logs_get
parameters:
- name: days
in: query
required: false
schema:
type: integer
maximum: 365
minimum: 1
default: 30
title: Days
- name: limit
in: query
required: false
schema:
type: integer
maximum: 10000
minimum: 1
default: 1000
title: Limit
responses:
'200':
description: Successful Response
content:
application/json:
schema:
type: object
additionalProperties: true
title: Response Get Logs Logs Get
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/debug/user-info:
get:
tags:
- Analytics
summary: Debug User Info
description: Debug endpoint to check current user info (admin only).
operationId: debug_user_info_debug_user_info_get
responses:
'200':
description: Successful Response
content:
application/json:
schema:
additionalProperties: true
type: object
title: Response Debug User Info Debug User Info Get
/logs/export:
get:
tags:
- Analytics
summary: Export Logs
description: 'Export draft action logs as a downloadable file.
Admin users can export all logs with user information.
Regular users can only export their own logs.'
operationId: export_logs_logs_export_get
parameters:
- name: days
in: query
required: false
schema:
type: integer
maximum: 365
minimum: 1
default: 30
title: Days
- name: format
in: query
required: false
schema:
type: string
pattern: ^(json|csv)$
default: json
title: Format
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/usage:
get:
tags:
- Analytics
summary: Get Usage Stats
description: Get user's usage statistics for today.
operationId: get_usage_stats_usage_get
responses:
'200':
description: Successful Response
content:
application/json:
schema:
additionalProperties: true
type: object
title: Response Get Usage Stats Usage Get
/admin/users-summary:
get:
tags:
- Analytics
summary: Get Users Summary
description: Get summary statistics for all users (admin only).
operationId: get_users_summary_admin_users_summary_get
responses:
'200':
description: Successful Response
content:
application/json:
schema:
additionalProperties: true
type: object
title: Response Get Users Summary Admin Users Summary Get
/admin/activity:
get:
tags:
- Analytics
summary: Get System Activity
description: Get system-wide activity summary (admin only).
operationId: get_system_activity_admin_activity_get
parameters:
- name: days
in: query
required: false
schema:
type: integer
maximum: 30
minimum: 1
default: 7
title: Days
- name: limit
in: query
required: false
schema:
type: integer
maximum: 1000
minimum: 1
default: 100
title: Limit
responses:
'200':
description: Successful Response
content:
application/json:
schema:
type: object
additionalProperties: true
title: Response Get System Activity Admin Activity Get
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/admin/detailed-activity:
get:
tags:
- Analytics
summary: Get Detailed System Activity
description: Get detailed system activity with advanced filtering (admin only).
operationId: get_detailed_system_activity_admin_detailed_activity_get
parameters:
- name: days
in: query
required: false
schema:
anyOf:
- type: integer
maximum: 365
minimum: 1
- type: 'null'
title: Days
- name: start_date
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Start Date
- name: end_date
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: End Date
- name: user_id
in: query
required: false
schema:
anyOf:
- type: integer
- type: 'null'
title: User Id
- name: user_email
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: User Email
- name: action_types
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Action Types
- name: models
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Models
- name: styles
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Styles
- name: user_roles
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: User Roles
- name: user_tiers
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: User Tiers
- name: page
in: query
required: false
schema:
type: integer
minimum: 1
default: 1
title: Page
- name: page_size
in: query
required: false
schema:
type: integer
maximum: 500
minimum: 1
default: 50
title: Page Size
- name: include_details
in: query
required: false
schema:
type: boolean
default: true
title: Include Details
- name: sort_by
in: query
required: false
schema:
type: string
pattern: ^(timestamp|user_id|action_type|model)$
default: timestamp
title: Sort By
- name: sort_order
in: query
required: false
schema:
type: string
pattern: ^(asc|desc)$
default: desc
title: Sort Order
- name: dynamic_filters
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Dynamic Filters
responses:
'200':
description: Successful Response
content:
application/json:
schema:
type: object
additionalProperties: true
title: Response Get Detailed System Activity Admin Detailed Activity Get
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/admin/quality-rollup:
get:
tags:
- Analytics
summary: Get Quality Rollup
description: 'Comment-quality rollup per model and per style (admin only).
Answers "which model/style produces comments users KEEP vs REWRITE" by
aggregating draft actions over a date range. Pass either `days` or an
explicit `start_date`/`end_date` range; defaults to the last 30 days.'
operationId: get_quality_rollup_admin_quality_rollup_get
parameters:
- name: days
in: query
required: false
schema:
anyOf:
- type: integer
maximum: 365
minimum: 1
- type: 'null'
title: Days
- name: start_date
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Start Date
- name: end_date
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: End Date
responses:
'200':
description: Successful Response
content:
application/json:
schema:
type: object
additionalProperties: true
title: Response Get Quality Rollup Admin Quality Rollup Get
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/admin/activity-filters:
get:
tags:
- Analytics
summary: Get Activity Filters
description: Get available filter options for activity analysis (admin only).
operationId: get_activity_filters_admin_activity_filters_get
responses:
'200':
description: Successful Response
content:
application/json:
schema:
additionalProperties: true
type: object
title: Response Get Activity Filters Admin Activity Filters Get
components:
schemas:
ReplyLogRequest:
properties:
reply_text:
type: string
title: Reply Text
edited_text:
anyOf:
- type: string
- type: 'null'
title: Edited Text
model:
type: string
title: Model
style:
type: string
title: Style
user_concept:
type: string
title: User Concept
default: ''
reply_context:
anyOf:
- {}
- type: 'null'
title: Reply Context
original_post_content:
type: string
title: Original Post Content
original_post_author:
type: string
title: Original Post Author
original_post_author_role:
type: string
title: Original Post Author Role
platform:
type: string
title: Platform
action_type:
type: string
title: Action Type
draft_id:
anyOf:
- type: string
- type: 'null'
title: Draft Id
feedback_type:
anyOf:
- type: string
- type: 'null'
title: Feedback Type
feedback_text:
type: string
title: Feedback Text
default: ''
feedback_submitted:
type: boolean
title: Feedback Submitted
default: false
generation_time_ms:
anyOf:
- type: integer
- type: 'null'
title: Generation Time Ms
timestamp:
type: string
title: Timestamp
type: object
required:
- reply_text
- model
- style
- original_post_content
- original_post_author
- original_post_author_role
- platform
- action_type
- timestamp
title: ReplyLogRequest
description: Request model for logging reply actions
ValidationError:
properties:
loc:
items:
anyOf:
- type: string
- type: integer
type: array
title: Location
msg:
type: string
title: Message
type:
type: string
title: Error Type
type: object
required:
- loc
- msg
- type
title: ValidationError
HTTPValidationError:
properties:
detail:
items:
$ref: '#/components/schemas/ValidationError'
type: array
title: Detail
type: object
title: HTTPValidationError
x-refined-from:
- app.liftli.ai.json
- app-liftli-ai-openapi.json
x-provenance:
method: harvested
publisher: Liftli
source: https://app.liftli.ai/openapi.json
note: split by refine-openapis from the provider's own published document, verified by fetch (openapi/_original/*.fetch.json);
stamped by stamp-openapi-provenance.py (roadmap#793)