RouteMyAgent Connect API
The Connect API from RouteMyAgent — 7 operation(s) for connect.
The Connect API from RouteMyAgent — 7 operation(s) for connect.
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-connect-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 Connect API
version: 0.6.1
servers:
- url: https://routemyagent.dev
tags:
- name: Connect
paths:
/api/connect/session:
delete:
operationId: revokeThisConnectorSession
responses:
'200':
description: This connection is revoked. No provider key is deleted or uploaded.
'401':
description: Invalid managed connection token.
security:
- connectorBearer: []
summary: Revoke only the calling managed RMA token
tags:
- Connect
get:
operationId: readConnectorSession
responses:
'200':
description: tenant_id,connection_id,token_sha256,server_time,envelope_audience,envelope_max_age_seconds300,envelope_key{kid,suite,public_key}. No provider key belongs on this request.
'401':
description: Invalid/revoked authorization or provider envelope.
'403':
description: Suspension, consent or provider binding denied.
'404':
description: Unsupported explicit provider/route.
'413':
description: Payload/header admission bound exceeded.
'429':
description: Shared admission/provider limit; inspect Retry-After.
'502':
description: Transport failure; no automatic inference replay.
security:
- connectorBearer: []
summary: Read authenticated session and public HPKE key facts, never provider credentials
tags:
- Connect
/connect/{provider}/claude/v1/messages:
post:
description: Use the small RMA Connect app. RMA decrypts the request-scoped credential envelope only after authentication, consent, entitlement and admission; no new provider-key/prompt/response persistence. Provider inference is billed separately. No automatic retry/fallback. Provider/client limits and support still apply; count_tokens never fabricates an unsupported exact count.
operationId: connectclaude_v1_messages
parameters:
- in: path
name: provider
required: true
schema:
enum:
- nvidia
- cerebras
type: string
- description: Sensitive HPKE envelope generated by the local connector. Never a plaintext key, tool/model argument, URL or log value. Authenticated tenant/token/provider/audience and expiry are bound.
in: header
name: x-rma-provider-envelope
required: true
schema:
maxLength: 12288
pattern: ^rma1\.[0-9a-f]{32}\.[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+$
type: string
x-sensitive: true
requestBody:
content:
application/json:
schema:
type: object
required: true
responses:
'200':
description: Selected-provider response or SSE stream; MCP offers router_models/router_delegate only, no response archive.
'401':
description: Invalid/revoked authorization or provider envelope.
'403':
description: Suspension, consent or provider binding denied.
'404':
description: Unsupported explicit provider/route.
'413':
description: Payload/header admission bound exceeded.
'429':
description: Shared admission/provider limit; inspect Retry-After.
'502':
description: Transport failure; no automatic inference replay.
security:
- connectorBearer: []
summary: Transient selected-provider claude/v1/messages
tags:
- Connect
/connect/{provider}/claude/v1/messages/count_tokens:
post:
description: Use the small RMA Connect app. RMA decrypts the request-scoped credential envelope only after authentication, consent, entitlement and admission; no new provider-key/prompt/response persistence. Provider inference is billed separately. No automatic retry/fallback. Provider/client limits and support still apply; count_tokens never fabricates an unsupported exact count.
operationId: connectclaude_v1_messages_count_tokens
parameters:
- in: path
name: provider
required: true
schema:
enum:
- nvidia
- cerebras
type: string
- description: Sensitive HPKE envelope generated by the local connector. Never a plaintext key, tool/model argument, URL or log value. Authenticated tenant/token/provider/audience and expiry are bound.
in: header
name: x-rma-provider-envelope
required: true
schema:
maxLength: 12288
pattern: ^rma1\.[0-9a-f]{32}\.[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+$
type: string
x-sensitive: true
requestBody:
content:
application/json:
schema:
type: object
required: true
responses:
'200':
description: Selected-provider response or SSE stream; MCP offers router_models/router_delegate only, no response archive.
'401':
description: Invalid/revoked authorization or provider envelope.
'403':
description: Suspension, consent or provider binding denied.
'404':
description: Unsupported explicit provider/route.
'413':
description: Payload/header admission bound exceeded.
'429':
description: Shared admission/provider limit; inspect Retry-After.
'502':
description: Transport failure; no automatic inference replay.
security:
- connectorBearer: []
summary: Transient selected-provider claude/v1/messages/count_tokens
tags:
- Connect
/connect/{provider}/mcp:
post:
description: Use the small RMA Connect app. RMA decrypts the request-scoped credential envelope only after authentication, consent, entitlement and admission; no new provider-key/prompt/response persistence. Provider inference is billed separately. No automatic retry/fallback. Provider/client limits and support still apply; count_tokens never fabricates an unsupported exact count.
operationId: connectmcp
parameters:
- in: path
name: provider
required: true
schema:
enum:
- nvidia
- cerebras
type: string
- description: Sensitive HPKE envelope generated by the local connector. Never a plaintext key, tool/model argument, URL or log value. Authenticated tenant/token/provider/audience and expiry are bound.
in: header
name: x-rma-provider-envelope
required: true
schema:
maxLength: 12288
pattern: ^rma1\.[0-9a-f]{32}\.[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+$
type: string
x-sensitive: true
requestBody:
content:
application/json:
schema:
type: object
required: true
responses:
'200':
description: Selected-provider response or SSE stream; MCP offers router_models/router_delegate only, no response archive.
'401':
description: Invalid/revoked authorization or provider envelope.
'403':
description: Suspension, consent or provider binding denied.
'404':
description: Unsupported explicit provider/route.
'413':
description: Payload/header admission bound exceeded.
'429':
description: Shared admission/provider limit; inspect Retry-After.
'502':
description: Transport failure; no automatic inference replay.
security:
- connectorBearer: []
summary: Transient selected-provider mcp
tags:
- Connect
/connect/{provider}/v1/chat/completions:
post:
description: Use the small RMA Connect app. RMA decrypts the request-scoped credential envelope only after authentication, consent, entitlement and admission; no new provider-key/prompt/response persistence. Provider inference is billed separately. No automatic retry/fallback. Provider/client limits and support still apply; count_tokens never fabricates an unsupported exact count.
operationId: connectv1_chat_completions
parameters:
- in: path
name: provider
required: true
schema:
enum:
- nvidia
- cerebras
type: string
- description: Sensitive HPKE envelope generated by the local connector. Never a plaintext key, tool/model argument, URL or log value. Authenticated tenant/token/provider/audience and expiry are bound.
in: header
name: x-rma-provider-envelope
required: true
schema:
maxLength: 12288
pattern: ^rma1\.[0-9a-f]{32}\.[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+$
type: string
x-sensitive: true
requestBody:
content:
application/json:
schema:
type: object
required: true
responses:
'200':
description: Selected-provider response or SSE stream; MCP offers router_models/router_delegate only, no response archive.
'401':
description: Invalid/revoked authorization or provider envelope.
'403':
description: Suspension, consent or provider binding denied.
'404':
description: Unsupported explicit provider/route.
'413':
description: Payload/header admission bound exceeded.
'429':
description: Shared admission/provider limit; inspect Retry-After.
'502':
description: Transport failure; no automatic inference replay.
security:
- connectorBearer: []
summary: Transient selected-provider v1/chat/completions
tags:
- Connect
/connect/{provider}/v1/models:
get:
description: Use the small RMA Connect app. RMA decrypts the request-scoped credential envelope only after authentication, consent, entitlement and admission; no new provider-key/prompt/response persistence. Provider inference is billed separately. No automatic retry/fallback. Provider/client limits and support still apply; count_tokens never fabricates an unsupported exact count.
operationId: connectv1_models
parameters:
- in: path
name: provider
required: true
schema:
enum:
- nvidia
- cerebras
type: string
- description: Sensitive HPKE envelope generated by the local connector. Never a plaintext key, tool/model argument, URL or log value. Authenticated tenant/token/provider/audience and expiry are bound.
in: header
name: x-rma-provider-envelope
required: true
schema:
maxLength: 12288
pattern: ^rma1\.[0-9a-f]{32}\.[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+$
type: string
x-sensitive: true
responses:
'200':
description: Selected-provider response or SSE stream; MCP offers router_models/router_delegate only, no response archive.
'401':
description: Invalid/revoked authorization or provider envelope.
'403':
description: Suspension, consent or provider binding denied.
'404':
description: Unsupported explicit provider/route.
'413':
description: Payload/header admission bound exceeded.
'429':
description: Shared admission/provider limit; inspect Retry-After.
'502':
description: Transport failure; no automatic inference replay.
security:
- connectorBearer: []
summary: Transient selected-provider v1/models
tags:
- Connect
/connect/{provider}/v1/responses:
post:
description: Use the small RMA Connect app. RMA decrypts the request-scoped credential envelope only after authentication, consent, entitlement and admission; no new provider-key/prompt/response persistence. Provider inference is billed separately. No automatic retry/fallback. Provider/client limits and support still apply; count_tokens never fabricates an unsupported exact count.
operationId: connectv1_responses
parameters:
- in: path
name: provider
required: true
schema:
enum:
- nvidia
- cerebras
type: string
- description: Sensitive HPKE envelope generated by the local connector. Never a plaintext key, tool/model argument, URL or log value. Authenticated tenant/token/provider/audience and expiry are bound.
in: header
name: x-rma-provider-envelope
required: true
schema:
maxLength: 12288
pattern: ^rma1\.[0-9a-f]{32}\.[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+$
type: string
x-sensitive: true
requestBody:
content:
application/json:
schema:
type: object
required: true
responses:
'200':
description: Selected-provider response or SSE stream; MCP offers router_models/router_delegate only, no response archive.
'401':
description: Invalid/revoked authorization or provider envelope.
'403':
description: Suspension, consent or provider binding denied.
'404':
description: Unsupported explicit provider/route.
'413':
description: Payload/header admission bound exceeded.
'429':
description: Shared admission/provider limit; inspect Retry-After.
'502':
description: Transport failure; no automatic inference replay.
security:
- connectorBearer: []
summary: Transient selected-provider v1/responses
tags:
- Connect
components:
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