Meta Council Credits API
The credits API from Meta Council — 16 operation(s) for credits.
The credits API from Meta Council — 16 operation(s) for credits.
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/meta-council-com:meta-council-com-credits-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: Meta Council Credits API
description: 'Multi-expert LLM reasoning platform. A query is routed to a panel of expert AI agents (290+ available, 30 pre-built panels), each writing an independent analysis, then a synthesis step combines them into a decision document with executive summary, risk matrix, consensus + dissent, and an action plan.
Authenticate via `Authorization: Bearer ` (user-facing routes) or `Authorization: Bearer mc_...` / `X-API-Key: mc_...` (developer API under `/api/v1/`).
Ticket validation ingestion at `POST /api/tickets/{ticket_id}/scenarios/{scenario_id}/validation-runs` accepts a JWT or an API key carrying the opt-in `tickets:validate` scope; owner and actor identity are always derived from that verified credential.
Smart model routing: requests default to Claude Haiku 4.5 with a self-hosted Qwen fallback. Anonymous calls to `/api/council/run` are rate-limited; programmatic access requires an API key created at `/api/v1/keys`.'
contact:
name: Meta Council
url: https://meta-council.com/
license:
name: Proprietary
version: 0.3.0
tags:
- name: Credits
paths:
/api/credits/wallet:
get:
tags:
- Credits
summary: Get Wallet
description: 'The caller''s balance, split into what can be spent and what can be
cashed out, with the pricing constants the UI needs to render terms.'
operationId: get_wallet_api_credits_wallet_get
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
/api/credits/ledger:
get:
tags:
- Credits
summary: Get Ledger
description: 'Every movement on the caller''s wallet, newest first — the statement.
Read-only by construction: ledger rows are never updated or deleted
anywhere in the codebase, so what this returns is what happened.'
operationId: get_ledger_api_credits_ledger_get
parameters:
- name: limit
in: query
required: false
schema:
type: integer
maximum: 200
minimum: 1
default: 50
title: Limit
- name: offset
in: query
required: false
schema:
type: integer
minimum: 0
default: 0
title: Offset
- name: entry_type
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Entry Type
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/api/credits/purchase:
post:
tags:
- Credits
summary: Create Credit Purchase
description: 'Start a Stripe Checkout for a credit top-up.
Nothing is credited here. The wallet only moves when Stripe tells us the
charge settled (``checkout.session.completed`` in web/routers/billing.py),
so an abandoned or failed checkout leaves no balance behind.
``purpose=credit_purchase`` in the session metadata is what routes the
webhook to the credit grant rather than the subscription or marketplace
branches, which share the same event type.'
operationId: create_credit_purchase_api_credits_purchase_post
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/PurchaseRequest'
required: true
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/api/credits/providers:
get:
tags:
- Credits
summary: List Providers
description: 'Browse the brokerage catalog.
Default view is every chargeable (``active``) provider plus the caller''s
own listings in any state, so a draft you are still configuring is visible
to you and to nobody else. ``mine=true`` narrows to just yours.'
operationId: list_providers_api_credits_providers_get
parameters:
- name: mine
in: query
required: false
schema:
type: boolean
default: false
title: Mine
- name: kind
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Kind
- name: category
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Category
- name: limit
in: query
required: false
schema:
type: integer
maximum: 200
minimum: 1
default: 50
title: Limit
- name: offset
in: query
required: false
schema:
type: integer
minimum: 0
default: 0
title: Offset
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
post:
tags:
- Credits
summary: Create Provider
description: 'Register a payee on the brokerage.
Created ``draft`` and therefore not chargeable: a price has to be
deliberately activated before it can bill anyone, so a half-finished
listing can never take someone''s credits.'
operationId: create_provider_api_credits_providers_post
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/ProviderCreateRequest'
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/api/credits/providers/{provider_id}:
patch:
tags:
- Credits
summary: Update Provider
description: 'Update your own listing. Slug and owner are immutable — a live slug is
what callers charge against, and repointing it would silently redirect
someone else''s spend.'
operationId: update_provider_api_credits_providers__provider_id__patch
parameters:
- name: provider_id
in: path
required: true
schema:
type: string
title: Provider Id
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/ProviderUpdateRequest'
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/api/credits/providers/{slug}/charge:
post:
tags:
- Credits
summary: Charge Provider
description: 'Pay a provider for ``units`` of whatever it sells.
This is the brokerage in one call: the payer''s wallet is debited, the
provider owner''s earned balance is credited, the platform''s take is routed
to the fee wallet, and a receipt row is written — all in one transaction,
so a failure anywhere leaves no money moved and no receipt.
Supplying ``idempotency_key`` makes a retry safe: the second call returns
the original receipt instead of billing again. Without one, a retry is a
second purchase, because the server cannot tell the two apart.
Charging a provider does **not** grant access to its data or relax any
data-handling policy — it settles payment for a call the caller is
otherwise entitled to make. Personal data acquired through a governed
source stays governed by that source''s posture
(web/marketing_source_catalog.py).'
operationId: charge_provider_api_credits_providers__slug__charge_post
parameters:
- name: slug
in: path
required: true
schema:
type: string
title: Slug
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/ChargeRequest'
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/api/credits/charges:
get:
tags:
- Credits
summary: List Charges
description: 'Receipts — what the caller spent (``role=payer``) or what their own
providers took in (``role=provider``).'
operationId: list_charges_api_credits_charges_get
parameters:
- name: role
in: query
required: false
schema:
type: string
pattern: ^(payer|provider)$
default: payer
title: Role
- name: limit
in: query
required: false
schema:
type: integer
maximum: 200
minimum: 1
default: 50
title: Limit
- name: offset
in: query
required: false
schema:
type: integer
minimum: 0
default: 0
title: Offset
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/api/credits/cashouts/quote:
get:
tags:
- Credits
summary: Quote Cashout
description: 'Exact terms for a cashout of this size, before committing to it.
Declared before ``/cashouts/{id}`` would be — FastAPI matches in
declaration order, so a literal path that could be read as an id has to
come first.
Range-checked like the filing endpoint even though it moves nothing: a
pricing calculator is the cheapest place to learn what the arithmetic will
accept, so it is not a surface to leave open while the one next to it is
watched.'
operationId: quote_cashout_api_credits_cashouts_quote_get
parameters:
- name: credits
in: query
required: true
schema:
type: integer
title: Credits
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/api/credits/cashouts:
get:
tags:
- Credits
summary: List Cashouts
description: The caller's cashout requests, newest first.
operationId: list_cashouts_api_credits_cashouts_get
parameters:
- name: limit
in: query
required: false
schema:
type: integer
maximum: 200
minimum: 1
default: 50
title: Limit
- name: offset
in: query
required: false
schema:
type: integer
minimum: 0
default: 0
title: Offset
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
post:
tags:
- Credits
summary: Create Cashout
description: 'Request a payout of earned credits.
Purchased credits are not eligible and are not consulted here — the
balance this checks against is ``earned - held``.
**Filing deducts immediately and locks the account.** The requested amount
leaves ``spendable_credits`` and ``cashout_eligible_credits`` the moment
this returns, and the wallet is locked for the duration: no spending, and
no second withdrawal, until the request settles or is released. The money
itself only leaves when an operator marks it paid. The lock is lifted by
cancel, reject and mark-paid; an operator freeze set for any other reason
is untouched by all three.
The fee is frozen onto the request at this moment, so retuning the fee
env vars later cannot change the terms someone already accepted.'
operationId: create_cashout_api_credits_cashouts_post
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/CashoutCreateRequest'
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/api/credits/cashouts/{cashout_id}/cancel:
post:
tags:
- Credits
summary: Cancel Cashout
description: Withdraw a request that has not been paid yet, releasing the hold.
operationId: cancel_cashout_api_credits_cashouts__cashout_id__cancel_post
parameters:
- name: cashout_id
in: path
required: true
schema:
type: string
title: Cashout Id
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/api/credits/admin/cashouts:
get:
tags:
- Credits
summary: Admin List Cashouts
description: Operator queue of payout requests awaiting a human decision.
operationId: admin_list_cashouts_api_credits_admin_cashouts_get
parameters:
- name: status
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Status
- name: limit
in: query
required: false
schema:
type: integer
maximum: 200
minimum: 1
default: 100
title: Limit
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/api/credits/admin/cashouts/{cashout_id}/decide:
post:
tags:
- Credits
summary: Admin Decide Cashout
description: 'Approve, reject, or record payment of a cashout request.
``mark_paid`` is the only action that destroys credits, and it asserts
that money already moved on an external rail — ``external_payout_ref``
should carry that rail''s identifier so the internal burn is traceable to
a real transfer. Nothing here sends money; this codebase has no payout
rail wired (docs/CREDITS_AND_BROKERAGE.md, "What is gated on Dave").'
operationId: admin_decide_cashout_api_credits_admin_cashouts__cashout_id__decide_post
parameters:
- name: cashout_id
in: path
required: true
schema:
type: string
title: Cashout Id
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/CashoutDecisionRequest'
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/api/credits/admin/refund-preview:
get:
tags:
- Credits
summary: Admin Refund Preview
description: 'The most that may still be refunded against a credit top-up.
**Read this before issuing a refund.** Policy is that a buyer is refunded
only what they still hold, and this is the figure that expresses it.
Refunds are issued by a human in the Stripe console, and the webhook that
claws credits back is reactive — it learns about a refund after the money
has gone. So the cap cannot be *enforced* at the moment of refunding; it
can only be published, here, in time to be used.
The number moves as the buyer spends. Read it immediately before
refunding, not from a screen opened an hour ago.
A refund larger than ``max_refundable_credits`` is not blocked by
anything. It leaves credits in circulation with no dollars behind them,
freezes the wallet, and raises an operator alarm in the logs.'
operationId: admin_refund_preview_api_credits_admin_refund_preview_get
parameters:
- name: payment_intent
in: query
required: true
schema:
type: string
minLength: 3
maxLength: 64
title: Payment Intent
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/api/credits/admin/wallets/{user_id}/unfreeze:
post:
tags:
- Credits
summary: Admin Unfreeze Wallet
description: 'Lift an operator freeze after review.
The counterpart to every automatic freeze in this system — a dispute, a
refund shortfall, a tampering attempt. Without a way back, a false
positive would lock someone out of their own balance permanently, which
turns a containment measure into a confiscation.
Only ``frozen`` is cleared. ``withdrawal_locked`` is owned by the cashout
lifecycle and is not an operator toggle: an in-flight withdrawal is
released by cancelling, rejecting or paying the request that created it,
so clearing it by hand here would unfence credits a pending payout is
counting on.'
operationId: admin_unfreeze_wallet_api_credits_admin_wallets__user_id__unfreeze_post
parameters:
- name: user_id
in: path
required: true
schema:
type: string
title: User Id
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/WalletUnfreezeRequest'
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/api/credits/admin/wallets/{user_id}/release-withdrawal-lock:
post:
tags:
- Credits
summary: Admin Release Withdrawal Lock
description: 'Clear a withdrawal lock that no open cashout justifies.
Deliberately a separate endpoint from ``unfreeze``, and deliberately not a
flag on it: the two holds end for different reasons, and one call that
lifted both would let an operator clear a fraud freeze while meaning only
to unstick a withdrawal.
**It can only ever repair an inconsistency.** If the wallet really does
have a cashout in ``requested`` or ``approved``, this refuses — that lock
is doing its job, and the way out is to cancel, reject or pay the request,
each of which releases the held credits as well as the flag. Releasing the
flag alone would leave the credits fenced and let the wallet file a second
withdrawal against a balance the first one is already counting on.
So the only state it acts on is a lock with nothing behind it: the
orphan the startup reconcile is careful never to create, and that a
future bug or a hand-run ``UPDATE`` still could.'
operationId: admin_release_withdrawal_lock_api_credits_admin_wallets__user_id__release_withdrawal_lock_post
parameters:
- name: user_id
in: path
required: true
schema:
type: string
title: User Id
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/WalletUnfreezeRequest'
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/api/credits/admin/abuse-events:
get:
tags:
- Credits
summary: Admin List Abuse Events
description: 'Credit amounts that were submitted and refused, newest first.
The review queue for anything the validator flagged. ``notified_at`` being
null on a ``tamper`` row means the account was frozen but the warning
email has not gone out — worth watching, because the mail relay has been
down before and a freeze nobody was told about is a support ticket waiting
to happen.'
operationId: admin_list_abuse_events_api_credits_admin_abuse_events_get
parameters:
- name: classification
in: query
required: false
schema:
anyOf:
- type: string
pattern: ^(tamper|out_of_range)$
- type: 'null'
title: Classification
- name: limit
in: query
required: false
schema:
type: integer
maximum: 200
minimum: 1
default: 100
title: Limit
- name: offset
in: query
required: false
schema:
type: integer
minimum: 0
default: 0
title: Offset
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
components:
schemas:
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
CashoutDecisionRequest:
properties:
action:
type: string
pattern: ^(approve|reject|mark_paid)$
title: Action
reason:
anyOf:
- type: string
maxLength: 500
- type: 'null'
title: Reason
external_payout_ref:
anyOf:
- type: string
maxLength: 200
- type: 'null'
title: External Payout Ref
type: object
required:
- action
title: CashoutDecisionRequest
ProviderCreateRequest:
properties:
slug:
type: string
maxLength: 60
minLength: 3
title: Slug
name:
type: string
maxLength: 160
minLength: 1
title: Name
kind:
type: string
maxLength: 20
title: Kind
default: api
category:
anyOf:
- type: string
maxLength: 40
- type: 'null'
title: Category
description:
anyOf:
- type: string
maxLength: 1000
- type: 'null'
title: Description
unit_label:
type: string
maxLength: 40
minLength: 1
title: Unit Label
default: call
price_credits_per_unit:
type: integer
title: Price Credits Per Unit
homepage_url:
anyOf:
- type: string
maxLength: 500
- type: 'null'
title: Homepage Url
docs_url:
anyOf:
- type: string
maxLength: 500
- type: 'null'
title: Docs Url
source_key:
anyOf:
- type: string
maxLength: 80
- type: 'null'
title: Source Key
type: object
required:
- slug
- name
- price_credits_per_unit
title: ProviderCreateRequest
CashoutCreateRequest:
properties:
credits:
type: integer
title: Credits
method:
type: string
maxLength: 20
title: Method
default: manual
destination_ref:
anyOf:
- type: string
maxLength: 200
- type: 'null'
title: Destination Ref
note:
anyOf:
- type: string
maxLength: 500
- type: 'null'
title: Note
type: object
required:
- credits
title: CashoutCreateRequest
ChargeRequest:
properties:
units:
type: integer
title: Units
default: 1
idempotency_key:
anyOf:
- type: string
maxLength: 120
- type: 'null'
title: Idempotency Key
memo:
anyOf:
- type: string
maxLength: 300
- type: 'null'
title: Memo
type: object
title: ChargeRequest
HTTPValidationError:
properties:
detail:
items:
$ref: '#/components/schemas/ValidationError'
type: array
title: Detail
type: object
title: HTTPValidationError
PurchaseRequest:
properties:
credits:
type: integer
title: Credits
type: object
required:
- credits
title: PurchaseRequest
WalletUnfreezeRequest:
properties:
reason:
anyOf:
- type: string
maxLength: 500
- type: 'null'
title: Reason
type: object
title: WalletUnfreezeRequest
ProviderUpdateRequest:
properties:
name:
anyOf:
- type: string
maxLength: 160
minLength: 1
- type: 'null'
title: Name
category:
anyOf:
- type: string
maxLength: 40
- type: 'null'
title: Category
description:
anyOf:
- type: string
maxLength: 1000
- type: 'null'
title: Description
unit_label:
anyOf:
- type: string
maxLength: 40
minLength: 1
- type: 'null'
title: Unit Label
price_credits_per_unit:
anyOf:
- type: integer
- type: 'null'
title: Price Credits Per Unit
status:
anyOf:
- type: string
maxLength: 12
- type: 'null'
title: Status
homepage_url:
anyOf:
- type: string
maxLength: 500
- type: 'null'
title: Homepage Url
docs_url:
anyOf:
- type: string
maxLength: 500
- type: 'null'
title: Docs Url
source_key:
anyOf:
- type: string
maxLength: 80
- type: 'null'
title: Source Key
type: object
title: ProviderUpdateRequest
securitySchemes:
VotingDeveloperBearer:
type: http
description: 'Meta Council developer API key in Authorization: Bearer.'
scheme: bearer
VotingDeveloperApiKey:
type: apiKey
description: Meta Council developer API key in X-API-Key.
in: header
name: X-API-Key
VotingJWTBearer:
type: http
description: Meta Council account access token.
scheme: bearer