REST API Inbox
Parameters Sent in the Body and Their Meanings
extId: This parameter represents the unique ID assigned to the user. It is a mandatory field and expects a string value.
status: Indicates the status of messages in the user's inbox. It can take one of three values:
This field is mandatory and expects an integer value.
1 (read)
2 (unread)
3 (read - unread but not deleted)
4 (deleted)
7 (all)
numberOfNotification: Specifies the number of notifications/messages the client wants to see on a single page. It is not mandatory and expects an integer value. If not used, the default is to display the last 20 messages.
prms: Contains the index parameter. The index value expects the pushInstanceId. This field is not mandatory and expects a long value.
startDate: Specifies the start date of the inbox messages to be retrieved. It expects an epoch timestamp in milliseconds. This field is not mandatory and expects a long value.
endDate: Specifies the end date of the inbox messages to be retrieved. It expects an epoch timestamp in milliseconds. This field is not mandatory and expects a long value.
category: Indicates the message category. It is not mandatory and expects an integer array.
piids: Expects the pushInstanceIds of the messages for which the status is to be changed. This field is mandatory and expects an integer array.
REST/3.0/inbox/getAllInbox
This endpoint is used to get all of the user inbox.
REST/3.0/inbox/getAllInbox | Sample Response
REST/3.0/inbox/get?piid=
REST/3.0/inbox/statusChange
This endpoint is used for changing status of messages in the user inbox.
Using the Index Parameter
Let's assume a user has 5 messages in their inbox. To view the latest 3 messages (by specifying the desired number of messages in numberOfNotification
), an API request is made.
As a result of this request, if the total number of messages in the inbox is greater than the desired number of messages to be displayed, the prms
object will contain an index
value. The index
value will be equal to the pushInstanceId
of the last message displayed on that page. This allows you to navigate through the messages in a paginated manner.
Request Sent
Last updated