Liftli Subscriptions API
The subscriptions API from Liftli — 11 operation(s) for subscriptions.
The subscriptions API from Liftli — 11 operation(s) for subscriptions.
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-subscriptions-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 Subscriptions API
version: 1.4.6
description: 'Operations tagged subscriptions 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: Subscriptions
paths:
/api/v1/subscriptions/me:
get:
tags:
- Subscriptions
summary: Get Current Subscription
description: Get current user's active subscription.
operationId: get_current_subscription_api_v1_subscriptions_me_get
responses:
'200':
description: Successful Response
content:
application/json:
schema:
anyOf:
- $ref: '#/components/schemas/SubscriptionResponse'
- type: 'null'
title: Response Get Current Subscription Api V1 Subscriptions Me Get
/api/v1/subscriptions/me/checkout:
post:
tags:
- Subscriptions
summary: Me Checkout
description: 'Mint a Paddle checkout (or portal) link for the SIGNED-IN console user.
Auth is @require_auth only (an expired/none user must be able to (re)purchase). The subject
is taken solely from the server-side session (workos_subject), never from the body - this is
what prevents a caller minting a link for another subject (IDOR / portal-link leakage). We
rate-limit BEFORE calling the shared mint because its portal/change branch is un-idempotent
(a live Paddle API call each time). The mint itself is idempotent on the NEW path. Reuses the
internal checkout limiter/bucket so console + in-chat checkouts share one per-subject budget.'
operationId: me_checkout_api_v1_subscriptions_me_checkout_post
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/MeCheckoutRequest'
required: true
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/api/v1/subscriptions/me/cancel:
post:
tags:
- Subscriptions
summary: Cancel Current Subscription
description: 'Cancel current user''s subscription.
Initiates cancellation via Paddle API. The subscription remains active until
the end of the current billing period, then automatically expires.
Raises:
HTTPException 401: If user not authenticated
HTTPException 404: If user has no active subscription
HTTPException 400: If subscription has no Paddle subscription ID (not a Paddle subscription)'
operationId: cancel_current_subscription_api_v1_subscriptions_me_cancel_post
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/SubscriptionResponse'
/api/v1/subscriptions/me/preview-price-update:
post:
tags:
- Subscriptions
summary: Preview Subscription Update
description: Prorated cost of upgrading to {tier, cycle} (spec 2026-11-02, 3.2).
operationId: preview_subscription_update_api_v1_subscriptions_me_preview_price_update_post
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/PlanChangeRequest'
required: true
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/UpgradePreviewResponse'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/api/v1/subscriptions/me/update-subscription:
post:
tags:
- Subscriptions
summary: Update Subscription
description: Upgrade to {tier, cycle} now, prorated; the row is written from Paddle's answer.
operationId: update_subscription_api_v1_subscriptions_me_update_subscription_post
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/PlanChangeRequest'
required: true
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/SubscriptionResponse'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/api/v1/subscriptions/me/keep:
post:
tags:
- Subscriptions
summary: Keep Current Subscription
description: 'Keep my plan: remove a pending cancel in Paddle and reinstate (spec 2026-11-02, 3.3).'
operationId: keep_current_subscription_api_v1_subscriptions_me_keep_post
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/SubscriptionResponse'
/api/v1/subscriptions/me/history:
get:
tags:
- Subscriptions
summary: Get Subscription History
description: Get current user's subscription history.
operationId: get_subscription_history_api_v1_subscriptions_me_history_get
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/SubscriptionHistoryResponse'
/api/v1/subscriptions/users/{user_id}/upgrade:
post:
tags:
- Subscriptions
summary: Upgrade User Subscription
description: Upgrade a user's subscription (admin only).
operationId: upgrade_user_subscription_api_v1_subscriptions_users__user_id__upgrade_post
parameters:
- name: user_id
in: path
required: true
schema:
type: integer
title: User Id
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/SubscriptionUpgradeRequest'
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/SubscriptionResponse'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/api/v1/subscriptions/users/{user_id}/cancel:
post:
tags:
- Subscriptions
summary: Cancel User Subscription
description: Cancel a user's subscription (admin only).
operationId: cancel_user_subscription_api_v1_subscriptions_users__user_id__cancel_post
parameters:
- name: user_id
in: path
required: true
schema:
type: integer
title: User Id
- name: reason
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Reason
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/SubscriptionResponse'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/api/v1/subscriptions/users/{user_id}/extend-trial:
post:
tags:
- Subscriptions
summary: Extend User Trial
description: Extend a user's trial period (admin only).
operationId: extend_user_trial_api_v1_subscriptions_users__user_id__extend_trial_post
parameters:
- name: user_id
in: path
required: true
schema:
type: integer
title: User Id
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/ExtendTrialRequest'
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/SubscriptionResponse'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/api/v1/subscriptions/check-expirations:
post:
tags:
- Subscriptions
summary: Check Subscription Expirations
description: Check and expire any subscriptions that have passed their expiry date (admin only).
operationId: check_subscription_expirations_api_v1_subscriptions_check_expirations_post
responses:
'200':
description: Successful Response
content:
application/json:
schema:
additionalProperties: true
type: object
title: Response Check Subscription Expirations Api V1 Subscriptions Check Expirations Post
components:
schemas:
SubscriptionResponse:
properties:
id:
type: integer
title: Id
user_id:
type: integer
title: User Id
tier:
type: string
title: Tier
status:
type: string
title: Status
billing_cycle:
anyOf:
- type: string
- type: 'null'
title: Billing Cycle
auto_renews:
type: boolean
title: Auto Renews
expires_at:
anyOf:
- type: string
- type: 'null'
title: Expires At
current_period_start:
anyOf:
- type: string
- type: 'null'
title: Current Period Start
current_period_end:
anyOf:
- type: string
- type: 'null'
title: Current Period End
created_at:
type: string
title: Created At
updated_at:
anyOf:
- type: string
- type: 'null'
title: Updated At
cancelled_at:
anyOf:
- type: string
- type: 'null'
title: Cancelled At
days_until_expiry:
anyOf:
- type: integer
- type: 'null'
title: Days Until Expiry
is_active:
type: boolean
title: Is Active
is_trial:
type: boolean
title: Is Trial
is_cancelled:
type: boolean
title: Is Cancelled
is_recurring:
type: boolean
title: Is Recurring
has_paddle_subscription:
type: boolean
title: Has Paddle Subscription
cancel_confirmed_by_paddle:
type: boolean
title: Cancel Confirmed By Paddle
default: false
type: object
required:
- id
- user_id
- tier
- status
- billing_cycle
- auto_renews
- expires_at
- current_period_start
- current_period_end
- created_at
- updated_at
- cancelled_at
- days_until_expiry
- is_active
- is_trial
- is_cancelled
- is_recurring
- has_paddle_subscription
title: SubscriptionResponse
description: Response model for subscription data.
ExtendTrialRequest:
properties:
additional_days:
type: integer
maximum: 30.0
exclusiveMinimum: 0.0
title: Additional Days
type: object
required:
- additional_days
title: ExtendTrialRequest
description: Request model for extending trial period.
SubscriptionTransitionResponse:
properties:
id:
type: integer
title: Id
subscription_id:
type: integer
title: Subscription Id
user_id:
type: integer
title: User Id
from_state:
anyOf:
- type: string
- type: 'null'
title: From State
to_state:
type: string
title: To State
reason:
anyOf:
- type: string
- type: 'null'
title: Reason
metadata:
anyOf:
- additionalProperties: true
type: object
- type: 'null'
title: Metadata
created_at:
type: string
title: Created At
type: object
required:
- id
- subscription_id
- user_id
- from_state
- to_state
- reason
- metadata
- created_at
title: SubscriptionTransitionResponse
description: Response model for subscription transition history.
MeCheckoutRequest:
properties:
tier:
type: string
pattern: ^(creator|pro)$
title: Tier
cycle:
type: string
pattern: ^(monthly|yearly)$
title: Cycle
type: object
required:
- tier
- cycle
title: MeCheckoutRequest
description: 'Request body for the authed console checkout. SECURITY: it deliberately has NO
sub/subject field - the subject is derived server-side from the signed-in user only. A
body-supplied subject would let a caller mint a checkout (or a portal link) for someone
else (IDOR / portal-link leakage). Only the two OFFERED 2.0 tiers are accepted here; legacy
aliases (brand/company) stay tolerated by the internal server sets but are not OFFERED.'
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
UpgradePreviewResponse:
properties:
prorated_amount:
anyOf:
- type: string
- type: 'null'
title: Prorated Amount
next_billing_date:
anyOf:
- type: string
- type: 'null'
title: Next Billing Date
next_billing_amount:
anyOf:
- type: string
- type: 'null'
title: Next Billing Amount
billing_cycle:
anyOf:
- type: string
- type: 'null'
title: Billing Cycle
type: object
title: UpgradePreviewResponse
description: Response model for upgrade preview pricing.
SubscriptionUpgradeRequest:
properties:
tier:
type: string
pattern: ^(trial|free|build|grow|pro|unlimited|creator|brand|company)$
title: Tier
reason:
anyOf:
- type: string
- type: 'null'
title: Reason
type: object
required:
- tier
title: SubscriptionUpgradeRequest
description: Request model for upgrading subscription.
HTTPValidationError:
properties:
detail:
items:
$ref: '#/components/schemas/ValidationError'
type: array
title: Detail
type: object
title: HTTPValidationError
PlanChangeRequest:
properties:
tier:
type: string
pattern: ^(creator|pro)$
title: Tier
cycle:
type: string
pattern: ^(monthly|yearly)$
title: Cycle
type: object
required:
- tier
- cycle
title: PlanChangeRequest
description: '{tier, cycle} for an in-app plan change (spec 2026-11-02, 3.2). Same patterns as
MeCheckoutRequest: only the two offered tiers, and the backend resolves the price, so the
Liftli app never holds a price id.'
SubscriptionHistoryResponse:
properties:
subscriptions:
items:
$ref: '#/components/schemas/SubscriptionResponse'
type: array
title: Subscriptions
transitions:
items:
$ref: '#/components/schemas/SubscriptionTransitionResponse'
type: array
title: Transitions
type: object
required:
- subscriptions
- transitions
title: SubscriptionHistoryResponse
description: Response model for subscription history.
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)