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.
openapi: 3.2.0
info:
title: Roamzy Agent Referral API
version: 1.0.0
description: Public REST surface for AI agents and 3rd-party integrators. One global eSIM. Per-MB billing. Stablecoin payments in USDT or USDC (no fiat, no cards); the enabled networks are listed by GET /api/v1/payment-options. See https://roamzy.io/llms.txt for human-readable agent guidance.
contact:
name: Roamzy support
url: https://t.me/roamzy_support_bot
email: support@roamzy.io
license:
name: Proprietary
url: https://roamzy.io/legal/terms
servers:
- url: https://roamzy.io
description: Production
tags:
- name: Referral
paths:
/api/v1/referral:
get:
summary: Referral code, link and earnings (auth required)
description: 'Read-only — no money moves through this endpoint. Works for anonymous tokens too: an anonymous agent accrues commission on the cash payments of accounts it refers. Withdrawing to a wallet requires linking a Google/Telegram identity first; spending earnings on the token owner''s own traffic does not.'
security:
- bearer: []
responses:
'200':
description: OK
content:
application/json:
schema:
type: object
properties:
referral_code:
type: string
referral_link:
type: string
format: uri
percent:
type: number
description: Share of each referred account's cash payments
balance_usdt:
type: number
earned_total_usdt:
type: number
invited_count:
type: integer
can_withdraw:
type: boolean
min_withdrawal_usdt:
type: number
hint:
type: string
share_text:
type: string
'401':
description: Missing or invalid token
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
tags:
- Referral
operationId: getApiV1Referral
x-operation-id-source: derived
components:
schemas:
ErrorResponse:
type: object
required:
- error
properties:
error:
type: string
example: invalid_token
detail:
type: string
securitySchemes:
bearer:
type: http
scheme: bearer
bearerFormat: rk_live_<base64url>
description: API token issued in the user dashboard. Format `rk_live_<32-char-base64url>`. Shown once on creation; only SHA-256 hash is stored server-side.