Vestiarion Counterparties API
The Counterparties API from Vestiarion, for counterparties.
The Counterparties API from Vestiarion, for counterparties.
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/vestiarion-xyz:vestiarion-xyz-counterparties-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: Vestiarion Counterparties API
version: v1
description: Read a workspace's ledger, books, counterparties, milestones, treasury and insights, each payment's evidence and receipt and the monthly close pack, and add counterparties, invoices, milestones and payee links, with a workspace API key.
servers:
- url: https://www.vestiarion.xyz
tags:
- name: Counterparties
paths:
/api/v1/counterparties:
get:
operationId: list-counterparties
summary: List counterparties
description: Vendors, clients and contractors, newest first, with the row id breaking equal timestamps. Both the business's baseline payment limit and the current limit derived from the risk tier are reported. `performanceScore` is `null` when there is no history.
tags:
- Counterparties
security:
- bearerAuth: []
parameters:
- name: limit
in: query
required: false
description: How many items to return. Defaults to 50; a larger value is capped at 200.
schema:
type: integer
default: 50
minimum: 1
maximum: 200
- name: cursor
in: query
required: false
description: 'The previous response''s `page.nextCursor`, passed back unchanged to continue. Opaque: never decode or construct one. A cursor this endpoint could not have issued is refused with `400`.'
schema:
type: string
- name: role
in: query
required: false
description: Only counterparties with this role.
schema:
type: string
enum:
- vendor
- client
- contractor
- name: riskLevel
in: query
required: false
description: Only counterparties at this risk tier.
schema:
type: string
enum:
- unscreened
- clear
- medium
- high
responses:
'200':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/ListCounterpartiesResponse'
example:
data:
- id: dc5e5751-3287-46c9-8bd1-83a42ab02699
name: Anthropic API Services
role: vendor
address: '0x90a5821e8a59b711777c49d11a283c9c76cd811e'
chain: ARC-TESTNET
jurisdiction: null
riskLevel: clear
riskNotes: No match against watchlist
baselinePaymentLimit: 5
paymentLimit: 5
lastScreenedAt: '2026-09-24T18:32:57.327+00:00'
performanceScore: 0.667
performanceInputs:
heldOrFlagged: 0
heldByOurPolicy: 1
riskTierChanges: 0
duplicateSubmissions: 0
informationRequested: 0
paidWithoutIntervention: 1
createdAt: '2026-09-24T11:54:57.677284+00:00'
page:
nextCursor: eyJrIjoiMjAyNi0wOS0yNFQxMTo1NDo1Ny42NzcyODQrMDA6MDAiLCJpZCI6ImRjNWU1NzUxLTMyODctNDZjOS04YmQxLTgzYTQyYWIwMjY5OSJ9
hasMore: true
count: 1
'400':
description: invalid_request
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
'401':
description: unauthorized
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
'403':
description: forbidden
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
'500':
description: internal
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
post:
operationId: create-counterparty
summary: Add a counterparty
description: 'Adds a vendor, contractor or client, checked by the rules of the console''s form and screened as one added there: the answer''s `riskLevel` is the screening''s verdict, or `unscreened` when screening could not finish. It is recorded in the ledger as `create_counterparty` with `via: "api"` and the key''s id.
An address added through the API waits for a person. The agent pays nothing to it until an owner, admin or approver confirms it on Counterparties, so a key can add records but cannot point the agent''s payments at a new address.'
tags:
- Counterparties
security:
- bearerAuth: []
parameters:
- name: Idempotency-Key
in: header
required: false
description: 'Makes a retry safe: up to 255 printable ASCII characters, unique to the record being added, such as its id in your own system. A repeat with the same key and the same body within 24 hours gets the first answer back, with `Idempotent-Replayed: true`, and adds nothing. The same key with a different body answers `409`.'
schema:
type: string
example: crm-vendor-1042
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/CreateCounterpartyRequest'
example:
name: API Test Vendor
role: vendor
address: '0x6b3A4C65f362b818bb7FD6f999477A03CE07e51a'
paymentLimit: '1'
responses:
'201':
description: Created
content:
application/json:
schema:
$ref: '#/components/schemas/CreateCounterpartyResponse'
example:
data:
id: 6b361405-cfda-4400-a286-364b561911ce
name: API Test Vendor
role: vendor
address: '0x6b3A4C65f362b818bb7FD6f999477A03CE07e51a'
chain: ARC-TESTNET
jurisdiction: null
riskLevel: clear
riskNotes: OpenSanctions returned no matching entity
baselinePaymentLimit: 1
paymentLimit: 1
lastScreenedAt: '2026-10-03T10:15:29.759+00:00'
performanceScore: null
performanceInputs: null
createdAt: '2026-10-03T10:15:26.865688+00:00'
'400':
description: invalid_request
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
'401':
description: unauthorized
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
'403':
description: forbidden
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
'409':
description: conflict
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
'429':
description: rate_limited
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
'500':
description: internal
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
/api/v1/counterparties/{id}:
get:
operationId: get-counterparty
summary: Get a counterparty
description: One counterparty, with up to 20 recent compliance screenings, newest first. An id this workspace does not hold, including another workspace's, answers `404`.
tags:
- Counterparties
security:
- bearerAuth: []
parameters:
- name: id
in: path
required: true
description: The counterparty's id.
schema:
type: string
example: dc5e5751-3287-46c9-8bd1-83a42ab02699
responses:
'200':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/GetCounterpartyResponse'
example:
data:
id: dc5e5751-3287-46c9-8bd1-83a42ab02699
name: Anthropic API Services
role: vendor
address: '0x90a5821e8a59b711777c49d11a283c9c76cd811e'
chain: ARC-TESTNET
jurisdiction: null
riskLevel: clear
riskNotes: No match against watchlist
baselinePaymentLimit: 5
paymentLimit: 5
lastScreenedAt: '2026-09-24T18:32:57.327+00:00'
performanceScore: 0.667
performanceInputs:
heldOrFlagged: 0
heldByOurPolicy: 1
riskTierChanges: 0
duplicateSubmissions: 0
informationRequested: 0
paidWithoutIntervention: 1
createdAt: '2026-09-24T11:54:57.677284+00:00'
screeningHistory:
- id: d49b558b-199f-46d5-a43e-ae2af3ad9c49
riskLevel: clear
source: simulated-sanctions-list
notes: No match against watchlist
rawScore: null
matchedEntityId: null
screeningMode: simulate
status: complete
createdAt: '2026-09-24T18:32:58.403732+00:00'
'401':
description: unauthorized
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
'403':
description: forbidden
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
'404':
description: not_found
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
'500':
description: internal
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
/api/v1/payee-links:
post:
operationId: create-payee-link
summary: Create a payee link
description: 'Makes a one-time link where a vendor or contractor enters the address they are paid at, recorded in the ledger as `payee_link_created` with `via: "api"` and the key''s id. Send `url` to the payee yourself. It is in this answer only, since Vestiarion keeps just its hash, and the answer is sent with `Cache-Control: no-store`. The link works once and expires after 7 days.
The address the payee enters waits for a person in the workspace to confirm it on Counterparties; until then the agent pays nothing to it. Making a link revokes the payee''s unused one, so only the newest works. For the same reason this operation keeps no outcome for an `Idempotency-Key`, which would store the link: a repeat makes a new link. A `counterpartyId` the workspace does not hold, or a client''s, answers `400`.'
tags:
- Counterparties
security:
- bearerAuth: []
parameters: []
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/CreatePayeeLinkRequest'
example:
counterpartyId: 26d6ffed-356d-474a-8d42-89bc942f6b4e
responses:
'201':
description: Created
content:
application/json:
schema:
$ref: '#/components/schemas/CreatePayeeLinkResponse'
example:
data:
id: 0810c2f3-dc6b-487e-aff5-63297ad33813
counterpartyId: 26d6ffed-356d-474a-8d42-89bc942f6b4e
url: https://www.vestiarion.xyz/payee/vxp_ExampleOnly_NotARealPayeeLinkToken_Examples
expiresAt: '2026-10-10T15:42:04.28+00:00'
'400':
description: invalid_request
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
'401':
description: unauthorized
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
'403':
description: forbidden
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
'429':
description: rate_limited
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
'500':
description: internal
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
components:
schemas:
CreatePayeeLinkRequest:
type: object
properties:
counterpartyId:
type: string
description: 'The `id` of the vendor or contractor who is to enter the address they are paid at. A client gets no link: the agent never pays one.'
required:
- counterpartyId
additionalProperties: false
description: Who the link is for.
ListCounterpartiesResponse:
type: object
properties:
data:
type: array
items:
type: object
properties:
id:
type: string
name:
type: string
role:
type: string
enum:
- vendor
- client
- contractor
address:
type:
- string
- 'null'
chain:
type:
- string
- 'null'
jurisdiction:
type:
- string
- 'null'
riskLevel:
type: string
enum:
- unscreened
- clear
- medium
- high
riskNotes:
type:
- string
- 'null'
baselinePaymentLimit:
description: The business's baseline payment limit for this counterparty.
type:
- number
- 'null'
paymentLimit:
description: The current payment limit, derived from the risk tier.
type:
- number
- 'null'
lastScreenedAt:
type:
- string
- 'null'
performanceScore:
description: No history is different from a zero score and remains null.
type:
- number
- 'null'
performanceInputs:
anyOf:
- type: object
propertyNames:
type: string
additionalProperties: {}
- type: 'null'
createdAt:
type: string
required:
- id
- name
- role
- address
- chain
- jurisdiction
- riskLevel
- riskNotes
- baselinePaymentLimit
- paymentLimit
- lastScreenedAt
- performanceScore
- performanceInputs
- createdAt
description: A vendor, client or contractor, with its risk tier and payment limits.
page:
type: object
properties:
nextCursor:
description: Pass back as `?cursor=` to continue. Null when the end is reached.
type:
- string
- 'null'
hasMore:
type: boolean
description: Whether another page follows this one.
count:
type: integer
minimum: -9007199254740991
maximum: 9007199254740991
description: How many items this response carries.
required:
- nextCursor
- hasMore
- count
description: Where this page sits in the collection.
required:
- data
- page
GetCounterpartyResponse:
type: object
properties:
data:
type: object
properties:
id:
type: string
name:
type: string
role:
type: string
enum:
- vendor
- client
- contractor
address:
type:
- string
- 'null'
chain:
type:
- string
- 'null'
jurisdiction:
type:
- string
- 'null'
riskLevel:
type: string
enum:
- unscreened
- clear
- medium
- high
riskNotes:
type:
- string
- 'null'
baselinePaymentLimit:
description: The business's baseline payment limit for this counterparty.
type:
- number
- 'null'
paymentLimit:
description: The current payment limit, derived from the risk tier.
type:
- number
- 'null'
lastScreenedAt:
type:
- string
- 'null'
performanceScore:
description: No history is different from a zero score and remains null.
type:
- number
- 'null'
performanceInputs:
anyOf:
- type: object
propertyNames:
type: string
additionalProperties: {}
- type: 'null'
createdAt:
type: string
screeningHistory:
type: array
items:
type: object
properties:
id:
type: string
riskLevel:
type: string
source:
type: string
notes:
type:
- string
- 'null'
rawScore:
type:
- number
- 'null'
matchedEntityId:
type:
- string
- 'null'
screeningMode:
type: string
enum:
- live
- simulate
status:
type: string
enum:
- complete
- failed
createdAt:
type: string
required:
- id
- riskLevel
- source
- notes
- rawScore
- matchedEntityId
- screeningMode
- status
- createdAt
description: One compliance screening of a counterparty.
description: Up to 20 recent screenings, newest first.
required:
- id
- name
- role
- address
- chain
- jurisdiction
- riskLevel
- riskNotes
- baselinePaymentLimit
- paymentLimit
- lastScreenedAt
- performanceScore
- performanceInputs
- createdAt
- screeningHistory
description: A counterparty, with its recent screening history.
required:
- data
ApiError:
type: object
properties:
error:
type: object
properties:
code:
type: string
enum:
- unauthorized
- forbidden
- not_found
- invalid_request
- conflict
- rate_limited
- unavailable
- internal
description: One of a closed set, so a client can branch on it without parsing the message.
message:
type: string
description: A human-readable explanation. Never carries internal detail.
required:
- code
- message
required:
- error
description: Every error the API returns has this shape.
CreatePayeeLinkResponse:
type: object
properties:
data:
type: object
properties:
id:
type: string
description: 'The link''s own id. It is not the link: that is `url`.'
counterpartyId:
type: string
url:
type: string
description: 'The one-time page where the payee enters their address. It is in this answer only: Vestiarion keeps just its hash. Send it to the payee yourself.'
expiresAt:
type: string
description: When the link stops working, 7 days after it was made. It also stops once the payee has used it, or a newer link replaces it.
required:
- id
- counterpartyId
- url
- expiresAt
description: A one-time link for a payee to enter the address they are paid at. That address waits for a person in the workspace to confirm it before the agent pays to it.
required:
- data
CreateCounterpartyResponse:
type: object
properties:
data:
type: object
properties:
id:
type: string
name:
type: string
role:
type: string
enum:
- vendor
- client
- contractor
address:
type:
- string
- 'null'
chain:
type:
- string
- 'null'
jurisdiction:
type:
- string
- 'null'
riskLevel:
type: string
enum:
- unscreened
- clear
- medium
- high
riskNotes:
type:
- string
- 'null'
baselinePaymentLimit:
description: The business's baseline payment limit for this counterparty.
type:
- number
- 'null'
paymentLimit:
description: The current payment limit, derived from the risk tier.
type:
- number
- 'null'
lastScreenedAt:
type:
- string
- 'null'
performanceScore:
description: No history is different from a zero score and remains null.
type:
- number
- 'null'
performanceInputs:
anyOf:
- type: object
propertyNames:
type: string
additionalProperties: {}
- type: 'null'
createdAt:
type: string
required:
- id
- name
- role
- address
- chain
- jurisdiction
- riskLevel
- riskNotes
- baselinePaymentLimit
- paymentLimit
- lastScreenedAt
- performanceScore
- performanceInputs
- createdAt
description: A vendor, client or contractor, with its risk tier and payment limits.
required:
- data
CreateCounterpartyRequest:
type: object
properties:
name:
type: string
description: 2 to 160 characters.
role:
type: string
enum:
- vendor
- client
- contractor
description: '`vendor` or `contractor`, whom the business pays, or `client`, who pays the business.'
address:
description: Where the agent pays it. An address added through the API waits for a person in the workspace to confirm it on Counterparties; until then the agent pays nothing to it.
type: string
pattern: ^0x[0-9a-fA-F]{40}$
chain:
description: 'The chain the address receives on. Defaults to the workspace''s own chain: `ARC-TESTNET` on Arc testnet, `ARC` on Arc mainnet. Only a chain the workspace''s network pays on is accepted (on Arc mainnet, `BASE` or `ARB` besides its own), and only a vendor can be paid on another chain than the workspace''s own.'
type: string
enum:
- ARC-TESTNET
- BASE-SEPOLIA
- ARB-SEPOLIA
- ETH-SEPOLIA
- ARC
- BASE
- ARB
jurisdiction:
description: Where it is based, up to 80 characters; screening uses it.
type: string
paymentLimit:
description: The most the agent pays it in one payment, in USDC, with up to 6 decimal places. Required for a vendor or a contractor.
type:
- string
- number
noticeEmail:
description: Where it is emailed once a payment to it is confirmed.
type: string
required:
- name
- role
additionalProperties: false
description: A counterparty to add. It is screened as one added in the console.
securitySchemes:
bearerAuth:
type: http
scheme: bearer
description: 'A workspace API key: vxk_<prefix>_<secret>.'