List the messages of a container
Méthode 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).
Autorisation
Scope requis
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.
Paramètres
| Nom | Emplacement | Type | Requis | Contraintes | Description |
|---|---|---|---|---|---|
crid |
Chemin | string |
Requis | Your business reference of the container. | |
mrid |
Paramètre de requête | string |
Facultatif | Exact filter on your message reference. | |
state |
Paramètre de requête | V31MessageState |
Facultatif |
Valeurs
rejected
held
failed
processing
hidden
pending_review
published
|
|
limit |
Paramètre de requête | integer |
Facultatif | min 1, max 200 |
Par défaut
50
|
skip |
Paramètre de requête | integer |
Facultatif | min 0 |
Par défaut
0
|
Réponses
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"
}
}