Teardrop Admin / Marketplace API
The Admin / Marketplace API from Teardrop — 8 operation(s) for admin / marketplace.
The Admin / Marketplace API from Teardrop — 8 operation(s) for admin / marketplace.
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/teardrop-dev:teardrop-dev-admin-marketplace-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: Teardrop Admin / Marketplace API
description: The open API and billing gateway for autonomous economic agents
version: 2.13.0
tags:
- name: Admin / Marketplace
paths:
/admin/marketplace/process-withdrawal/{withdrawal_id}:
post:
tags:
- Admin / Marketplace
summary: Admin Process Withdrawal
description: 'Admin: process a pending withdrawal (mark earnings as settled).'
operationId: admin_process_withdrawal_admin_marketplace_process_withdrawal__withdrawal_id__post
security:
- HTTPBearer: []
parameters:
- name: withdrawal_id
in: path
required: true
schema:
type: string
title: Withdrawal Id
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/AdminWithdrawalActionResponse'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/admin/marketplace/complete-withdrawal/{withdrawal_id}:
post:
tags:
- Admin / Marketplace
summary: Admin Complete Withdrawal
description: 'Admin: record the on-chain tx_hash for a processed withdrawal.'
operationId: admin_complete_withdrawal_admin_marketplace_complete_withdrawal__withdrawal_id__post
security:
- HTTPBearer: []
parameters:
- name: withdrawal_id
in: path
required: true
schema:
type: string
title: Withdrawal Id
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/CompleteWithdrawalRequest'
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/CompleteWithdrawalResponse'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/admin/marketplace/withdrawals:
get:
tags:
- Admin / Marketplace
summary: Admin List Withdrawals
description: 'Admin: list pending withdrawals, optionally filtered by org.'
operationId: admin_list_withdrawals_admin_marketplace_withdrawals_get
security:
- HTTPBearer: []
parameters:
- name: org_id
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Org Id
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/AdminWithdrawalListResponse'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/admin/marketplace/sweep:
post:
tags:
- Admin / Marketplace
summary: Admin Marketplace Sweep
description: 'Admin: manually trigger a marketplace withdrawal sweep.'
operationId: admin_marketplace_sweep_admin_marketplace_sweep_post
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/MarketplaceSweepResponse'
security:
- HTTPBearer: []
/admin/marketplace/sweep-status:
get:
tags:
- Admin / Marketplace
summary: Admin Marketplace Sweep Status
description: 'Admin: return pending/failed/exhausted withdrawal state for operator review.
Useful for diagnosing why an org''s earnings have not been settled.'
operationId: admin_marketplace_sweep_status_admin_marketplace_sweep_status_get
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/SweepStatusResponse'
security:
- HTTPBearer: []
/admin/marketplace/sweep-retry/{withdrawal_id}:
post:
tags:
- Admin / Marketplace
summary: Admin Marketplace Sweep Retry
description: 'Admin: reset a failed, exhausted, or reconciled in-flight withdrawal.'
operationId: admin_marketplace_sweep_retry_admin_marketplace_sweep_retry__withdrawal_id__post
security:
- HTTPBearer: []
parameters:
- name: withdrawal_id
in: path
required: true
schema:
type: string
title: Withdrawal Id
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/WithdrawalResetResponse'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/admin/marketplace/reset-withdrawal/{withdrawal_id}:
post:
tags:
- Admin / Marketplace
summary: Admin Reset Withdrawal
description: 'Admin: reset a failed or reconciled in-flight withdrawal to pending.'
operationId: admin_reset_withdrawal_admin_marketplace_reset_withdrawal__withdrawal_id__post
security:
- HTTPBearer: []
parameters:
- name: withdrawal_id
in: path
required: true
schema:
type: string
title: Withdrawal Id
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/WithdrawalResetResponse'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/admin/marketplace/settlement-balance:
get:
tags:
- Admin / Marketplace
summary: Admin Marketplace Settlement Balance
description: 'Admin: query the USDC balance of the marketplace settlement CDP wallet.'
operationId: admin_marketplace_settlement_balance_admin_marketplace_settlement_balance_get
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/SettlementBalanceResponse'
security:
- HTTPBearer: []
components:
schemas:
AdminWithdrawalListResponse:
properties:
withdrawals:
items:
$ref: '#/components/schemas/AdminWithdrawalItem'
type: array
title: Withdrawals
type: object
required:
- withdrawals
title: AdminWithdrawalListResponse
SweepStatusResponse:
properties:
pending:
items:
$ref: '#/components/schemas/SweepStatusItem'
type: array
title: Pending
in_flight:
items:
$ref: '#/components/schemas/SweepStatusItem'
type: array
title: In Flight
exhausted:
items:
$ref: '#/components/schemas/SweepStatusItem'
type: array
title: Exhausted
type: object
required:
- pending
- in_flight
- exhausted
title: SweepStatusResponse
SweepStatusItem:
properties:
id:
type: string
title: Id
org_id:
type: string
title: Org Id
amount_usdc:
type: integer
title: Amount Usdc
status:
type: string
title: Status
sweep_attempt_count:
type: integer
title: Sweep Attempt Count
last_sweep_error:
anyOf:
- type: string
- type: 'null'
title: Last Sweep Error
next_sweep_at:
anyOf:
- type: string
- type: 'null'
title: Next Sweep At
description: ISO 8601 timestamp; null if not scheduled.
created_at:
type: string
title: Created At
description: ISO 8601 timestamp.
type: object
required:
- id
- org_id
- amount_usdc
- status
- sweep_attempt_count
- created_at
title: SweepStatusItem
CompleteWithdrawalResponse:
properties:
status:
type: string
const: completed
title: Status
tx_hash:
type: string
title: Tx Hash
type: object
required:
- status
- tx_hash
title: CompleteWithdrawalResponse
SettlementBalanceResponse:
properties:
account:
type: string
title: Account
address:
type: string
title: Address
chain_id:
type: integer
title: Chain Id
balance_usdc:
type: integer
title: Balance Usdc
type: object
required:
- account
- address
- chain_id
- balance_usdc
title: SettlementBalanceResponse
WithdrawalResetResponse:
properties:
status:
type: string
const: pending
title: Status
id:
type: string
title: Id
type: object
required:
- status
- id
title: WithdrawalResetResponse
CompleteWithdrawalRequest:
properties:
tx_hash:
type: string
maxLength: 100
minLength: 10
title: Tx Hash
type: object
required:
- tx_hash
title: CompleteWithdrawalRequest
AdminWithdrawalItem:
properties:
id:
type: string
title: Id
org_id:
type: string
title: Org Id
amount_usdc:
type: integer
title: Amount Usdc
wallet:
type: string
title: Wallet
status:
type: string
title: Status
created_at:
type: string
title: Created At
description: ISO 8601 timestamp.
settled_at:
anyOf:
- type: string
- type: 'null'
title: Settled At
description: ISO 8601 timestamp; null until settled.
type: object
required:
- id
- org_id
- amount_usdc
- wallet
- status
- created_at
title: AdminWithdrawalItem
HTTPValidationError:
properties:
detail:
items:
$ref: '#/components/schemas/ValidationError'
type: array
title: Detail
type: object
title: HTTPValidationError
MarketplaceSweepResponse:
properties:
processed:
type: integer
title: Processed
type: object
required:
- processed
title: MarketplaceSweepResponse
AdminWithdrawalActionResponse:
properties:
id:
type: string
title: Id
org_id:
type: string
title: Org Id
amount_usdc:
type: integer
title: Amount Usdc
status:
type: string
title: Status
type: object
required:
- id
- org_id
- amount_usdc
- status
title: AdminWithdrawalActionResponse
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
securitySchemes:
HTTPBearer:
type: http
scheme: bearer