Get a message
Returns one Ventra Interchangeable Message (VIM) your tenant sent, with its hashes and, for a party credential, its body.
- GET/api/v1/messages/{id}
Request
| Method | GET |
| Path | /api/v1/messages/{id} |
| 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__id_ |
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | Yes | The message identifier (message_id). |
No request body.
Response
200 with application/json.
| Field | Type | Description |
|---|---|---|
message_id | string | Identifier of the message. |
vim_type | string | Message type. |
vim_version | string | Schema version of the type. |
schema_hash | string | SHA-256 of the schema. |
message_hash | string | SHA-256 of the message as received. |
rail | string | Rail the message came from. |
emitter_slot | string | Role slot of the sender. |
agent_id | string | Agent that sealed the message. |
transaction_ref | string | Transaction reference. |
event_ref | string | Event reference. |
match_fields | object | Commitments used for matching. Left out for auditor and supervisor credentials. |
control_fields | object | Control fields. Left out for auditor and supervisor credentials. |
body | object or null | Message body. null in thin body mode. |
received_at | string (date-time) | Time Ventra received the message. |
Example (placeholder values):
{
"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"
}
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. |
404 | Your tenant has no message with this identifier. |
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/<message-id>" \
-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