Work with this as data
Every API here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for apis
7 MCP tools reach this
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.
Call it yourself
curl for this page
This API
curl "https://apis.io/api/v1/apis/rozo-ai:rozo-ai-orders-api"
All apis
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.
Get an API 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 Specification
openapi: 3.2.0
info:
title: ROZO Funding API (native gas, gas + stablecoin, Stellar…
version: 1.2.0
x-contract-id: rozo-funding-v1
description: 'One stablecoin payment from the user funds one of three delivery modes:
| mode | the user receives |
| --- | --- |
| `native_only` | the destination chain''s native coin only (ETH, SOL, XLM, ...). No stablecoin output exists. |
| `native_and_stable` | one native output and one stablecoin output, same chain or two supported chains. Each output is tracked and confirmed separately. |
| `stellar_onboarding` | a new or not-yet-ready Stellar G-account gets a USDC trustline and USDC (and optionally spendable XLM) through one funding signature by the user. |
**Status (1.2.0, 2026-10-13)**: live. The keyless public app
`rozoNativeGas` offers `stellar_onboarding` and `native_only` (XLM) to
everyone. Apps with an API key are granted modes, routes and limits per
app; `native_and_stable` is available on request. Discover what is
actually available with `GET /funding/capabilities`; never hard-code chains,
assets, minimums or maximums from this document. **Changes in 1.2.0** (additive, no field removed): keyless
`stellar_onboarding` with one user signature; ownership proof,
`signerProfileId` and `signerPreflight` are optional; `usdGas` fixed XLM
tiers with `gasOptions` in capabilities; USDC or USDT on any enabled EVM
source chain accepted 1:1; per-IP daily source limit for keyless callers. ## Authentication
Every endpoint, including `GET`, accepts `X-API-Key` (server-to-server). **Keyless public app `rozoNativeGas`**: callers that have not
registered may call `GET /funding/capabilities`, `POST /funding/quotes`,
`GET /funding/quotes/{quoteId}`, `POST /funding/orders` and
`GET /funding/orders/{fundingId}` WITHOUT a key. Such calls run as app
`rozoNativeGas` (`stellar_onboarding` and `native_only`; 1 to 1000 USD
per order, 2000 USD per client IP per day, 10000 USD per day for the app;
XLM budget up to 10 USD per order), are rate limited per client IP
(`429 rate_limited`), and `userRef` is replaced by a per-IP value. Keep the `fundingId` private: it is the only handle to a keyless
order (anyone holding it can read that order). The public app holds at
most a few unpaid orders at once; when busy, quotes or orders answer
`limit_exceeded` / `inventory_unavailable`: retry later or register an app. Lookup by `orderId` and ownership proofs always need a
key. **Keyless Stellar onboarding (1.2.0)**: the public app''s grant lists
`stellar_onboarding` (see capabilities), so a keyless
caller can also run Path B end to end: quote and order (no
`ownershipProofId`, `signerProfileId` or `signerPreflight` needed), pay,
then `POST /funding/orders/{fundingId}/signing-requests`,
`GET /funding/signing-requests/{signingRequestId}` and
`POST /funding/signing-requests/{signingRequestId}/submit`. The
`fundingId` is the credential; `walletAddress` must equal the order''s
Stellar receiver and only that address''s signature on the exact template
is accepted, so the user signs exactly once. Signing and submit are rate
limited per client IP. The key''s app is authoritative: a body `appId` is ignored and never widens
access. Browsers and agents must call through their own trusted backend;
never ship the API key to a client. The API key does not authorize spending
from the user''s wallet: the user pays the source deposit and signs Stellar
transactions themselves. ## Flow
1. `GET /funding/capabilities`: modes, source assets, outputs, limits. 2. Optional, Stellar onboarding with an API key only:
`POST /funding/ownership/challenges`, the user signs the returned
message, `POST /funding/ownership/verify`. Not needed: the claim
transaction itself must carry the receiver''s signature. 3. `POST /funding/quotes`: read-only plan with every fee and per-output
minimum. No deposit address, nothing reserved. 4. Show the plan; the user approves it. 5. `POST /funding/orders` with `quoteId`, the quote''s `planDigest` and an
`Idempotency-Key`. Inventory and limits are reserved atomically and a
one-time deposit instruction is returned. 6.'
contact:
name: ROZO
url: https://docs.rozo.ai
license:
name: Proprietary
url: https://rozo.ai
servers:
- url: https://intentapiv4.rozo.ai/functions/v1/payment-api
description: Production
security:
- apiKey: []
tags:
- name: Orders
description: Payable orders, per-leg status and recovery.
paths:
/funding/orders:
get:
tags:
- Orders
operationId: getFundingOrderByOrderId
summary: Look up an order by the caller's own orderId
parameters:
- name: orderId
in: query
required: true
schema:
type: string
minLength: 1
maxLength: 128
pattern: ^[A-Za-z0-9_.:-]+$
responses:
'200':
description: The order
content:
application/json:
schema:
$ref: '#/components/schemas/Order'
'401':
$ref: '#/components/responses/Error'
'404':
$ref: '#/components/responses/Error'
'503':
$ref: '#/components/responses/Error'
post:
tags:
- Orders
operationId: createFundingOrder
security:
- apiKey: []
- {}
summary: Turn an approved quote into a payable order
description: 'Atomically re-checks the app grant, the quote (unexpired, unconsumed,
same planDigest), the ownership proof (Stellar onboarding), limits and
inventory; reserves inventory and quota; consumes the quote and
returns the one-time deposit instruction and the planned legs.
Retrying with the same `Idempotency-Key` and the same body returns the
same order (`200`). The same key with a different body returns
`409 idempotency_conflict`. A consumed quote cannot create a second
order.'
parameters:
- $ref: '#/components/parameters/IdempotencyKey'
- $ref: '#/components/parameters/CorrelationId'
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/CreateOrderRequest'
responses:
'201':
description: Order created
content:
application/json:
schema:
$ref: '#/components/schemas/Order'
'200':
description: Idempotent replay of an existing order
content:
application/json:
schema:
$ref: '#/components/schemas/Order'
'400':
$ref: '#/components/responses/Error'
'401':
$ref: '#/components/responses/Error'
'403':
$ref: '#/components/responses/Error'
'404':
$ref: '#/components/responses/Error'
'409':
$ref: '#/components/responses/Error'
'410':
$ref: '#/components/responses/Error'
'500':
$ref: '#/components/responses/Error'
'422':
$ref: '#/components/responses/Error'
'503':
$ref: '#/components/responses/Error'
/funding/orders/{fundingId}:
get:
tags:
- Orders
operationId: getFundingOrder
security:
- apiKey: []
- {}
summary: Order status, per-leg status, pending user actions and recovery
description: 'Only the app that created the order can read it; knowing a deposit or
receiver address grants no access.'
parameters:
- $ref: '#/components/parameters/FundingId'
responses:
'200':
description: The order
content:
application/json:
schema:
$ref: '#/components/schemas/Order'
'401':
$ref: '#/components/responses/Error'
'404':
$ref: '#/components/responses/Error'
'503':
$ref: '#/components/responses/Error'
webhooks:
funding.action_required:
post:
operationId: webhookFundingActionRequired
summary: The user must act (pay the source, sign a Stellar transaction)
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/FundingWebhookEvent'
responses:
'200':
description: Acknowledged
tags:
- Orders
funding.leg_confirmed:
post:
operationId: webhookFundingLegConfirmed
summary: One output was confirmed on chain (not the whole order)
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/FundingWebhookEvent'
responses:
'200':
description: Acknowledged
tags:
- Orders
funding.completed:
post:
operationId: webhookFundingCompleted
summary: Every output is confirmed; the only terminal success event
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/FundingWebhookEvent'
responses:
'200':
description: Acknowledged
tags:
- Orders
funding.recovery_required:
post:
operationId: webhookFundingRecoveryRequired
summary: The order needs operator recovery (late/short payment, failed leg, expiry)
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/FundingWebhookEvent'
responses:
'200':
description: Acknowledged
tags:
- Orders
components:
schemas:
NextAction:
type: string
enum:
- none
- retry
- requote
- verify_ownership
- change_request
- contact_support
- poll_order
- rebuild_signing_request
FundingWebhookEvent:
type: object
required:
- eventId
- type
- fundingId
- orderId
- appId
- status
- stateVersion
- occurredAt
description: 'Signed with the app''s webhook secret (same HMAC headers as payment
webhooks). Deduplicate on `eventId`; events may be retried and arrive
out of order: compare `stateVersion` and re-read the order.
'
properties:
eventId:
type: string
format: uuid
type:
type: string
enum:
- funding.action_required
- funding.leg_confirmed
- funding.completed
- funding.recovery_required
fundingId:
type: string
format: uuid
orderId:
type: string
appId:
type: string
legId:
type:
- string
- 'null'
status:
$ref: '#/components/schemas/OrderStatus'
stateVersion:
type: integer
occurredAt:
type: string
format: date-time
SourceState:
type: object
required:
- status
properties:
status:
type: string
enum:
- awaiting
- detected
- confirming
- confirmed
- late
- short
- over
- wrong_asset
receivedAmount:
oneOf:
- $ref: '#/components/schemas/Decimal'
- type: 'null'
txHash:
type:
- string
- 'null'
confirmedAt:
type:
- string
- 'null'
format: date-time
Repricing:
type: object
required:
- quotedAmount
- receivedAmount
- pricedAmount
- excessAmount
- quotedPlanDigest
properties:
quotedAmount:
$ref: '#/components/schemas/Decimal'
receivedAmount:
$ref: '#/components/schemas/Decimal'
pricedAmount:
$ref: '#/components/schemas/Decimal'
excessAmount:
$ref: '#/components/schemas/Decimal'
description: Received minus priced; held for manual handling.
quotedPlanDigest:
type: string
pattern: ^[0-9a-f]{64}$
Mode:
type: string
enum:
- native_only
- native_and_stable
- stellar_onboarding
Recovery:
type: object
required:
- state
properties:
state:
type: string
enum:
- none
- open
- resolved
reason:
type:
- string
- 'null'
deliveredLegIds:
type: array
items:
type: string
owedLegIds:
type: array
items:
type: string
Order:
type: object
required:
- fundingId
- appId
- orderId
- mode
- status
- stateVersion
- quoteId
- planDigest
- deposit
- source
- legs
- pendingActions
- recovery
- createdAt
- updatedAt
properties:
fundingId:
type: string
format: uuid
appId:
type: string
orderId:
type: string
userRef:
type: string
mode:
$ref: '#/components/schemas/Mode'
status:
$ref: '#/components/schemas/OrderStatus'
stateVersion:
type: integer
description: Increases on every change.
quoteId:
type: string
format: uuid
planDigest:
type: string
deposit:
$ref: '#/components/schemas/Deposit'
source:
$ref: '#/components/schemas/SourceState'
repricing:
oneOf:
- $ref: '#/components/schemas/Repricing'
- type: 'null'
description: Set after actual-amount repricing. Current legs, fees, totals and planDigest reflect the priced amount.
legs:
type: array
items:
$ref: '#/components/schemas/PlannedLeg'
fees:
type: array
items:
$ref: '#/components/schemas/FeeLine'
totals:
$ref: '#/components/schemas/Quote/properties/totals'
pendingActions:
type: array
items:
$ref: '#/components/schemas/UserAction'
recovery:
$ref: '#/components/schemas/Recovery'
createdAt:
type: string
format: date-time
updatedAt:
type: string
format: date-time
Decimal:
type: string
pattern: ^\d+(\.\d+)?$
description: Non-negative decimal string in the asset's own unit.
Deposit:
type: object
required:
- chainId
- assetId
- symbol
- address
- amount
- payBefore
properties:
chainId:
$ref: '#/components/schemas/ChainId'
assetId:
$ref: '#/components/schemas/AssetId'
symbol:
type: string
address:
type: string
description: One-time deposit address for this order only. Never reuse it.
memo:
type:
- string
- 'null'
description: Required when present (Stellar).
amount:
$ref: '#/components/schemas/Decimal'
description: Suggested amount for any_amount; required amount for exact or an absent amountPolicy.
payBefore:
type: string
format: date-time
amountPolicy:
type: string
enum:
- exact
- any_amount
description: Missing means exact. any_amount prices an accepted payment on the amount received.
minAcceptedAmount:
oneOf:
- $ref: '#/components/schemas/Decimal'
- type: 'null'
description: Minimum single payment that can be delivered; null for exact.
maxPricedAmount:
oneOf:
- $ref: '#/components/schemas/Decimal'
- type: 'null'
description: Per-order pricing ceiling; daily allowance can further reduce it. Excess needs manual handling, not an automatic refund.
ErrorCode:
type: string
enum:
- unauthorized
- funding_disabled
- app_not_enabled
- invalid_request
- unsupported_mode
- unsupported_route
- unsupported_asset
- unsupported_target
- limit_exceeded
- fees_exceed_limit
- price_unavailable
- inventory_unavailable
- quote_expired
- quote_consumed
- plan_mismatch
- idempotency_conflict
- ownership_required
- ownership_invalid
- challenge_expired
- signer_unsupported
- stellar_account_not_ready
- state_changed
- channel_busy
- signature_invalid
- template_expired
- claim_expiring
- recovery_required
- not_found
- rate_limited
- internal_error
PlannedLeg:
type: object
required:
- legId
- outputId
- kind
- chainId
- assetId
- symbol
- receiverAddress
- minimumAmount
- sourceAllocationAmount
- status
properties:
legId:
type: string
description: Order leg UUID. On a quote (no order yet) it equals outputId.
outputId:
type: string
enum:
- native
- stable
kind:
type: string
enum:
- native
- stable
chainId:
$ref: '#/components/schemas/ChainId'
assetId:
$ref: '#/components/schemas/AssetId'
symbol:
type: string
receiverAddress:
type: string
minimumAmount:
$ref: '#/components/schemas/Decimal'
description: Guaranteed minimum delivered amount when the source is paid in full and on time.
budgetUsd:
$ref: '#/components/schemas/UsdAmount'
description: 'Native legs: N = principal + this leg''s fees.'
principalUsd:
$ref: '#/components/schemas/UsdAmount'
nativePriceUsd:
type:
- string
- 'null'
sourceAllocationAmount:
$ref: '#/components/schemas/Decimal'
description: Share of the source amount backing this leg (basis for refunds of an undelivered leg).
stellar:
type:
- object
- 'null'
description: Native XLM breakdown for Stellar legs.
properties:
totalXlm:
$ref: '#/components/schemas/Decimal'
reserveXlm:
$ref: '#/components/schemas/Decimal'
description: Locked as the account's minimum balance (not spendable). Zero when sponsored.
spendableXlm:
$ref: '#/components/schemas/Decimal'
actionKind:
type: string
enum:
- payment
- create_account
- onboarding_template
status:
$ref: '#/components/schemas/LegStatus'
deliveredAmount:
oneOf:
- $ref: '#/components/schemas/Decimal'
- type: 'null'
txHash:
type:
- string
- 'null'
AssetId:
type: string
description: 'Opaque asset identifier taken from capabilities. Format, for reference:
`native`, `erc20:<contract>`, `spl:<mint>`, `stellar:<CODE>:<ISSUER>`.
Ticker similarity never implies support (USDT0 and bridged variants
are separate assets).
'
LegStatus:
type: string
enum:
- planned
- reserved
- ready
- submitting
- unknown
- confirmed
- failed_confirmed
description: '`unknown` means the outcome is being reconciled against the executor by
the leg''s fixed execution key; it is never re-sent or refunded blindly.
'
Quote:
type: object
required:
- quoteId
- status
- mode
- appId
- userRef
- expiresAt
- source
- legs
- fees
- totals
- userActions
- planDigest
- settlement
- externalSourceFee
- configVersion
- confirmationGraceSeconds
properties:
quoteId:
type: string
format: uuid
status:
$ref: '#/components/schemas/QuoteStatus'
mode:
$ref: '#/components/schemas/Mode'
appId:
type: string
userRef:
type: string
createdAt:
type: string
format: date-time
expiresAt:
type: string
format: date-time
description: Also the latest source payment time (payBefore) of an order created from this quote.
source:
type: object
required:
- chainId
- assetId
- symbol
- amount
- valuationUsd
- priceUsd
- priceAt
properties:
chainId:
$ref: '#/components/schemas/ChainId'
assetId:
$ref: '#/components/schemas/AssetId'
symbol:
type: string
amount:
$ref: '#/components/schemas/Decimal'
valuationUsd:
$ref: '#/components/schemas/UsdAmount'
priceUsd:
type: string
description: USD value of one unit of the source asset used for this quote (1 USDT is not assumed to be 1 USD).
priceAt:
type: string
format: date-time
amountPolicy:
type: string
enum:
- exact
- any_amount
description: Missing means exact. any_amount prices an accepted payment on the amount received.
minAcceptedAmount:
oneOf:
- $ref: '#/components/schemas/Decimal'
- type: 'null'
description: Minimum single payment that can be delivered; null for exact.
maxPricedAmount:
oneOf:
- $ref: '#/components/schemas/Decimal'
- type: 'null'
description: Per-order pricing ceiling; daily allowance can further reduce it. Excess needs manual handling, not an automatic refund.
legs:
type: array
items:
$ref: '#/components/schemas/PlannedLeg'
fees:
type: array
items:
$ref: '#/components/schemas/FeeLine'
totals:
type: object
required:
- sourceValueUsd
- nativeBudgetsUsd
- stableDeliveryUsd
- sharedFeesUsd
- roundingRemainderUsd
- roundingRemainderOwner
- totalFeesUsd
description: 'sourceValueUsd = nativeBudgetsUsd + stableDeliveryUsd + sharedFeesUsd + roundingRemainderUsd,
exactly (computed in integer micro-dollars; the displayed 2-decimal strings are floors).
nativeBudgetsUsd = value of the native coin delivered + native-leg fees.
sharedFeesUsd = every fee not owned by a native leg (routing, stable service, Stellar sponsor fee).
roundingRemainderUsd = value left by flooring delivered amounts to their precision.
'
properties:
sourceValueUsd:
$ref: '#/components/schemas/UsdAmount'
nativeBudgetsUsd:
$ref: '#/components/schemas/UsdAmount'
stableDeliveryUsd:
$ref: '#/components/schemas/UsdAmount'
sharedFeesUsd:
$ref: '#/components/schemas/UsdAmount'
roundingRemainderUsd:
type: string
description: Up to 6 decimals; value left by flooring native/stable amounts.
roundingRemainderOwner:
type: string
enum:
- user_refundable
- rozo_disclosed
totalFeesUsd:
$ref: '#/components/schemas/UsdAmount'
userActions:
type: array
items:
$ref: '#/components/schemas/UserAction'
dependencies:
type: array
description: Execution dependencies the user should know about (for example `stellar_user_signature`).
items:
type: string
planDigest:
type: string
pattern: ^[0-9a-f]{64}$
description: SHA-256 of the frozen plan. Send it back on create to prove the user approved this exact plan.
settlement:
type: object
required:
- type
- note
properties:
type:
type: string
const: internal_settlement
note:
type: string
externalSourceFee:
type: string
const: unknown
configVersion:
type: integer
confirmationGraceSeconds:
type: integer
ownershipProofId:
type:
- string
- 'null'
signerProfileId:
type:
- string
- 'null'
usdGas:
type:
- string
- 'null'
description: 'stellar_onboarding: the chosen usdGas option; null on other modes.'
gasAmount:
type:
- string
- 'null'
description: Native gas delivered for usdGas, in gasAsset units (e.g. "1.6").
gasAsset:
type:
- string
- 'null'
description: Native gas asset symbol (XLM for Stellar).
gasDefaulted:
type:
- boolean
- 'null'
description: true when the caller omitted usdGas and the default applied.
OrderStatus:
type: string
enum:
- awaiting_payment
- source_confirming
- funds_confirmed
- executing
- action_required
- completed
- recovery_required
- expired_unpaid
- cancelled_unpaid
description: '`completed` only when every leg is `confirmed`. A partial delivery stays
`executing` or `recovery_required` and lists which legs are delivered
and which are still owed.
'
CreateOrderRequest:
type: object
required:
- quoteId
- planDigest
- orderId
additionalProperties: false
properties:
quoteId:
type: string
format: uuid
planDigest:
type: string
pattern: ^[0-9a-f]{64}$
orderId:
type: string
minLength: 1
maxLength: 128
pattern: ^[A-Za-z0-9_.:-]+$
description: Caller's own order reference, unique per app.
UserAction:
type: object
required:
- kind
properties:
kind:
type: string
enum:
- pay_source
- sign_stellar_onboarding
legIds:
type: array
items:
type: string
dueBy:
type:
- string
- 'null'
format: date-time
Error:
type: object
required:
- code
- message
- retryable
- nextAction
- correlationId
properties:
code:
$ref: '#/components/schemas/ErrorCode'
message:
type: string
retryable:
type: boolean
nextAction:
$ref: '#/components/schemas/NextAction'
correlationId:
type: string
details:
type: object
additionalProperties: true
FeeLine:
type: object
required:
- kind
- usd
- refundable
- appliesTo
properties:
kind:
type: string
enum:
- native_spread
- native_fixed
- native_network
- shared_routing
- stable_service
- bridge_fee
- stellar_sponsor_fee
usd:
$ref: '#/components/schemas/UsdAmount'
refundable:
type: boolean
description: Refunded when the service it pays for never happened.
appliesTo:
type: string
description: Leg id, or `shared`.
ChainId:
type: string
pattern: ^\d+$
description: 'ROZO chain id as a string: 1, 8453, 42161, 137, 56, 999 (EVM), 900 (Solana), 1500 (Stellar).'
UsdAmount:
type: string
pattern: ^\d+(\.\d{1,2})?$
description: USD decimal string, at most 2 decimals.
parameters:
FundingId:
name: fundingId
in: path
required: true
schema:
type: string
format: uuid
CorrelationId:
name: X-Correlation-Id
in: header
required: false
description: Echoed in errors; generated when absent.
schema:
type: string
maxLength: 128
IdempotencyKey:
name: Idempotency-Key
in: header
required: true
description: Unique per intended order, 8 to 128 characters of `[A-Za-z0-9_.:-]`.
schema:
type: string
pattern: ^[A-Za-z0-9_.:-]{8,128}$
responses:
Error:
description: 'Error. Status mapping: unauthorized 401; app_not_enabled 403; not_found 404;
idempotency_conflict, quote_consumed, plan_mismatch, inventory_unavailable,
state_changed, channel_busy, recovery_required 409; quote_expired,
challenge_expired, template_expired, claim_expiring 410; other validation codes 400/422;
rate_limited 429 (keyless callers); internal_error 500 (retry with the same Idempotency-Key);
funding_disabled, price_unavailable 503.
'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
securitySchemes:
apiKey:
type: apiKey
in: header
name: X-API-Key
description: Server-to-server key from https://partners.rozo.ai. Bound to one app (for example `wallet_<slug>`).