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: Palmyr Cards API
description: Autonomous infrastructure for AI agents — pay with USDC on Solana or Base via x402.
version: 0.4.7
x-guidance: 'Palmyr is a paid HTTP API that lets agents buy and operate their own infrastructure: phone numbers, email inboxes, custom domains, cloud servers, third-party API keys. Identity = wallet address. Pay with USDC; the wallet that pays becomes the owner of the resource. Every paid endpoint returns 402 with a valid x402 challenge. Use the `extra.facilitator` field on each accepts entry to route the settlement (CDP for EVM, self-hosted for Solana). Solana uses a server-paid fee-payer pattern — payers only need USDC, never SOL. Some routes price dynamically (x-payment-info.price.mode === ''dynamic'', e.g. POST /social/twitter/buy) — never assume a fixed amount for these; send the request unpaid to get a 402 whose `accepts` carry the live price, then pay that. Check before you pay: free preflight routes (x-payment-info.price.mode === ''free'') let you probe availability and price first — GET /pricing, GET /domains/check, GET /domains/pricing, GET /phone/numbers/search, plus free POST /agents/register. Other free helpers: GET /api, /health, /version. Async operations that aren''t finished when they respond return a `poll_url` alongside `operation_id` and a `status` (and sometimes `poll_after_seconds`) — e.g. POST /compute/servers (server provisioning ~60s) and the /transfers endpoints. Treat any response carrying `poll_url` as in-progress: GET the poll_url until `status` is terminal (completed/failed; for servers, running).'
servers:
- url: https://palmyr.ai
tags:
- name: Cards
paths:
/cards/buy:
post:
summary: Buy a USA prepaid Visa card loaded with exactly the requested balance…
description: 'Buy a USA prepaid Visa card loaded with exactly the requested balance ($5–$1000). Price is dynamic: amount + fee (3% min $0.50) — send unpaid to get a 402 with the exact total. Body: { amount }. Returns 202 + poll_url; card number/CVV via GET /cards/:id when ready (~10s). US merchants only; non-reloadable.'
tags:
- Cards
parameters:
- name: X-Payment
in: header
required: true
description: x402 payment payload (Solana or EVM USDC). Get the challenge from the route's 402 response.
schema:
type: string
x-payment-info:
price:
mode: dynamic
currency: USD
hint: Price depends on request parameters. Send the request with no payment to get a 402 challenge whose `accepts` entries carry the live amount, then pay that.
protocols:
- x402: {}
extensions:
bazaar:
discoverable: true
serviceName: Palmyr Cards
category: cards
tags:
- cards
- card
- prepaid
- visa
- payments
iconUrl: https://palmyr.ai/assets/bazaar-icon.png
schema:
properties:
input:
type: object
additionalProperties: true
output:
type: object
additionalProperties: true
info:
input:
type: http
method: POST
bodyType: json
body: {}
inputSchema:
properties:
body:
type: object
additionalProperties: true
required: []
output:
example: {}
responses:
'200':
description: OK
content:
application/json:
schema:
type: object
additionalProperties: true
'402':
description: Payment Required
content:
application/json:
schema:
type: object
additionalProperties: true
requestBody:
required: false
content:
application/json:
schema:
type: object
additionalProperties: true
operationId: postCardsBuy
x-operation-id-source: derived
/cards:
get:
summary: List your prepaid cards (status, last4, balance — never full card numbers…
description: List your prepaid cards (status, last4, balance — never full card numbers; those are per-card via GET /cards/:id).
tags:
- Cards
parameters:
- name: X-Payment
in: header
required: true
description: x402 payment payload (Solana or EVM USDC). Get the challenge from the route's 402 response.
schema:
type: string
x-payment-info:
price:
mode: fixed
currency: USD
amount: '0.01'
protocols:
- x402: {}
extensions:
bazaar:
discoverable: true
serviceName: Palmyr Cards
category: cards
tags:
- cards
- card
- list
iconUrl: https://palmyr.ai/assets/bazaar-icon.png
schema:
properties:
input:
type: object
additionalProperties: true
output:
type: object
additionalProperties: true
info:
input:
type: http
method: GET
queryParams: {}
inputSchema:
properties:
queryParams:
type: object
additionalProperties: true
required: []
output:
example: {}
responses:
'200':
description: OK
content:
application/json:
schema:
type: object
additionalProperties: true
'402':
description: Payment Required
content:
application/json:
schema:
type: object
additionalProperties: true
operationId: getCards
x-operation-id-source: derived
components:
securitySchemes:
x402:
type: apiKey
in: header
name: X-Payment
description: x402 payment payload (Solana or EVM USDC). See the 402 challenge response on any paid endpoint.