Counterparties API
Who agents pay, resolved from card descriptors, domains, x402 payTo addresses and API hosts.
Base URL https://api.ndstill.com/v2. Send Authorization: Bearer with a key, Ndstill-Version: 2026-11-01, and an Idempotency-Key on every POST. Conventions, scopes and errors are in the API overview and Errors and decline reasons. Examples come from the mock backend; the shapes are the TypeScript types in packages/api.
List counterparties#
/v2/counterparties- categorystring
- risk_tierstring enum
"low""standard""elevated""blocked" - cursorstring
- limitnumber
1–200, default 50.
- qstring
Free-text search over names, ids and descriptors.
- sortstring
Sort field, prefix "-" for descending ("-created_at" is the default).
- created_gteTimestamp
created_at >= (ISO).
- created_lteTimestamp
created_at <= (ISO).
Returns a list envelope: object "list", data[], has_more, next_cursor (pass it back as cursor) and total when cheap to count. Items:
- idId
- object"counterparty"
- canonical_namestring
- categorystring
- domainsstring[]
- mcc_setstring[]
- risk_tierstring enum
"low""standard""elevated""blocked" - aliasesobject[]
3 fields
- kindstring enum
"card_descriptor""mcc_merchant_id""domain""x402_payto""api_host""stripe_account" - valuestring
- confidencenumber
- railsRail[]
"card""network_token""checkout_token""stablecoin""bank""ai""cloud" - first_paid_atTimestamp | null
Org-scoped stats.
- paymentsnumber
- spend_totalMoney
An amount: integer minor units + asset.
Money: 2 fields
- amountnumber
- assetAssetCode
"USD""USDC""EUR""GBP"
- accepts_ndstillboolean
- 400invalid_request
A query parameter is invalid.
- 401authentication
The key or token is missing, expired or revoked.
- 403permission
The key's scopes or the person's role don't allow this.
- 429rate_limited
Slow down; retry after the Retry-After header.
curl -X GET "https://api.ndstill.com/v2/counterparties?limit=2" \
-H "Authorization: Bearer $NDSTILL_API_KEY" \
-H "Ndstill-Version: 2026-11-01"{
"object": "list",
"data": [
{
"id": "cpy_01JZVEZAMEY0DCPXEZRYN82J0Y",
"object": "counterparty",
"canonical_name": "Scale AI",
"category": "Data labeling",
"domains": [
"scale.com"
],
"mcc_set": [
"7399"
],
"risk_tier": "standard",
"aliases": [
{
"kind": "domain",
"value": "scale.com",
"confidence": 0.99
}
],
"rails": [
"bank"
],
"first_paid_at": "2026-09-24T11:27:43.069Z",
"payments": 27,
"spend_total": {
"amount": 7194755,
"asset": "USD"
},
"accepts_ndstill": false
},
{
"id": "cpy_01JZVEZAME598YRF79G77PKSVF",
"object": "counterparty",
"canonical_name": "Amazon Web Services",
"category": "Cloud",
"domains": [
"aws.amazon.com"
],
"mcc_set": [
"4816"
],
"risk_tier": "low",
"aliases": [
{
"kind": "card_descriptor",
"value": "AWS EMEA",
"confidence": 0.98
},
{
"kind": "domain",
"value": "aws.amazon.com",
"confidence": 0.99
}
],
"rails": [
"cloud"
],
"first_paid_at": "2026-09-27T12:40:33.734Z",
"payments": 64,
"spend_total": {
"amount": 4821845,
"asset": "USD"
},
"accepts_ndstill": false
}
],
"has_more": true,
"next_cursor": "Mg==",
"total": 43
}Runs against the in-browser mock with a test key. Nothing leaves your browser.
Retrieve a counterparty#
/v2/counterparties/{id}- idIdrequired
A prefixed ID from this org.
The same Counterparty object as List counterparties.
- 401authentication
The key or token is missing, expired or revoked.
- 403permission
The key's scopes or the person's role don't allow this.
- 404not_found
No object with that id in this org.
- 429rate_limited
Slow down; retry after the Retry-After header.
curl -X GET "https://api.ndstill.com/v2/counterparties/cpy_01JZVEZAMEY0DCPXEZRYN82J0Y" \
-H "Authorization: Bearer $NDSTILL_API_KEY" \
-H "Ndstill-Version: 2026-11-01"{
"id": "cpy_01JZVEZAMEY0DCPXEZRYN82J0Y",
"object": "counterparty",
"canonical_name": "Scale AI",
"category": "Data labeling",
"domains": [
"scale.com"
],
"mcc_set": [
"7399"
],
"risk_tier": "standard",
"aliases": [
{
"kind": "domain",
"value": "scale.com",
"confidence": 0.99
}
],
"rails": [
"bank"
],
"first_paid_at": "2026-09-24T11:27:43.069Z",
"payments": 27,
"spend_total": {
"amount": 7194755,
"asset": "USD"
},
"accepts_ndstill": false
}Runs against the in-browser mock with a test key. Nothing leaves your browser.