List the messages of a container
Method GET https://<client-api-host>/api/v3.1/containers/{crid}/messages
List the messages of a container: the primary message first, then by creation date.
Replies are not listed. The fields depend on the platform messageAccess setting
(see the API description).
Authorization
Required scope
messages:read
Use Authorization: Bearer liv_<prefix>_<secret>. The key must belong to a platform
served by the V3 pipeline; otherwise every route answers 403 PLATFORM_NOT_V3.
Parameters
| Name | In | Type | Required | Constraints | Description |
|---|---|---|---|---|---|
crid |
Path | string |
Required | Your business reference of the container. | |
mrid |
Query | string |
Optional | Exact filter on your message reference. | |
state |
Query | V31MessageState |
Optional |
Values
rejected
held
failed
processing
hidden
pending_review
published
|
|
limit |
Query | integer |
Optional | min 1, max 200 |
Default
50
|
skip |
Query | integer |
Optional | min 0 |
Default
0
|
Responses
Paginated list of messages.
Invalid payload, unknown field or invalid value.
{
"error": {
"code": "DATA_INVALID",
"message": "Invalid field crid"
}
}
Authentication failed or missing bearer token.
{
"error": {
"code": "UNAUTHORIZED",
"message": "Missing API key"
}
}
Authenticated but not allowed: missing scope (FORBIDDEN), invalid platform
constraints (INVALID_PLATFORM_CONSTRAINTS) or a platform not served by API v3.1
(PLATFORM_NOT_V3).
{
"error": {
"code": "PLATFORM_NOT_V3",
"message": "Platform is not served by API v3.1"
}
}
Container not found for this crid on the platform of the key.
{
"error": {
"code": "NOT_FOUND",
"message": "Container not found"
}
}
Rate limit exceeded.
{
"error": {
"code": "RATE_LIMITED",
"message": "Too many requests"
}
}
Unexpected server error.
{
"error": {
"code": "INTERNAL_ERROR",
"message": "Internal error"
}
}