v1
latestOpenAPI 3.0.12026-07-24210349345.4 KBMessage
Get Web Inbox user messages
get/api/v1/messages/getusermessages
Query parameters
CustomerIdstring
Example:Optimove
Customer Id
VisitorIdstring
Example:optimove
IsVisitor boolean
LocalTimenumber double
Customer local time offset in minutes. Optional, defaults to 0 if not specified. This is the UTC
offset of the customers timezone (typically identified from browser timezone) e.g. if customer is
at +1 hour timezone then pass +60.
This field is used for evaluating message expiry etc. Consistently passing 0 results in measuring all
times as UTC rather than customer local timezone.
MaxMessagesinteger
Maximum amount of messages to return. Optional, defaults to 50 if not specified.
TenantIdinteger
Example:1
TenantId Id
BrandIdstring uuid
Example:f29e20e6-53eb-4a79-a004-09fe308d63de
Brand Id.
Response
If the request is successful, this response an array of user messages.
Example response
[
{
"id": "a27139ca-86a3-43f1-836a-43e387df22bc",
"createdAt": 1715094818678,
"updatedAt": 17150948186585,
"deletedAt": 17150948186595,
"customerId": "213124312hhjkfjas999qw",
"isVisitor": true,
"templateId": 1978432878942,
"title": "Your message title",
"content": "Your message content",
"media": "hjshdjkhjskd/hsgdjkhsdjhshdjhdshhas.jpg",
"readAt": 1715094818678,
"url": "www.optimove.com",
"engagementId": "1234abcd",
"payload": {
"glow": "true",
"balloons": "32"
},
"executionDateTime": "2024-01-01T13:39:27Z"
}
]