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 Orchestration 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: Orchestration
paths:
/chat:
post:
summary: Generate an i402 plan from a natural-language intent.
description: Generate an i402 plan from a natural-language intent. Returns a 402 response with a list of x402 calls the agent should sign and execute.
tags:
- Orchestration
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.1'
protocols:
- x402: {}
extensions:
bazaar:
discoverable: true
serviceName: Palmyr Orchestration
category: orchestration
tags:
- orchestration
- i402
- orchestrator
- plan
- agent
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: postChat
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.