> 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/devices/list-device-tokens.md). Agents can also search and read this documentation through its [MCP server](https://user.netmera.com/netmera-developer-guide/~gitbook/mcp).

# List Device Tokens

Returns the push tokens of the application's installations, one page at a time.

#### How it works

1. Set the page size with `max`. The default page size is 10.
2. To fetch the next page, call the `nextPage` URL from the response, for example `https://restapi.netmera.com/rest/3.0/getDeviceTokens?offset=10&max=10`.
3. `nextPage` points to the host that served the request.

<details>

<summary>Notes</summary>

* Each entry carries `installationId`, `platform`, `extId` and `deviceToken`.
* `extId` is omitted when the installation is not linked to a user with an external ID.
* `deviceToken` is included only when the installation has a non-blank push token.
* The list covers every installation of the app, including uninstalled and push-disabled ones and those created by registerUsers without a deviceToken.
* `getDevices`, by contrast, returns only devices on which the application is still installed.
* Entries come in no guaranteed order, and `total` is an estimate.
* `platform` is returned as the value name, for example `ANDROID`, `IOS` or `CHROME`.

</details>

```json
{"openapi":"3.1.0","info":{"title":"Netmera REST API","version":"3.0"},"tags":[{"name":"Devices","description":"Look up a user's devices and push tokens, and register devices as test devices for test sends\nfrom the panel.\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>Get User Devices</strong></td><td><code>GET</code> Returns all devices of a user, optionally only those with push permission.</td><td><a href=\"https://user.netmera.com/netmera-developer-guide/api-documentation/api-reference/devices/get-user-devices\">Get User Devices</a></td></tr><tr><td><strong>List Device Tokens</strong></td><td><code>GET</code> Returns the push tokens of the application's installations, one page at a time.</td><td><a href=\"https://user.netmera.com/netmera-developer-guide/api-documentation/api-reference/devices/list-device-tokens\">List Device Tokens</a></td></tr><tr><td><strong>Add Test Devices</strong></td><td><code>POST</code> Registers a user's devices as test devices, so they receive test messages sent from the panel.</td><td><a href=\"https://user.netmera.com/netmera-developer-guide/api-documentation/api-reference/devices/add-test-devices\">Add Test Devices</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":{"DeviceTokenEntry":{"type":"object","description":"One installation returned by `getDeviceTokens`. `deviceToken` is present only when the\ninstallation has a non-blank push token.\n","properties":{"extId":{"type":"string","description":"External ID of the user. Omitted for installations that have no external ID."},"installationId":{"type":"string"},"platform":{"type":"string"},"deviceToken":{"type":"string","description":"Push token of the installation. Omitted when the installation has no token."}}},"ProblemDetail":{"type":"object","description":"RFC 7807 error body returned by the framework instead of the Netmera error body when a\nrequired query parameter is missing or a parameter cannot be converted to its type.\n","properties":{"type":{"type":"string"},"title":{"type":"string"},"status":{"type":"integer"},"detail":{"type":"string"},"instance":{"type":"string"}}},"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/getDeviceTokens":{"get":{"operationId":"getDeviceTokens","tags":["Devices"],"summary":"List Device Tokens","description":"Returns the push tokens of the application's installations, one page at a time.\n\n### How it works\n\n1. Set the page size with `max`. The default page size is 10.\n2. To fetch the next page, call the `nextPage` URL from the response, for example\n   `https://restapi.netmera.com/rest/3.0/getDeviceTokens?offset=10&max=10`.\n3. `nextPage` points to the host that served the request.\n\n<details>\n\n<summary>Notes</summary>\n\n- Each entry carries `installationId`, `platform`, `extId` and `deviceToken`.\n- `extId` is omitted when the installation is not linked to a user with an external ID.\n- `deviceToken` is included only when the installation has a non-blank push token.\n- The list covers every installation of the app, including uninstalled and push-disabled ones and\n  those created by registerUsers without a deviceToken.\n- `getDevices`, by contrast, returns only devices on which the application is still installed.\n- Entries come in no guaranteed order, and `total` is an estimate.\n- `platform` is returned as the value name, for example `ANDROID`, `IOS` or `CHROME`.\n\n</details>\n","parameters":[{"name":"max","in":"query","required":false,"description":"Page size. Default is 10.","schema":{"type":"integer","default":10}},{"name":"offset","in":"query","required":false,"description":"Pagination offset. Default is 0.","schema":{"type":"integer","default":0}}],"responses":{"200":{"description":"A page of device tokens.","content":{"application/json":{"schema":{"type":"object","properties":{"nextPage":{"type":"string","description":"URL of the next page of results."},"total":{"type":"integer","description":"Approximate total number of installations."},"devices":{"type":"array","items":{"$ref":"#/components/schemas/DeviceTokenEntry"}}}}}}},"400":{"description":"Error responses the API can return.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetail"}}}},"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/devices/list-device-tokens.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.
