> For the complete documentation index, see [llms.txt](https://user.netmera.com/netmera-developer-guide/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://user.netmera.com/netmera-developer-guide/api-documentation/api-reference/inbox/list-inbox-messages.md). Agents can also search and read this documentation through its [MCP server](https://user.netmera.com/netmera-developer-guide/~gitbook/mcp).

# List Inbox Messages

Returns the push notifications stored on the server for a user's inbox. Filter by status, category or time range.

#### How it works

Set the page size with `numberOfNotification`. To fetch the next page, send `prms.index` with the `pushInstanceId` of the last message in the previous response.

<details>

<summary>Notes</summary>

* Category names are matched exactly, including letter case. A name with different case is treated as unknown.
* Unknown category names are skipped without an error.
* If none of the requested names is recognised, the category filter is dropped and messages from all categories are returned, the same as sending no `category` at all.
* When the application uses brands (business units), the names are matched against active brand names, also case-sensitively.

</details>

```json
{"openapi":"3.1.0","info":{"title":"Netmera REST API","version":"3.0"},"tags":[{"name":"Inbox","description":"Build an in-app inbox: list a user's messages, read one, and mark messages as read, unread or\ndeleted.\n\n<table data-view=\"cards\"><thead><tr><th></th><th></th><th data-hidden data-card-target data-type=\"content-ref\"></th></tr></thead><tbody><tr><td><strong>List Inbox Messages</strong></td><td><code>POST</code> Returns the push notifications stored on the server for a user's inbox.</td><td><a href=\"https://user.netmera.com/netmera-developer-guide/api-documentation/api-reference/inbox/list-inbox-messages\">List Inbox Messages</a></td></tr><tr><td><strong>Get Inbox Message</strong></td><td><code>GET</code> Returns a single inbox message by its push instance ID.</td><td><a href=\"https://user.netmera.com/netmera-developer-guide/api-documentation/api-reference/inbox/get-inbox-message\">Get Inbox Message</a></td></tr><tr><td><strong>Check Inbox Message</strong></td><td><code>GET</code> Checks whether a push instance is in a user's inbox and returns the date it was added.</td><td><a href=\"https://user.netmera.com/netmera-developer-guide/api-documentation/api-reference/inbox/check-inbox-message\">Check Inbox Message</a></td></tr><tr><td><strong>Change Inbox Message Status</strong></td><td><code>POST</code> Changes the status of one or more inbox messages, for example to read, unread or deleted.</td><td><a href=\"https://user.netmera.com/netmera-developer-guide/api-documentation/api-reference/inbox/change-inbox-message-status\">Change Inbox Message Status</a></td></tr></tbody></table>\n"}],"servers":[{"url":"https://restapi.netmera.com","description":"Netmera REST API"}],"security":[{"REST-API-key":[]}],"components":{"securitySchemes":{"REST-API-key":{"type":"apiKey","in":"header","name":"X-netmera-api-key","description":"REST API key. Available in the Netmera Panel under Developers > API.\n"}},"schemas":{"InboxRequest":{"type":"object","required":["extId","status"],"properties":{"extId":{"type":"string","description":"The unique external ID of the user."},"status":{"type":"integer","minimum":1,"maximum":15,"description":"Status filter as a bitmask of 1 = Read, 2 = Unread, 4 = Deleted and 8 = Recalled; any sum from 1\nto 15 is valid, for example 3 = Read & Unread and 7 = Read, Unread & Deleted. `0` or a missing\nvalue returns HTTP 400, code `2020`.\n"},"numberOfNotification":{"type":"integer","description":"Number of messages per page. Defaults to 20.\n"},"prms":{"type":"object","description":"Pagination block.","properties":{"index":{"type":"integer","format":"int64","description":"The `pushInstanceId` of the last message received in the previous response.\n"}}},"startDate":{"type":"integer","format":"int64","description":"Filters messages starting from this date. Epoch timestamp in milliseconds.\n"},"endDate":{"type":"integer","format":"int64","description":"Filters messages until this date. Epoch timestamp in milliseconds.\n"},"category":{"type":"array","description":"Category names to filter by (business-unit names when the application uses business units);\nunknown names are ignored. A value that is not an array returns HTTP 400, code `2009`.\n","items":{"type":"string"}}}},"InboxListResponse":{"type":"object","properties":{"msgs":{"type":"array","items":{"$ref":"#/components/schemas/InboxMessage"}},"cnts":{"type":"object","description":"Message counts keyed by status value. The last page of a paginated result omits the\n`prms` block.\n","additionalProperties":{"type":"integer"}},"prms":{"type":"object","properties":{"index":{"type":"integer","format":"int64","description":"The `pushInstanceId` of the last message in this batch, passed as `prms.index`\nin the next request.\n"}}}}},"InboxMessage":{"type":"object","properties":{"msgId":{"type":"integer"},"pushInstanceId":{"type":"integer","format":"int64"},"title":{"type":"string"},"message":{"type":"string"},"status":{"type":"string"},"sts":{"type":"integer","format":"int64"},"subText":{"type":["string","null"]},"extID":{"type":"string"},"deeplink":{"type":["string","null"]},"androidMediaUrl":{"type":["string","null"]},"iosMediaUrl":{"type":["string","null"]},"androidThumbnail":{"type":["string","null"]},"personalizedMsg":{"type":["string","null"]},"personalizedTitle":{"type":["string","null"]},"personalizedSubText":{"type":["string","null"]},"customParams":{"type":"object","additionalProperties":true},"ctg":{"type":"array","items":{"type":"string"}},"lbl":{"type":"array","items":{"type":"string"}}},"additionalProperties":true},"NetmeraError":{"type":"object","description":"Standard Netmera error body.","required":["code","error"],"properties":{"code":{"type":"integer","description":"Netmera error code. See the error table in the API description."},"error":{"type":"string","description":"Human readable error message."}}}},"responses":{"InvalidApiKey":{"description":"The `X-netmera-api-key` header is missing or the key is not valid.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NetmeraError"}}}},"IpNotAllowed":{"description":"The application restricts REST calls to a list of allowed IP addresses and the caller's\nIP is not on it. The check runs after the API key is validated and before the request\nbody and parameters are validated, so a restricted application returns this error even\nfor a malformed request.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NetmeraError"}}}}}},"paths":{"/rest/3.0/inbox/getAllInbox":{"post":{"operationId":"getAllInbox","tags":["Inbox"],"summary":"List Inbox Messages","description":"Returns the push notifications stored on the server for a user's inbox. Filter by status, category\nor time range.\n\n### How it works\n\nSet the page size with `numberOfNotification`. To fetch the next page, send `prms.index` with the\n`pushInstanceId` of the last message in the previous response.\n\n<details>\n\n<summary>Notes</summary>\n\n- Category names are matched exactly, including letter case. A name with different case is treated\n  as unknown.\n- Unknown category names are skipped without an error.\n- If none of the requested names is recognised, the category filter is dropped and messages from all\n  categories are returned, the same as sending no `category` at all.\n- When the application uses brands (business units), the names are matched against active brand\n  names, also case-sensitively.\n\n</details>\n","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InboxRequest"}}}},"responses":{"200":{"description":"The user's inbox messages.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InboxListResponse"}}}},"400":{"description":"Missing parameter.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NetmeraError"}}}},"401":{"$ref":"#/components/responses/InvalidApiKey"},"403":{"$ref":"#/components/responses/IpNotAllowed"}}}}}}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://user.netmera.com/netmera-developer-guide/api-documentation/api-reference/inbox/list-inbox-messages.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
