Precleared Pay API

The Pay API from Precleared — 1 operation(s) for pay.

GitHub OpenAPI

Operations 1

POST /pay/{token} Buy a pack with an agent wallet #

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.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/precleared-dev:precleared-dev-pay-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

precleared-dev-pay-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Precleared Pay API
  version: 1.0.0
  description: 'Per-address verdicts on cold marketing email, with the rule quoted and a signed receipt. Covers the UK, US, Canada, Germany, France, Australia, Ireland, the Netherlands, Spain, Italy, Latvia, the United Arab Emirates, Egypt and Qatar: UK PECR and GDPR, US CAN-SPAM, Canadian CASL, German UWG, French CPCE, Australia''s Spam Act, Ireland''s ePrivacy Regulations, the Dutch Telecommunicatiewet, Spain''s LSSI, Italy''s Privacy Code, Latvia''s Information Society Services Law, the UAE''s PDPL, Egypt''s Personal Data Protection Law and Qatar''s Personal Data Privacy Protection Law. Decision support with sources, not legal advice. Packs: £9 for 300 checks (a key''s first purchase) or £39 for 2,000 checks. Auto top-up always buys the £39 pack. Every new key, including HubSpot portals, gets 14 days at 100 checks a day, starting with the first check. Monthly plan: £15 for 100 checks a day. Unused daily checks do not roll over. Packs are used after the largest eligible free, trial or active/past_due plan allowance, never below the channel minimum. Cancel at /manage; the plan runs to the paid period end.'
servers:
- url: https://precleared.dev
tags:
- name: Pay
paths:
  /pay/{token}:
    post:
      summary: Buy a pack with an agent wallet
      description: 'POST the returned pay URL. A wallet supporting Stripe Machine Payments Protocol pays the GBP challenge, then repeats the same POST with Authorization: Payment . A credential works once. Browser GET opens Stripe Checkout instead. The £15 monthly plan needs a person. If crediting fails and no credit is recorded, an automatic refund is attempted; follow the error message if credit or refund status is unconfirmed.'
      security: []
      responses:
        '200':
          description: Pack credited to the key.
          headers:
            Payment-Receipt:
              description: MPP payment receipt.
              schema:
                type: string
          content:
            application/json:
              schema:
                type: object
                required:
                - ok
                - credited
                - credits
                - key_prefix
                - payment_intent
                properties:
                  ok:
                    type: boolean
                    const: true
                  credited:
                    type: boolean
                    const: true
                  credits:
                    type: integer
                    description: The key's balance after crediting, not the pack size.
                  key_prefix:
                    type: string
                  payment_intent:
                    type: string
        '402':
          description: Payment challenge, or payment_already_used with a fresh challenge and no new charge.
          headers:
            WWW-Authenticate:
              description: MPP Payment challenge for the GBP amount.
              schema:
                type: string
          content:
            application/json:
              schema:
                anyOf:
                - type: object
                  required:
                  - error
                  - protocol
                  - pack
                  - human_checkout_url
                  - message
                  properties:
                    error:
                      type: string
                      const: payment_required
                    protocol:
                      type: string
                      const: mpp
                    pack:
                      type: object
                      required:
                      - id
                      - price_gbp
                      - checks
                      properties:
                        id:
                          type: string
                          enum:
                          - starter
                          - standard
                        price_gbp:
                          type: number
                          enum:
                          - 9
                          - 39
                        checks:
                          type: integer
                          enum:
                          - 300
                          - 2000
                    human_checkout_url:
                      type: string
                      format: uri
                    message:
                      type: string
                - type: object
                  required:
                  - error
                  - payment_intent
                  - message
                  properties:
                    error:
                      type: string
                      const: payment_already_used
                    payment_intent:
                      type: string
                    message:
                      type: string
                - type: object
                  description: MPP challenge/problem response for an invalid Payment credential.
        '404':
          description: Pay link is invalid or its key is inactive.
        '409':
          description: Monthly plan needs a person, starter is unavailable, or agent payments are disabled.
          content:
            application/json:
              schema:
                oneOf:
                - type: object
                  required:
                  - error
                  - human_checkout_url
                  - message
                  properties:
                    error:
                      type: string
                      enum:
                      - monthly_needs_a_person
                      - agent_payments_disabled
                    human_checkout_url:
                      type: string
                      format: uri
                    message:
                      type: string
                - type: object
                  required:
                  - error
                  - standard_url
                  - message
                  properties:
                    error:
                      type: string
                      const: starter_not_available
                    standard_url:
                      type: string
                      format: uri
                    message:
                      type: string
        '500':
          description: Payment receipt invalid, balance unavailable, credit status pending, credit failed and refunded, or credit failed and refund pending. Follow the message; do not pay again while the status is unconfirmed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      parameters:
      - name: token
        in: path
        required: true
        schema:
          type: string
        description: Pay token from the returned URL, not an API key.
      - name: p
        in: query
        schema:
          type: string
          enum:
          - starter
          - standard
          - monthly
          default: standard
        description: 'Starter: £9 for 300 checks on the key''s first purchase. Standard: £39 for 2,000 checks. Monthly: browser only.'
      tags:
      - Pay
      operationId: postPayByToken
      x-operation-id-source: derived
components:
  schemas:
    Error:
      type: object
      properties:
        error:
          type: string
        message:
          type: string
  securitySchemes:
    bearer:
      type: http
      scheme: bearer
      description: Optional API key, pc_live_...