List message events
Returns the delivery events recorded for a message, oldest first. Pass `nextCursor` back as `cursor` for the next page; it is null on the last page.
GET
Returns the delivery events recorded for a message, oldest first. Pass nextCursor back as cursor for the next page; it is null on the last page.
apiKeyheader
x-api-key<token>id*stringMatch
^msg_[0-9a-hjkmnp-tv-z]{16,24}$limit?|nullcursor?stringMessageEventPage
application/json- response
items*array<>nextCursor*string|nullimport { createClient } from "samva";
const samva = createClient({ apiKey: process.env.SAMVA_API_KEY! });
const result = await samva.messages.getEvents({
"id": "example"
});Example Response
{
"items": [
{
"id": "string",
"messageId": "string",
"eventType": "string",
"status": "string",
"timestamp": "string",
"metadata": {
"property1": "string",
"property2": "string"
}
}
],
"nextCursor": "string"
}