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 Anon Session 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: Anon Session
paths:
/api/v1/anon-session:
post:
summary: Create anonymous user + API token (no signup required) — mig 0046
description: 'Agent-first flow: client gets a Bearer api_token and a one-time claim_token without prior OAuth. Tighter limits ($40/day, $100/mo, $50 big-txn, 1 active eSIM) until the user attaches this anon account to a real Google/Telegram/email identity via the claim_url. Rate-limited 5/IP/day + 1/IP/min.'
requestBody:
required: false
content:
application/json:
schema:
type: object
properties:
user_agent_hint:
type: string
maxLength: 200
description: Optional free-form client hint (e.g. "claude-desktop"). Logged for telemetry.
ref:
type: string
pattern: ^[0-9A-Za-z]{4,32}$
example: a1b2c3d4
description: Optional referral code. Attributes the new account to that referrer (first-touch, self-referral blocked); the referrer then earns a percentage of this account's cash payments. Agents get their own code from GET /api/v1/referral.
responses:
'201':
description: Anonymous session created. SAVE api_token and claim_url — they cannot be retrieved later.
content:
application/json:
schema:
type: object
properties:
user_id:
type: string
api_token:
type: string
description: Bearer token (rk_live_<32-char>). SHOWN ONCE.
claim_token:
type: string
description: Magic-link claim secret (rc_<32-char>). SHOWN ONCE.
claim_url:
type: string
format: uri
description: URL to surface to the user for permanent-account attachment.
limits:
type: object
properties:
daily_usdt:
type: number
example: 40
monthly_usdt:
type: number
example: 100
cool_off_usdt:
type: number
example: 40
big_txn_usdt:
type: number
example: 50
max_active_esims:
type: integer
example: 1
claim_expires_at:
type:
- string
- 'null'
description: NULL — claim tokens never auto-expire (operator-approved 2026-05-20).
hint:
type: string
'429':
description: IP rate-limit (5/day or 1/min)
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'503':
description: agents.all.paused or agents.anon.paused
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
tags:
- Anon Session
operationId: postApiV1AnonSession
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.