RouteMyAgent Subscription API
The Subscription API from RouteMyAgent — 7 operation(s) for subscription.
The Subscription API from RouteMyAgent — 7 operation(s) 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/routemyagent-dev:routemyagent-dev-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:
contact:
email: support@routemyagent.dev
name: RouteMyAgent Support
url: https://routemyagent.dev/guides/x402
description: Free account-based stateless routing and MCP model help, with optional one-time support. Provider inference is billed separately. The small local OS-vault app sends approved provider-key envelopes and model content through RMA. RMA decrypts/processes the selected key and request/response content transiently without persisting new routed payloads. Account/token-hash/consent/support-payment metadata and historical archives remain separate. Fresh processing consent is required; V2 direct AgentNet configurations are not migrated.
title: RouteMyAgent free account routing Subscription API
version: 0.6.1
servers:
- url: https://routemyagent.dev
tags:
- name: Subscription
paths:
/api/subscription:
get:
description: Historical billing management only; not a prerequisite or entitlement check for free routing. Existing uncertain payment identities may be reconciled with Stripe. This read never submits inference, creates a purchase or converts money to support.
operationId: getConnectMembership
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/SubscriptionStatus'
description: Current subscription snapshot, including inactive and suspended states.
'401':
description: Missing or invalid authentication.
'403':
description: Credential cannot manage this account, origin denied, or account suspended where suspension is not explicitly allowed.
'503':
description: Storage or billing service unavailable. Preserve the original operation identity; do not infer payment or access from an uncertain response.
security:
- ownerBearer: []
summary: Read historical owner subscription and payment state
tags:
- Subscription
/api/subscription/calls:
get:
description: Historical hosted allowance, fee, receipt or usage records under their existing account authorization. Reading does not generate inference, replay work, authorize payment or meter new local model calls. Existing amounts/rights remain unchanged. For existing records/rights only; not the current offer. Account-scoped read using owner session, private router token, or configured MCP OAuth token with mcp:read. Suspended accounts are denied. Service records are local routing evidence, not independently verified provider or payment receipts. Inference is never retried by this endpoint.
operationId: listConnectCallRecords
responses:
'200':
content:
application/json:
schema:
properties:
automatic_retry:
const: false
type: boolean
calls:
items:
$ref: '#/components/schemas/SubscriptionCallReceipt'
maxItems: 20
type: array
limit:
const: 20
type: integer
required:
- calls
- limit
- automatic_retry
type: object
description: Latest records ordered by creation time and ID descending.
'401':
description: Missing or invalid authentication.
'403':
description: Credential cannot manage this account, origin denied, or account suspended where suspension is not explicitly allowed.
'503':
description: Storage or billing service unavailable. Preserve the original operation identity; do not infer payment or access from an uncertain response.
security:
- ownerBearer: []
- apiKey: []
- mcpReadBearer: []
summary: 'Historical account records only: Historical subscription records: Read the…'
tags:
- Subscription
/api/subscription/calls/{call_id}:
get:
description: Historical hosted allowance, fee, receipt or usage records under their existing account authorization. Reading does not generate inference, replay work, authorize payment or meter new local model calls. Existing amounts/rights remain unchanged. For existing records/rights only; not the current offer. Account-scoped read; no payment, inference retry or response recovery is submitted. Finished service records are retained for 30 days after their paid period ends. An absent record does not authorize replay of a model request.
operationId: getConnectCallRecord
parameters:
- description: Opaque call identity from x-agentnet-subscription-call-id or the calls list.
in: path
name: call_id
required: true
schema:
type: string
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/SubscriptionCallReceipt'
description: Retained monthly service-call record.
'401':
description: Missing or invalid authentication.
'403':
description: Credential cannot manage this account, origin denied, or account suspended where suspension is not explicitly allowed.
'404':
description: No retained record with this ID belongs to the authenticated account.
'503':
description: Storage or billing service unavailable. Preserve the original operation identity; do not infer payment or access from an uncertain response.
security:
- ownerBearer: []
- apiKey: []
- mcpReadBearer: []
summary: 'Historical account records only: Historical subscription records: Read one…'
tags:
- Subscription
/api/subscription/cancel:
post:
description: Owner-only billing management, including suspended finance-only access. Does not expose provider credentials, erase native configuration or revoke provider keys. Use explicit cancel_at_period_end:true; reconcile recorded state before treating renewal as canceled. Independent native connector use and historical rights remain separate.
operationId: cancelConnectRenewal
requestBody:
content:
application/json:
schema:
additionalProperties: false
properties:
cancel_at_period_end:
const: true
type: boolean
idempotency_key:
description: Account-scoped operation identity. Preserve and reuse this value after uncertainty; do not create a replacement payment.
maxLength: 100
minLength: 16
pattern: ^[A-Za-z0-9_-]+$
type: string
required:
- idempotency_key
- cancel_at_period_end
type: object
required: true
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/SubscriptionStatus'
description: Reconciled subscription snapshot.
'400':
description: Invalid operation identity or cancellation flag is not true.
'401':
description: Missing or invalid authentication.
'403':
description: Credential cannot manage this account, origin denied, or account suspended where suspension is not explicitly allowed.
'409':
description: No subscription is recorded.
'413':
description: Request body exceeds 1024 bytes.
'422':
description: Malformed or unknown request fields.
'503':
description: Storage or billing service unavailable. Preserve the original operation identity; do not infer payment or access from an uncertain response.
security:
- ownerBearer: []
summary: Cancel subscription renewal at the paid-period end
tags:
- Subscription
/api/subscription/checkout:
post:
deprecated: true
description: No new subscription or trial is created. Existing owner billing history, management and cancellation remain separate.
operationId: retiredSubscriptionCheckout
responses:
'410':
description: This purchase/activation route is retired; use free account setup at /app.
summary: 'Retired: routing is free with an account'
tags:
- Subscription
/api/subscription/manage:
post:
description: Owner-only billing management, including suspended finance-only access. Does not expose provider credentials, erase native configuration or revoke provider keys. Requires a recorded Stripe customer; no subscription is created.
operationId: createConnectBillingPortal
requestBody:
content:
application/json:
schema:
additionalProperties: false
properties:
idempotency_key:
description: Account-scoped operation identity. Preserve and reuse this value after uncertainty; do not create a replacement payment.
maxLength: 100
minLength: 16
pattern: ^[A-Za-z0-9_-]+$
type: string
required:
- idempotency_key
type: object
required: true
responses:
'200':
content:
application/json:
schema:
properties:
url:
format: uri
pattern: ^https://billing\.stripe\.com/
type: string
required:
- url
type: object
description: Validated Stripe billing portal URL.
'400':
description: Invalid operation identity or billing identity.
'401':
description: Missing or invalid authentication.
'403':
description: Credential cannot manage this account, origin denied, or account suspended where suspension is not explicitly allowed.
'409':
description: No subscription customer is recorded.
'413':
description: Request body exceeds 1024 bytes.
'422':
description: Malformed or unknown request fields.
'503':
description: Storage or billing service unavailable. Preserve the original operation identity; do not infer payment or access from an uncertain response.
security:
- ownerBearer: []
summary: Open the recorded owner’s subscription billing portal
tags:
- Subscription
/api/subscription/trial:
post:
deprecated: true
description: No new subscription or trial is created. Existing owner billing history, management and cancellation remain separate.
operationId: retiredTrialActivation
responses:
'410':
description: This purchase/activation route is retired; use free account setup at /app.
summary: 'Retired: routing is free with an account'
tags:
- Subscription
components:
schemas:
SubscriptionStatus:
description: Historical subscription/payment snapshot, retained for billing reconciliation and cancellation. Not an entitlement for free routing. Historical price, period and usage fields retain their original monetary meaning.
properties:
account_suspended:
type: boolean
active:
type: boolean
can_checkout:
type: boolean
concurrent_requests:
minimum: 0
type: integer
currency:
const: USD
type: string
included_calls:
minimum: 0
type: integer
interval:
const: month
type: string
latest_checkout:
oneOf:
- type: 'null'
- properties:
created_at:
description: Unix seconds.
minimum: 0
type: integer
state:
enum:
- pending
- complete
- expired
type: string
required:
- state
- created_at
type: object
local_access:
$ref: '#/components/schemas/ManagedRoutingAccess'
plan_id:
type: string
price_cents:
minimum: 0
type: integer
provider_inference_included:
const: false
type: boolean
receipt_retention_days_after_period:
const: 30
type: integer
service_access:
type: boolean
subscription:
oneOf:
- type: 'null'
- properties:
cancel_at_period_end:
type: boolean
current_period_end:
description: Unix seconds.
minimum: 0
type: integer
current_period_start:
description: Unix seconds.
minimum: 0
type: integer
status:
enum:
- active
- incomplete
- incomplete_expired
- trialing
- past_due
- canceled
- unpaid
- paused
type: string
required:
- status
- cancel_at_period_end
- current_period_start
- current_period_end
type: object
terms_revision:
type: string
usage:
properties:
byte_limit:
minimum: 0
type: integer
bytes_remaining:
minimum: 0
type: integer
bytes_reserved:
minimum: 0
type: integer
bytes_used:
minimum: 0
type: integer
completed:
minimum: 0
type: integer
included:
minimum: 0
type: integer
period_end:
description: Unix seconds.
minimum: 0
type: integer
period_start:
description: Unix seconds.
minimum: 0
type: integer
remaining:
minimum: 0
type: integer
reserved:
minimum: 0
type: integer
required:
- completed
- reserved
- remaining
- byte_limit
- bytes_used
- bytes_reserved
- bytes_remaining
type: object
required:
- plan_id
- price_cents
- currency
- interval
- included_calls
- concurrent_requests
- terms_revision
- active
- service_access
- account_suspended
- subscription
- usage
- can_checkout
- latest_checkout
- receipt_retention_days_after_period
- provider_inference_included
type: object
SubscriptionCallReceipt:
properties:
additional_service_fee_units:
const: 0
type: integer
billing_mode:
const: monthly_included
type: string
call_id:
type: string
created_at:
description: Unix seconds.
minimum: 0
type: integer
finished_at:
type:
- integer
- 'null'
independently_verified:
const: false
type: boolean
model:
type: string
paid_period_id:
type: string
payload_accounting:
description: Processed request and accepted response bytes; an interrupted process conservatively charges its reserved ceiling, not measured network traffic.
type: string
provider:
type: string
provider_inference_billed_separately:
const: true
type: boolean
reason:
type:
- string
- 'null'
receipt_kind:
const: routemyagent_subscription_service_record
type: string
request_bytes:
minimum: 0
type: integer
request_sha256:
pattern: ^[a-f0-9]{64}$
type: string
reserved_payload_ceiling:
minimum: 0
type: integer
response_bytes:
type:
- integer
- 'null'
state:
enum:
- reserved
- completed
- released
type: string
required:
- receipt_kind
- independently_verified
- call_id
- paid_period_id
- provider
- model
- request_sha256
- state
- reason
- created_at
- finished_at
- request_bytes
- response_bytes
- reserved_payload_ceiling
- payload_accounting
- billing_mode
- additional_service_fee_units
- provider_inference_billed_separately
type: object
ManagedRoutingAccess:
description: Free managed routing account status. Payment, trial and optional support do not grant access. Not provider quota or proof of task quality.
properties:
account_required:
const: true
active:
type: boolean
billing_mode:
const: free_account
card_required_for_trial:
const: false
inference_payloads_persisted:
const: false
local_inference_metered:
const: false
per_call_fee:
const: false
prepaid_balance_policy:
type: string
price_cents:
const: 0
processing_consent_revision:
const: 2026-10-26-transient-v1
provider_credentials_persisted:
const: false
provider_credentials_received:
const: true
provider_inference_included:
const: false
scope:
type: string
service:
const: managed_stateless_routing
state:
enum:
- free
- suspended
terms_revision:
type: string
trial:
type: 'null'
trial_auto_converts:
const: false
trial_available:
const: false
trial_days:
type: 'null'
required:
- service
- active
- state
- trial
- trial_available
- trial_days
- price_cents
- terms_revision
- card_required_for_trial
- trial_auto_converts
- provider_inference_included
- provider_credentials_received
- per_call_fee
- local_inference_metered
type: object
securitySchemes:
agentManagementBearer:
description: Private setup/management credential accepted by existing authentication; keep it separate from provider keys and inference authorization.
scheme: bearer
type: http
apiKey:
description: Private RouteMyAgent router token (an_ prefix) created by the account owner. This is not an NVIDIA key, wallet secret or CDP credential. Obtain it through the signed-in RouteMyAgent dashboard. Public unsigned quote requests do not require it.
scheme: bearer
type: http
connectorBearer:
description: New consent-registered revocable RMA token from the PRIVATE V3 bootstrap. Legacy tokens do not acquire this scope.
scheme: bearer
type: http
mcpReadBearer:
description: Configured resource-bound MCP OAuth token with mcp:read; accepted for account-scoped call-record reads only, never owner billing management.
scheme: bearer
type: http
nvidiaByok:
description: Your NVIDIA API key, required for inference execution and same-request replay. Never put it in prompts, tool arguments, payment metadata or URLs. Receipt status needs only the original private request ID.
in: header
name: X-NVIDIA-API-Key
type: apiKey
ownerBearer:
description: Authenticated account owner. Existing role, account and origin checks are required; a provider key is never an owner credential.
scheme: bearer
type: http
externalDocs:
description: Managed routing setup and boundaries
url: https://routemyagent.dev/docs
x-local-credentials:
guide: /keys
inference_execution: customer_connector_direct_to_provider
legacy_file_tools: /downloads/routemyagent-key-manager.html
mode: customer_local_router
new_provider_key_destination: native_os_credential_store
new_server_attachments: false
platform_verification: Preview package/runtime evidence must be reported separately; no all-platform or zero-knowledge certification.
provider_credentials_in_connection_document: false
x-provider-connection-scope: Each private V3 bootstrap selects provider/model/client/mode after fresh processing consent. The local app saves provider keys; RMA decrypts and processes approved keys and model content transiently. No new payload persistence; account/billing/consent metadata and historical archives remain separate.
x-provider-data-policy-audited: false