Work with this as data
Every API here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for apis
7 MCP tools reach this
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.
Call it yourself
curl for this page
This API
curl "https://apis.io/api/v1/apis/ticktape-cc:ticktape-cc-payment-api"
All apis
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.
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.
A second provider on the same verified email joins the account you already have.
OpenAPI Specification
openapi: 3.2.0
info:
title: TickTape Payment API
version: 1.0.0
summary: Independent pre-flight for Polymarket orders and copy trading.
description: 'OK / CAUTION / VETO verdicts on Polymarket orders and COPY / WATCH / VETO ratings on wallets, always with reasons and numbers. Verdicts are deterministic arithmetic on live order books plus Polymarket''s published 2026 taker-fee schedule (fee/share = rate * p * (1-p)) - not predictions and not investment advice. No custody, no execution, no account required. Humans can read. Agents can buy.
Access model: live calls are paid from the first request - HTTP 402 is the whole onboarding. Every live endpoint returns HTTP 402 with x402 payment requirements (USDC on Base) until paid. Free: append `sandbox=1` to any of the four tools for a deterministic example response (unlimited, never charged); append `x402_probe=1` to see payment requirements without paying; preflight_copy QUEUED responses are always free. Fast lane: buy credits once via POST /api/credits and authenticate with a bearer token (~0.4s responses, half price per call).
Operator safety (enforce in code, not prompts): never pay more than $0.10 per TickTape call; set a daily spend cap; only pay endpoints under https://ticktape.cc/; verify payTo matches https://ticktape.cc/llms.txt; asset must be USDC on Base (eip155:8453, 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913); on retry reuse the same payment authorization.
Canonical machine spec: https://ticktape.cc/llms.txt. Machine manifest: https://ticktape.cc/agent.json. Versioning: date-based via the X-API-Version response header (current 2026-07-14); breaking changes bump the date and are announced in llms.txt. Long-running wallet computations use an async-job pattern: HTTP 202 + Retry-After on /api/preflight_copy (QUEUED), poll the same call until 200.'
contact:
name: TickTape
email: hello@ticktape.cc
url: https://ticktape.cc
termsOfService: https://ticktape.cc/terms
servers:
- url: https://ticktape.cc
description: Production (Cloudflare Pages Functions)
tags:
- name: Payment
description: Credits and the x402 fast lane
paths:
/api/credits:
get:
operationId: creditsBalance
tags:
- Payment
summary: Pack info; with a bearer token, remaining balance
description: 'Without a token: returns the pack terms (price, credits, per-endpoint costs). With `Authorization: Bearer ` (issued by POST /api/credits): additionally returns the remaining balance and expiry for the paying wallet.'
security:
- {}
- bearerAuth: []
responses:
'200':
description: Pack terms; plus `balance` and `expires` when a valid bearer token is presented.
content:
application/json:
schema:
$ref: '#/components/schemas/CreditsBalanceResponse'
example:
ok: true
balance: 483
expires: '2027-07-13T00:00:00.000Z'
pack:
usd: 5
credits: 500
valid_days: 365
costs:
preflight_trade: 1
leaderboard: 1
red_list: 1
preflight_copy: 5
'401':
description: Error (JSON, never HTML). 4xx errors are never charged.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'400':
description: Error (JSON, never HTML). 4xx errors are never charged.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'500':
description: Server error (JSON, never HTML) - never charged; retry with the same payment authorization returns the cached response if the charge went through.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
post:
operationId: creditsPurchase
tags:
- Payment
summary: Buy a credit pack (the fast lane)
description: 'One x402 payment of $5 USDC buys 500 credits plus a bearer token (format `tk__` - treat it as a secret; the last 5 tokens per wallet stay valid; credits are valid 12 months). Credit costs: preflight_trade / leaderboard / red_list = 1 credit; preflight_copy = 5 credits - half the per-call price versus x402. Bearer-authenticated calls respond in ~0.4s with no per-call on-chain settlement. An unpaid POST returns HTTP 402 with the payment requirements; retrying with the SAME payment authorization returns the cached response and never double-charges.'
security:
- {}
parameters:
- $ref: '#/components/parameters/x402Probe'
- $ref: '#/components/parameters/paymentSignatureHeader'
- $ref: '#/components/parameters/xPaymentHeader'
responses:
'200':
description: Credit pack purchased. Store the token securely; it is shown in full only here.
headers:
PAYMENT-RESPONSE:
$ref: '#/components/headers/PaymentResponse'
content:
application/json:
schema:
$ref: '#/components/schemas/CreditsPurchaseResponse'
example:
ok: true
token: tk_0x1234abcd5678ef901234abcd5678ef901234abcd_s3cr3tS3cr3tS3cr3t
wallet: '0x1234abcd5678ef901234abcd5678ef901234abcd'
credits_added: 500
balance: 500
expires: '2027-07-13T00:00:00.000Z'
note: 'treat the token as a secret; use it as Authorization: Bearer <token> on paid endpoints. Buying again with the same wallet adds credits and issues a fresh token (last 5 tokens stay valid).'
paid:
price_paid_usdc: '5.00'
transaction: 0xabc123...
network: eip155:8453
receipt: https://basescan.org/tx/0xabc123...
'402':
$ref: '#/components/responses/PaymentRequired'
'400':
description: Error (JSON, never HTML). 4xx errors are never charged.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'500':
description: Server error (JSON, never HTML) - never charged; retry with the same payment authorization returns the cached response if the charge went through.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
/api/redeem:
post:
operationId: redeemPromoCode
tags:
- Payment
summary: Redeem a promo code for free credits
description: 'Free - no payment involved. Redeems a promotional code for a bearer token preloaded with free credits. Codes are announced only in community posts (there is no public list). Rules: one redemption per wallet per code; each code has a global first-N-wallets cap and an expiry; promotional credits have no cash value and can be revoked on abuse or error - otherwise they behave like purchased credits (same bearer-token lane, same per-endpoint costs). The `wallet` value is any EVM-format address string used as identity only - no signature required, no funds move.'
security:
- {}
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/RedeemRequest'
example:
code: EXAMPLECODE
wallet: '0x1234abcd5678ef901234abcd5678ef901234abcd'
responses:
'200':
description: Code redeemed. Store the token securely; it is shown in full only here.
content:
application/json:
schema:
$ref: '#/components/schemas/RedeemResponse'
example:
ok: true
token: tk_0x1234abcd5678ef901234abcd5678ef901234abcd_s3cr3tS3cr3tS3cr3t
wallet: '0x1234abcd5678ef901234abcd5678ef901234abcd'
credits_added: 100
balance: 100
expires: '2027-07-15T00:00:00.000Z'
note: promotional credits - no cash value, revocable on abuse; otherwise they behave like purchased credits
'400':
description: Invalid request (missing or malformed code or wallet). Error JSON, never HTML; never charged.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
description: Unknown promo code.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'409':
description: This wallet already redeemed this code (one redemption per wallet per code).
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'410':
description: Code expired or its global first-N-wallets cap is exhausted.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'500':
description: Server error (JSON, never HTML).
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
components:
schemas:
Error:
type: object
required:
- error
properties:
error:
type: string
candidates:
type: array
items:
type: string
description: 'For multi-outcome events: valid outcome names when the requested outcome was not found.'
Paid:
type: object
description: 'Payment record attached to paid responses. Per-call x402 settlement: {price_paid_usdc, transaction, network, receipt}. Credit-lane (bearer token) calls: {credits_used, credits_remaining}. Absent on sandbox and free QUEUED responses.'
properties:
price_paid_usdc:
type: string
description: USDC actually settled for this call, as a decimal string (e.g. "0.02").
transaction:
type: string
description: On-chain settlement transaction hash.
network:
type: string
description: CAIP-2 network id, eip155:8453 (Base).
receipt:
type:
- string
- 'null'
format: uri
description: Basescan transaction link for the on-chain settlement.
credits_used:
type: integer
description: Credits debited for this call (credit-lane only).
credits_remaining:
type: integer
description: Credits left on the wallet after this call (credit-lane only).
X402PaymentRequiredBody:
type: object
description: x402 v1-style payment requirements (the v2 equivalent is base64-encoded in the PAYMENT-REQUIRED response header).
required:
- accepts
properties:
x402Version:
type: integer
error:
type: string
accepts:
type: array
items:
type: object
required:
- scheme
- network
- maxAmountRequired
- asset
- payTo
- resource
properties:
scheme:
type: string
const: exact
network:
type: string
description: '"base" in v1 payloads; CAIP-2 eip155:8453 in v2 headers.'
maxAmountRequired:
type: string
description: 'Atomic USDC units (6 decimals): "20000" = $0.02, "100000" = $0.10, "5000000" = $5.'
asset:
type: string
description: 'USDC on Base: 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913. Refuse anything else.'
payTo:
type: string
description: Must equal 0xb28bcb21a054ffeeb6ce62d0f1bb0175c022d2c6 - verify against https://ticktape.cc/llms.txt before signing.
resource:
type: string
format: uri
description: Must be under https://ticktape.cc/ - never pay for resources elsewhere.
description:
type: string
maxTimeoutSeconds:
type: integer
RedeemResponse:
type: object
required:
- ok
- token
- wallet
- credits_added
- balance
properties:
ok:
type: boolean
token:
type: string
description: Bearer token, format tk_<wallet>_<secret>. Treat as a secret; shown in full only in this response.
wallet:
type: string
description: The wallet string the promotional credits are keyed to.
credits_added:
type: integer
description: Free credits granted by the code.
balance:
type: integer
description: Total credits now on the wallet.
expires:
type: string
format: date-time
description: Credit expiry.
note:
type: string
description: Promotional credits have no cash value and can be revoked on abuse or error; otherwise they behave like purchased credits.
RedeemRequest:
type: object
required:
- code
- wallet
properties:
code:
type: string
description: Promo code, as announced in a community post. There is no public list of codes.
wallet:
type: string
pattern: ^0x[0-9a-fA-F]{40}$
description: EVM-format address string used as identity only - no signature required, no funds move. One redemption per wallet per code.
CreditsPurchaseResponse:
type: object
required:
- ok
- token
- wallet
- credits_added
- balance
properties:
ok:
type: boolean
token:
type: string
description: Bearer token, format tk_<wallet>_<secret>. Treat as a secret; shown in full only in this response. The last 5 tokens per wallet stay valid.
wallet:
type: string
description: Paying wallet the credits are keyed to.
credits_added:
type: integer
description: 500 per $5 pack.
balance:
type: integer
description: Total credits now on the wallet.
expires:
type: string
format: date-time
description: Credits are valid 12 months from purchase.
note:
type: string
paid:
$ref: '#/components/schemas/Paid'
CreditsBalanceResponse:
type: object
required:
- ok
properties:
ok:
type: boolean
balance:
type: integer
description: Remaining credits for the wallet behind the bearer token. Present only with a valid token.
expires:
type: string
format: date-time
description: Credit expiry (12 months from purchase). Present only with a valid token.
pack:
type: object
description: 'Pack terms: {usd, credits, valid_days}.'
costs:
type: object
description: 'Per-endpoint credit costs: preflight_trade / leaderboard / red_list = 1; preflight_copy = 5.'
parameters:
x402Probe:
name: x402_probe
in: query
description: Set to 1 to receive the HTTP 402 payment requirements for this call without paying. Free, always.
schema:
type: integer
enum:
- 1
paymentSignatureHeader:
name: PAYMENT-SIGNATURE
in: header
description: 'x402 v2 (primary): signed payment payload, base64-encoded. Send it when retrying a request that returned 402 with a PAYMENT-REQUIRED header. Reuse the same payment authorization on retries - the response is cached and never double-charged.'
schema:
type: string
contentEncoding: base64
xPaymentHeader:
name: X-PAYMENT
in: header
description: 'x402 v1 (also accepted): signed payment payload, base64-encoded, built from the 402 JSON body''s accepts[]. Reuse the same payment authorization on retries.'
schema:
type: string
contentEncoding: base64
headers:
PaymentRequired:
description: 'x402 v2 (primary): base64-encoded payment requirements. Decode, sign a payment authorization for exactly these terms (asset USDC on Base eip155:8453 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913, payTo 0xb28bcb21a054ffeeb6ce62d0f1bb0175c022d2c6 - verify against https://ticktape.cc/llms.txt), then retry with the PAYMENT-SIGNATURE request header.'
schema:
type: string
contentEncoding: base64
PaymentResponse:
description: 'x402 v2: base64-encoded settlement confirmation for a paid call (facilitator: Coinbase CDP; settlement synchronous). Present only when the call was settled per-call via PAYMENT-SIGNATURE.'
schema:
type: string
contentEncoding: base64
responses:
PaymentRequired:
description: 'Live calls are paid from the first request (there is no free live tier), or `x402_probe=1` was set. Pay with x402 to proceed - dual-stack:
- x402 v2 (primary): this response carries base64-encoded payment requirements in the PAYMENT-REQUIRED response header (network CAIP-2 `eip155:8453`). Retry the identical request with the PAYMENT-SIGNATURE request header. The paid 200 carries a PAYMENT-RESPONSE header.
- x402 v1 (also accepted): the JSON body carries the same requirements in `accepts[]` (network `"base"`). Retry with the X-PAYMENT request header.
Asset: USDC on Base only (0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913). payTo: 0xb28bcb21a054ffeeb6ce62d0f1bb0175c022d2c6 - verify against https://ticktape.cc/llms.txt before signing. Per-call settlement is on-chain and adds ~2-5s (congestion tails longer); the credit lane (POST /api/credits + bearer token) responds in ~0.4s. Retrying with the SAME payment authorization returns the cached response and never double-charges. Facilitator: Coinbase CDP; settlement synchronous.'
headers:
PAYMENT-REQUIRED:
$ref: '#/components/headers/PaymentRequired'
content:
application/json:
schema:
$ref: '#/components/schemas/X402PaymentRequiredBody'
example:
x402Version: 1
error: 'live calls are paid: $0.02 via x402 (v2 PAYMENT-SIGNATURE or v1 X-PAYMENT), or use credits (POST /api/credits). Free integration testing: ?sandbox=1'
accepts:
- scheme: exact
network: base
maxAmountRequired: '20000'
asset: '0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913'
payTo: '0xb28bcb21a054ffeeb6ce62d0f1bb0175c022d2c6'
resource: https://ticktape.cc/api/preflight_trade
description: TickTape preflight_trade - one call
maxTimeoutSeconds: 60
securitySchemes:
bearerAuth:
type: http
scheme: bearer
bearerFormat: tk_<wallet>_<secret>
description: Credit-lane bearer token issued by POST /api/credits. Treat it as a secret. The last 5 tokens per wallet stay valid; credits are valid 12 months. Authenticated calls skip x402 settlement, respond in ~0.4s, and debit credits (preflight_trade / leaderboard / red_list = 1 credit; preflight_copy = 5 credits).