Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent
with a free APIs.io key —
sign in with
GitHub,
Google or
LinkedIn.
No form to fill in; signing in shares your email address with us (Privacy).
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: Debitmydata Donations API
version: 0.55.27
description: 'Operations tagged donations across 2 of this provider''s published API definitions: debitmydata-openapi.json, debitmydata-openapi.json. Each path carries the servers of the definition it was published in.'
tags:
- name: Donations
paths:
/v1/donations/{name}:
post:
tags:
- Donations
summary: Donate (inference donation), paid with x402
description: 'A voluntary donation towards the AI inference behind DebitMyData''s agentic services, in an amount you choose (`amount_usd`), paid in USDC on Base through x402. Call it with the amount: it answers **402** with a `PAYMENT-REQUIRED` header. Call it again with the same body and your signed payment in the `PAYMENT-SIGNATURE` header: the payment is settled, checked on chain, and the answer carries a receipt signed by DebitMyData (or 202 while confirmations take longer; then read `status_url`). Sending the same signed payment again returns the same donation. A call without `amount_usd` answers 402 with example terms (for x402 tools) and cannot be paid.'
operationId: make_donation_v1_donations__name__post
parameters:
- name: name
in: path
required: true
schema:
type: string
pattern: ^[a-z][a-z0-9-]{1,40}$
title: Name
- name: PAYMENT-SIGNATURE
in: header
required: false
schema:
anyOf:
- type: string
- type: 'null'
description: The base64 x402 PaymentPayload answering the 402.
title: Payment-Signature
description: The base64 x402 PaymentPayload answering the 402.
requestBody:
content:
application/json:
schema:
anyOf:
- $ref: '#/components/schemas/DonationRequest'
- type: 'null'
title: Body
responses:
'200':
description: 'This signed payment was already received: the same donation.'
content:
application/json:
schema: {}
'201':
description: 'Paid and settled: the donation and its signed receipt.'
'202':
description: Payment received and confirming; read status_url shortly.
'400':
description: The PAYMENT-SIGNATURE header is not a valid x402 payment.
'402':
description: Payment required, or the payment was refused.
'404':
description: Unknown donation.
'409':
description: The authorization was already used, or the payment failed.
'422':
description: amount_usd is outside the accepted range.
'503':
description: Donations are not open on this gateway yet.
/v1/donations/{purchase_id}:
get:
tags:
- Donations
summary: 'A donation: payment status and, once settled, its signed receipt'
operationId: get_donation_v1_donations__purchase_id__get
parameters:
- name: purchase_id
in: path
required: true
schema:
type: string
pattern: ^dmd_purchase_[0-9A-HJKMNP-TV-Z]{26}$
description: purchase_id (starts with dmd_purchase_)
title: Purchase Id
description: purchase_id (starts with dmd_purchase_)
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'404':
description: Unknown donation.
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
components:
schemas:
HTTPValidationError:
properties:
detail:
items:
$ref: '#/components/schemas/ValidationError'
type: array
title: Detail
type: object
title: HTTPValidationError
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
DonationRequest:
properties:
amount_usd:
anyOf:
- type: string
pattern: ^(0|[1-9][0-9]{0,8})(\.[0-9]{1,2})?$
- type: 'null'
title: Amount Usd
description: The donation in US dollars, e.g. "5.00" (paid as the same amount of USDC).
donor_name:
anyOf:
- type: string
maxLength: 80
minLength: 1
- type: 'null'
title: Donor Name
description: Optional, shown in the receipt.
donor_did:
anyOf:
- type: string
pattern: ^did:[a-z0-9]+:[A-Za-z0-9._:%-]{1,200}$
- type: 'null'
title: Donor Did
description: Optional DID-LLM of the donor; the receipt is issued to it. Otherwise the receipt names the paying wallet.
additionalProperties: false
type: object
title: DonationRequest
examples:
- amount_usd: '5.00'
donor_name: ResearchClaw-01
x-refined-from:
- debitmydata-openapi.json
- debitmydata-openapi.json
x-provenance:
method: harvested
publisher: Debit My Data
source: https://id.debitmydata.io/openapi.json
note: split by refine-openapis from the provider's own published document, verified by fetch (openapi/_original/*.fetch.json);
stamped by stamp-openapi-provenance.py (roadmap#793)