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

# Get User Devices

Returns all devices of a user, optionally only those with push permission.

<details>

<summary>Notes</summary>

* A user that does not exist returns 200 with an empty `devices` list.
* Uninstalled devices are never returned.
* `platform` is returned as the value name, for example `ANDROID`.

</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":{"Device":{"type":"object","properties":{"platform":{"type":"string"},"token":{"type":"string"},"deviceModel":{"type":"string"},"pushPermitted":{"type":"boolean"},"appVersion":{"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/getDevices":{"get":{"operationId":"getDevices","tags":["Devices"],"summary":"Get User Devices","description":"Returns all devices of a user, optionally only those with push permission.\n\n<details>\n\n<summary>Notes</summary>\n\n- A user that does not exist returns 200 with an empty `devices` list.\n- Uninstalled devices are never returned.\n- `platform` is returned as the value name, for example `ANDROID`.\n\n</details>\n","parameters":[{"name":"extId","in":"query","required":false,"description":"External user ID whose devices are fetched. Required unless the advanced profile search\n(request body `profile`) is used.\n","schema":{"type":"string"}},{"name":"pushPermitted","in":"query","required":false,"description":"When `true`, only installed devices registered for push (push-permitted) are returned. When\nabsent or `false`, every installed device of the user is returned.\n","schema":{"type":"boolean"}},{"name":"page","in":"query","required":false,"description":"Page number, starting at 1. Advanced profile search only, where it is required\n(otherwise HTTP 400, code `2020`); ignored in the default mode.\n","schema":{"type":"integer","minimum":1}},{"name":"max","in":"query","required":false,"description":"Page size, advanced profile search only. Absent values and values above 100 are treated as 100.\n","schema":{"type":"integer","default":100,"maximum":100}}],"requestBody":{"required":false,"description":"Advanced profile search, sent as the body of the GET request. Available only when the advanced\ndevice search service is enabled for the application and `extId` is not sent.\n","content":{"application/json":{"schema":{"type":"object","properties":{"profile":{"type":"object","description":"Profile attribute conditions: each key is a defined, indexed profile attribute name and\neach value the value to match. An absent or empty object falls back to the default mode,\nwhich then requires `extId`.\n","additionalProperties":true}}}}}},"responses":{"200":{"description":"The user's devices.","content":{"application/json":{"schema":{"type":"object","properties":{"extId":{"type":"string"},"devices":{"type":"array","items":{"$ref":"#/components/schemas/Device"}}}}}}},"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/devices/get-user-devices.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.
