List messages
Lists the Ventra Interchangeable Message (VIM) messages your tenant sent, newest first, one page at a time.
- GET/api/v1/messages
Request
| Method | GET |
| Path | /api/v1/messages |
| Base URL | https://api.ventrahq.tech |
| Group | Messages |
| Authentication | Bearer access token: Authorization: Bearer <access-token>. The tenant comes from the credential, never from the request. |
| Roles | Any authenticated role. Auditor and supervisor credentials get outcomes and hashes without message bodies or field values. |
| Operation id | get_messages |
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
limit | query | integer | No | Page size. Default 50, at most 200. |
cursor | query | string | No | The nextCursor of the previous page. Opaque: pass it back unchanged. |
type | query | string | No | Only messages of this VIM type, for example VENT.FUND.ORDER.001. |
instrument | query | string | No | Only messages about this instrument key. |
No request body.
Response
200 with application/json.
| Field | Type | Description |
|---|---|---|
data | array | Messages of your tenant. |
data[].message_id | string | Identifier of the message (the id of its envelope). |
data[].vim_type | string | Message type. |
data[].vim_version | string | Schema version of the type. |
data[].schema_hash | string | SHA-256 of the schema the message was checked against. |
data[].message_hash | string | SHA-256 of the message as received. |
data[].rail | string | Rail the message came from. |
data[].emitter_slot | string | Role slot of the sender. |
data[].agent_id | string | Agent that sealed the message. |
data[].transaction_ref | string | Transaction reference. |
data[].event_ref | string | Event reference. |
data[].match_fields | object | Commitments used for matching (no clear values). Left out for auditor and supervisor credentials. |
data[].control_fields | object | Control fields of the message. Left out for auditor and supervisor credentials. |
data[].body | object or null | Message body. null in thin body mode; left out for auditor and supervisor credentials. |
data[].received_at | string (date-time) | Time Ventra received the message. |
nextCursor | string or null | Cursor of the next page; null on the last page. |
Example (placeholder values):
{
"data": [
{
"message_id": "<message-id>",
"vim_type": "VENT.FUND.ORDER.001",
"vim_version": "1.0",
"schema_hash": "<sha-256-hex>",
"message_hash": "<sha-256-hex>",
"rail": "LEGACY_MESSAGE",
"emitter_slot": "S1",
"agent_id": "<agent-id>",
"transaction_ref": "<transaction-ref>",
"event_ref": "<event-ref>",
"match_fields": {},
"control_fields": {},
"body": null,
"received_at": "2026-12-01T09:30:00.000Z"
}
],
"nextCursor": null
}
Errors
Errors of this operation are problem details (application/problem+json).
| Status | When |
|---|---|
400 | The request is malformed, for example a parameter of the wrong type. |
401 | No valid credential, or the credential carries no tenant. |
403 | The credential is valid but its role may not use this operation. |
Authentication failures and rate limits are answered before the operation, in another body shape. See Status, errors and retries.
Example
curl -sS "https://api.ventrahq.tech/api/v1/messages?limit=50" \
-H "Authorization: Bearer <access-token>" \
-H "Accept: application/json"
Related
- API reference · Every documented operation of the Ventra Platform API v1, grouped by resource, generated from the specification.
- Status, errors and retries · The status codes of the API, its two error shapes, rate limits, which calls to retry and how to page through a list.
- Environments and keys · Where the API runs, how a call is authenticated, and how to keep a credential out of places it does not belong.
Last reviewed 2026-12-01