Stabledrop Request API

The Request API from Stabledrop — 2 operation(s) for request.

GitHub OpenAPI

Operations 2

POST /request Ask to be paid: a link whoever opens it can pay, buyer not yet named #
POST /request/{request_id}/prepare Pay a request: become its buyer, and get how to fund its payment contract #

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/stabledrop-me:stabledrop-me-request-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

stabledrop-me-request-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Stabledrop Me Request API
  version: 0.1.0
  termsOfService: https://stabledrop.me/terms-of-service/
  description: 'Operations tagged Request across 2 of this provider''s published API definitions: openapi.json, stabledrop-me-openapi.json. Each path carries the servers of the definition it was published in.'
tags:
- name: Request
paths:
  /request:
    post:
      summary: 'Ask to be paid: a link whoever opens it can pay, buyer not yet named'
      description: 'The seller is paid; the buyer is whoever opens the link and pays first —

        `POST /request/{id}/prepare` names them. Nobody is emailed; share `pay_link` (or a QR of it).


        - **No `seller`**: signed in only. The request is stored in the caller''s name and paid into

        their wallet, as /create always has.

        - **`seller` named** (a wallet or an email), with an API access key: no session needed. The

        seller''s wallet is in the payment contract''s address, so the request can pay them and nobody

        else. It is not listed on their dashboard until somebody claims it, and is limited per

        seller wallet each hour.

        - **A merchant API key** (`Authorization: Bearer sd_live_…`, made on the site under API keys):

        the key''s owner is the seller, exactly as if they were signed in — the request is on their

        dashboard at once, and not limited. A `seller`, if given, must be them.'
      operationId: create_request_request_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RequestBody'
        required: true
      responses:
        '200':
          description: The request is on file. Send `pay_link` to whoever is paying.
          content:
            application/json:
              schema:
                additionalProperties: true
                type: object
                title: Response Create Request Request Post
              example:
                request_id: 6710c0ffee00000000000001
                pay_link: https://stabledrop.me/contract-pay?contractId=6710c0ffee00000000000001
                seller: '0xc9D0602A87E55116F633b1A1F95D083Eb115f942'
                caller:
                  authenticated: true
                  via: api_key
                  user_id: u-42
                  wallet: '0xc9D0602A87E55116F633b1A1F95D083Eb115f942'
                  key_label: WhatsApp bot
                terms:
                  notice: …
                  url: https://stabledrop.me/terms-of-service/
        '400':
          description: Something about the terms.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: No `seller` named and no session or merchant key to say who is paid; or, as on every endpoint, no admission. No session, API access key or merchant API key; or one that is unknown, expired, revoked, or made for terms that have since changed. `detail.error` is `api_access_required`, `detail.reason` says which (`missing`, `invalid`, `terms_changed`, `terms_not_accepted`), `detail.access_url` is where to get a key, and `detail.docs_url` is this reference's section on sending one.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
        '429':
          description: Too many requests for this seller without an API key this hour. The message links to where the seller can create one; a key has no such limit.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '502':
          description: A service we depend on could not answer.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
      - Bearer: []
      - Session cookie: []
      tags:
      - Request
  /request/{request_id}/prepare:
    post:
      summary: 'Pay a request: become its buyer, and get how to fund its payment contract'
      description: '**Signed in only**: the caller''s wallet becomes the buyer — who may dispute and receives

        any refund. Answers exactly as `/prepare` does for the request''s terms.


        ⚠️ EVERY TERM COMES FROM THE STORED REQUEST, never from the caller: the seller, amount,

        maturity, token and arbiter are what the seller asked for. The request''s id is the

        `external_id`, so the address is the one /contract-pay has always derived for it.'
      operationId: prepare_request_request__request_id__prepare_post
      security:
      - Bearer: []
      - Session cookie: []
      parameters:
      - name: request_id
        in: path
        required: true
        schema:
          type: string
          title: Request Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RequestPrepareBody'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
                title: Response Prepare Request Request  Request Id  Prepare Post
        '400':
          description: Expired, your own, or otherwise unpayable.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: 'Not signed in: the buyer is your wallet, so this needs a session, not an API key. No session, API access key or merchant API key; or one that is unknown, expired, revoked, or made for terms that have since changed. `detail.error` is `api_access_required`, `detail.reason` says which (`missing`, `invalid`, `terms_changed`, `terms_not_accepted`), `detail.access_url` is where to get a key, and `detail.docs_url` is this reference''s section on sending one.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '403':
          description: Already claimed by another wallet.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: No such request.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '409':
          description: Already paid, or no longer payable.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
        '502':
          description: A service we depend on could not answer.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      tags:
      - Request
components:
  schemas:
    RequestBody:
      properties:
        seller:
          anyOf:
          - type: string
          - type: 'null'
          title: Seller
          description: 'Who is paid: a wallet, or an email (resolved to that person''s wallet, made for them if they have never signed in). Omit to be paid yourself, which needs you signed in. A request for anyone else needs no sign-in: nobody is emailed, and it is not listed on the seller''s dashboard until somebody claims it.'
        amount:
          type: integer
          exclusiveMinimum: 0
          title: Amount
          description: In the TOKEN's base units (1 USDC = 1000000).
        expiry_timestamp:
          type: integer
          minimum: 0
          title: Expiry Timestamp
          description: Unix time the dispute window closes. 0 settles instantly.
        description:
          type: string
          maxLength: 160
          minLength: 1
          title: Description
          description: What the payment is for, 1 to 160 characters.
        token_symbol:
          type: string
          title: Token Symbol
          description: A configured token, e.g. USDC.
          default: USDC
        arbiter:
          anyOf:
          - type: string
          - type: 'null'
          title: Arbiter
          description: 'Who decides a dispute: a wallet, or an email address. An email is resolved to that person''s wallet by contractservice when the request is stored (a wallet is made for them if they have never signed in), because the arbiter is in the payment contract''s address. Omit for the default arbiter.'
        brand:
          anyOf:
          - type: string
            pattern: ^[a-z0-9-]{2,32}$
          - type: 'null'
          title: Brand
          description: White-label partner id (`?b=`). Attribution only.
        product_name:
          anyOf:
          - type: string
            maxLength: 160
          - type: 'null'
          title: Product Name
          description: Display only.
      type: object
      required:
      - amount
      - expiry_timestamp
      - description
      title: RequestBody
      description: 'A payment request: the terms, without the buyer. The seller — who is paid — is the

        signed-in caller, or the `seller` named here.'
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    RequestPrepareBody:
      properties:
        payer:
          anyOf:
          - type: string
          - type: 'null'
          title: Payer
          description: The wallet that will sign, when paying by signature. Usually the caller's.
      type: object
      title: RequestPrepareBody
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError
    ErrorResponse:
      properties:
        detail:
          type: string
          title: Detail
          description: What was wrong, in terms a machine can branch on.
      type: object
      required:
      - detail
      title: ErrorResponse
  securitySchemes:
    Bearer:
      type: http
      description: An API access key (`sd_access_…`, from the site's /myAPIAccessCode page), a merchant API key (`sd_live_…`, created on the site under API keys), or a signed-in user's session token.
      scheme: bearer
    Session_cookie:
      type: apiKey
      description: A signed-in user's session, as the site's browser sends it.
      in: cookie
      name: AUTH-TOKEN
x-refined-from:
- openapi.json
- stabledrop-me-openapi.json