UnoRouter Subscription API
The Subscription API from UnoRouter, for subscription.
The Subscription API from UnoRouter, for subscription.
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/unorouter-com:unorouter-com-subscription-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:
description: ' '
title: New Subscription API
version: 0.0.1
tags:
- name: Subscription
paths:
/api/subscription/orders/self:
get:
operationId: getUserSubscriptionOrders
parameters:
- description: Page number (1-based)
in: query
name: p
schema:
type: integer
- description: Items per page
in: query
name: page_size
schema:
type: integer
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/Response_dto.PageData-model.SubscriptionOrder'
application/xml:
schema:
$ref: '#/components/schemas/Response_dto.PageData-model.SubscriptionOrder'
description: OK
security:
- accessToken: []
newApiUser: []
- newApiUser: []
sessionAuth: []
summary: Get User Subscription Orders
tags:
- Subscription
/api/subscription/plans:
get:
operationId: getSubscriptionPlans
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/Response_Array-controller.SubscriptionPlanDTO'
application/xml:
schema:
$ref: '#/components/schemas/Response_Array-controller.SubscriptionPlanDTO'
description: OK
security:
- {}
summary: Get Subscription Plans
tags:
- Subscription
/api/subscription/self:
get:
operationId: getSubscriptionSelf
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/Response_controller.SubscriptionSelfData'
application/xml:
schema:
$ref: '#/components/schemas/Response_controller.SubscriptionSelfData'
description: OK
security:
- accessToken: []
newApiUser: []
- newApiUser: []
sessionAuth: []
summary: Get Subscription Self
tags:
- Subscription
/api/subscription/self/preference:
put:
operationId: updateSubscriptionPreference
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/BillingPreferenceRequest'
description: Request body for dto.BillingPreferenceRequest
required: true
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/Response_dto.BillingPreferenceData'
application/xml:
schema:
$ref: '#/components/schemas/Response_dto.BillingPreferenceData'
description: OK
security:
- accessToken: []
newApiUser: []
- newApiUser: []
sessionAuth: []
summary: Update Subscription Preference
tags:
- Subscription
components:
schemas:
Response_dto.PageData-model.SubscriptionOrder:
description: Response_dto.PageData-model.SubscriptionOrder schema
properties:
data:
properties:
items:
items:
$ref: '#/components/schemas/SubscriptionOrder'
type:
- array
- 'null'
page:
type: integer
page_size:
type: integer
total:
type: integer
required:
- items
- page
- page_size
- total
type: object
message:
type: string
success:
type: boolean
required:
- data
- message
- success
type: object
SubscriptionPlan:
properties:
allow_balance_pay:
nullable: true
type: boolean
allow_wallet_overflow:
nullable: true
type: boolean
created_at:
format: int64
type: integer
creem_product_id:
type: string
currency:
type: string
custom_seconds:
format: int64
type: integer
downgrade_group:
type: string
duration_unit:
type: string
duration_value:
type: integer
enabled:
type: boolean
free_rate_limit_window_pct:
type: integer
id:
type: integer
max_purchase_per_user:
type: integer
nowpayments_plan_id:
type: string
price_amount:
format: double
type: number
quota_reset_custom_seconds:
format: int64
type: integer
quota_reset_period:
type: string
sort_order:
type: integer
stripe_price_id:
type: string
subtitle:
type: string
title:
type: string
total_amount:
format: int64
type: integer
updated_at:
format: int64
type: integer
upgrade_group:
type: string
waffo_pancake_product_id:
type: string
required:
- allow_balance_pay
- allow_wallet_overflow
- created_at
- creem_product_id
- currency
- custom_seconds
- downgrade_group
- duration_unit
- duration_value
- enabled
- free_rate_limit_window_pct
- id
- max_purchase_per_user
- nowpayments_plan_id
- price_amount
- quota_reset_custom_seconds
- quota_reset_period
- sort_order
- stripe_price_id
- subtitle
- title
- total_amount
- updated_at
- upgrade_group
- waffo_pancake_product_id
type: object
BillingPreferenceData:
properties:
billing_preference:
type: string
required:
- billing_preference
type: object
SubscriptionSummary:
properties:
plan_title:
type: string
subscription:
$ref: '#/components/schemas/UserSubscription'
required:
- plan_title
- subscription
type: object
SubscriptionPlanDTO:
properties:
estimated_total_usd:
format: double
type: number
plan:
$ref: '#/components/schemas/SubscriptionPlan'
quota_per_reset_usd:
format: double
type: number
required:
- estimated_total_usd
- plan
- quota_per_reset_usd
type: object
SubscriptionOrder:
properties:
complete_time:
format: int64
type: integer
create_time:
format: int64
type: integer
id:
type: integer
invoice_url:
type: string
money:
format: double
type: number
payment_method:
type: string
payment_provider:
type: string
plan_id:
type: integer
status:
type: string
trade_no:
type: string
user_id:
type: integer
required:
- complete_time
- create_time
- id
- invoice_url
- money
- payment_method
- payment_provider
- plan_id
- status
- trade_no
- user_id
type: object
BillingPreferenceRequest:
description: BillingPreferenceRequest schema
properties:
billing_preference:
type: string
required:
- billing_preference
type: object
SubscriptionSelfData:
properties:
all_subscriptions:
items:
$ref: '#/components/schemas/SubscriptionSummary'
type: array
billing_preference:
type: string
subscriptions:
items:
$ref: '#/components/schemas/SubscriptionSummary'
type: array
required:
- all_subscriptions
- billing_preference
- subscriptions
type: object
Response_dto.BillingPreferenceData:
description: Response_dto.BillingPreferenceData schema
properties:
data:
$ref: '#/components/schemas/BillingPreferenceData'
message:
type: string
success:
type: boolean
required:
- data
- message
- success
type: object
Response_controller.SubscriptionSelfData:
description: Response_controller.SubscriptionSelfData schema
properties:
data:
$ref: '#/components/schemas/SubscriptionSelfData'
message:
type: string
success:
type: boolean
required:
- data
- message
- success
type: object
Response_Array-controller.SubscriptionPlanDTO:
description: Response_Array-controller.SubscriptionPlanDTO schema
properties:
data:
items:
$ref: '#/components/schemas/SubscriptionPlanDTO'
type:
- array
- 'null'
message:
type: string
success:
type: boolean
required:
- data
- message
- success
type: object
UserSubscription:
properties:
allow_wallet_overflow:
type: boolean
amount_total:
format: int64
type: integer
amount_used:
format: int64
type: integer
created_at:
format: int64
type: integer
downgrade_group:
type: string
end_time:
format: int64
type: integer
id:
type: integer
last_reset_time:
format: int64
type: integer
next_reset_time:
format: int64
type: integer
plan_id:
type: integer
prev_user_group:
type: string
source:
type: string
start_time:
format: int64
type: integer
status:
type: string
updated_at:
format: int64
type: integer
upgrade_group:
type: string
user_id:
type: integer
required:
- allow_wallet_overflow
- amount_total
- amount_used
- created_at
- downgrade_group
- end_time
- id
- last_reset_time
- next_reset_time
- plan_id
- prev_user_group
- source
- start_time
- status
- updated_at
- upgrade_group
- user_id
type: object
securitySchemes:
accessToken:
description: System access token for dashboard API routes. Must be paired with New-Api-User header.
in: header
name: Authorization
type: apiKey
anthropicApiKey:
description: Anthropic-style API key. Used by /v1/messages and /v1/models.
in: header
name: x-api-key
type: apiKey
bearerAuth:
description: API token (sk-...). Used by relay routes (/v1/*) and token-based query endpoints.
scheme: bearer
type: http
newApiUser:
description: User ID header. Required together with the access token or session cookie for dashboard API routes.
in: header
name: New-Api-User
type: apiKey
sessionAuth:
description: Session cookie from /api/user/login. Used by dashboard routes as an alternative to access token.
in: cookie
name: session
type: apiKey