PMWallets Account API
Identity, balance, statement and invites.
Identity, balance, statement and invites.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
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.curl "https://apis.io/api/v1/apis/pmwallets-com:pmwallets-com-account-api"
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.
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: 3.2.0
info:
title: PMWallets Account API
version: 1.0.0
summary: Polymarket wallet leaderboard, address unlocks, live fill subscriptions and trade-history exports.
description: 'PMWallets tracks every Polymarket fill on Polygon, groups wallets that belong together into **entities**, and ranks them by forward-only PnL over published windows (`30d`, `7d`; each recomputed about once a day). It sells three things: the **address** behind an entity, a **live stream of its fills** (billed per hour), and **per-wallet daily trade-history files**.
**Handles vs addresses.** An entity whose address you have not bought is named by a 12-character **handle** in `entityId` (Crockford base32, e.g. `7KQ2MF9X4B1C`) with a masked address in `label` (`0x4b96…984e`). After you unlock it (`POST /v1/account/reveals`), follow it, or unlock it from a plan, `entityId` and `label` are the full 0x address. Send handles back to every endpoint that takes an entity; a raw address is only accepted from a caller who already holds it. A masked label is never accepted.
**Money.** Prices are integer US cents. Charges come from the prepaid account balance (top-ups happen on https://pmwallets.com). Every charging call takes a ceiling (`maxPriceCents` / `maxCents`) and answers 409 instead of charging more. 402 means not enough balance; nothing was charged.
**Quotas.** A signed-in board read spends rows from a 20,000-row daily allowance (UTC day). Opening an entity page as a subscriber, unlocking, subscribing and exporting each spend one unit of a daily *distinct-entity* budget (50 by default, raised by plans); touching the same entity again that day is free. Over-limit answers are 403. Heavy reads are rate limited per account and per IP (429).
**Auth.** Send an API key `pmw__` in `x-api-key` (`Authorization: Bearer ` also works). Create keys at https://pmwallets.com/keys. A key can spend the balance but cannot manage keys, add/remove webhooks or change a card plan (session-only, not in this document). Without a key: the 20-row board sample, periods, plans, rate card, markets, latency and readiness.
**Live fills are not in this document.** They arrive over the WebSocket `wss://api.pmwallets.com/v1/ws` (send the key in `x-api-key`; one API connection per account, `?clientId=&takeover=1` replaces another) or as signed webhooks (see `webhooks.fill`; the endpoint is registered on the website). An agent without a long-running process can poll `GET /v1/account/fills` with the `next` cursor instead: same fills, same `eventId`, scoped to active subscriptions, retained 60 days.
**Units.** In fills, `usdc`, `shares` and `fee` are integer strings in 1e-6 units (`"1824000000"` = $1,824); `price` is a decimal string; `ts` is UTC `YYYY-MM-DD HH:MM:SS`. Board and entity figures (`realizedPnl`, `grossBuyUsdc`, …) are dollars as numbers.'
contact:
name: PMWallets
url: https://pmwallets.com
email: support@pmwallets.com
servers:
- url: https://api.pmwallets.com
description: Production
security:
- ApiKeyAuth: []
tags:
- name: Account
description: Identity, balance, statement and invites.
paths:
/v1/auth/me:
get:
operationId: getMe
tags:
- Account
summary: Who the key belongs to
security:
- ApiKeyAuth: []
description: The account behind the key. Use it to check a key works.
responses:
'200':
description: OK
content:
application/json:
schema:
type: object
properties:
id:
type: string
email:
type: string
name:
type:
- string
- 'null'
avatarUrl:
type:
- string
- 'null'
inviteLive:
type: boolean
'401':
$ref: '#/components/responses/Unauthorized'
/v1/account/billing:
get:
operationId: getBilling
tags:
- Account
summary: Balance and recent statement
security:
- ApiKeyAuth: []
description: Balance in cents, the hourly push price, top-up limits, the first 25 statement lines (`ledgerNext` pages on via GET /v1/account/ledger) and any open crypto top-up order.
responses:
'200':
description: OK
content:
application/json:
schema:
type: object
properties:
balanceCents:
type: integer
priceCentsPerHour:
type: integer
minTopupCents:
type: integer
maxTopupCents:
type: integer
rails:
type: object
properties:
stripe:
type: boolean
crypto:
type: boolean
ledger:
type: array
items:
$ref: '#/components/schemas/LedgerEntry'
ledgerNext:
type:
- string
- 'null'
openCryptoOrder:
type:
- object
- 'null'
additionalProperties: true
'401':
$ref: '#/components/responses/Unauthorized'
/v1/account/ledger:
get:
operationId: listLedger
tags:
- Account
summary: Balance statement, paged
security:
- ApiKeyAuth: []
description: Credits and charges, newest first.
parameters:
- name: limit
in: query
required: false
description: 1-100, default 25.
schema:
type: integer
minimum: 1
maximum: 100
default: 25
- name: cursor
in: query
required: false
description: '`next` from the previous page.'
schema:
type: string
responses:
'200':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/LedgerPage'
'400':
description: Bad cursor.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'401':
$ref: '#/components/responses/Unauthorized'
/v1/account/invite:
get:
operationId: getInvite
tags:
- Account
summary: Your invite code and earnings
security:
- ApiKeyAuth: []
description: Your code, campaign terms, the code you were invited with, commission earned and invitee count.
responses:
'200':
description: OK
content:
application/json:
schema:
type: object
properties:
code:
type: string
bonusCents:
type: integer
commissionPct:
type: number
endsAt:
type: string
live:
type: boolean
bound:
type:
- object
- 'null'
properties:
code:
type: string
bonusCents:
type: integer
at:
type: string
earnedCents:
type: integer
invitedCount:
type: integer
'401':
$ref: '#/components/responses/Unauthorized'
/v1/account/invite/invitees:
get:
operationId: listInvitees
tags:
- Account
summary: People you invited, paged
security:
- ApiKeyAuth: []
parameters:
- name: limit
in: query
required: false
description: 1-50, default 10.
schema:
type: integer
minimum: 1
maximum: 50
default: 10
- name: cursor
in: query
required: false
description: '`next` from the previous page.'
schema:
type: string
responses:
'200':
description: OK
content:
application/json:
schema:
type: object
properties:
entries:
type: array
items:
type: object
properties:
email:
type: string
description: Masked.
at:
type: string
next:
type:
- string
- 'null'
'400':
description: Bad cursor.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'401':
$ref: '#/components/responses/Unauthorized'
/v1/account/invite/bind:
post:
operationId: bindInviteCode
tags:
- Account
summary: Redeem an invite code
security:
- ApiKeyAuth: []
description: Binds an invite code to your account, once ever; while the campaign is live CREDITS a non-refundable bonus to your balance.
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- code
properties:
code:
type: string
responses:
'201':
description: Bound (HTTP 201).
content:
application/json:
schema:
type: object
properties:
ok:
type: boolean
bonusCents:
type: integer
'400':
description: '`error` one of: closed, unknown_code, own_code, already_bound, would_cycle.'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'401':
$ref: '#/components/responses/Unauthorized'
components:
responses:
Unauthorized:
description: No valid API key (missing, malformed, unknown or revoked).
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
example:
statusCode: 401
message: Unauthorized
schemas:
LedgerEntry:
type: object
properties:
id:
type: string
deltaCents:
type: integer
description: Positive = credit, negative = charge.
reason:
type: string
description: e.g. topup_stripe, topup_crypto, charge_hour, entity_reveal, export, plan, invite_bonus, invite_commission, refund, adjustment.
kind:
type: string
enum:
- cash
- reward
ref:
type:
- string
- 'null'
note:
type:
- string
- 'null'
createdAt:
type: string
format: date-time
payment:
type: object
description: 'Crypto top-ups: coin, network and on-chain tx.'
properties:
coin:
type: string
network:
type: string
tx:
type: string
Error:
type: object
description: Error body. `message` is always present; machine-readable refusals add `error` (unlock, export, subscription paths) or `code` (plan paths) plus the figures the caller needs.
properties:
statusCode:
type: integer
message:
description: Human-readable reason (English).
oneOf:
- type: string
- type: array
items:
type: string
error:
type: string
description: Machine code, e.g. insufficient_balance, price_changed, not_unlocked, address_not_unlocked, entity_budget, not_sellable, plan_exhausted, no_plan.
code:
type: string
description: Machine code on plan endpoints, e.g. insufficient_balance, price_changed, card_active, already_queued, request_conflict.
required:
- message
additionalProperties: true
LedgerPage:
type: object
properties:
entries:
type: array
items:
$ref: '#/components/schemas/LedgerEntry'
next:
type:
- string
- 'null'
description: Cursor for the next page; null at the end.
securitySchemes:
ApiKeyAuth:
type: apiKey
in: header
name: x-api-key
description: 'API key `pmw_<12 hex>_<64 hex>` from https://pmwallets.com/keys. `Authorization: Bearer <key>` is accepted too.'