---
title: "List device"
method: GET
path: "/1/mail_hostings/accesses/devices"
tags: ["Mailboxes > Accesses > Devices"]
---

# List device

`GET /1/mail_hostings/accesses/devices`

Returns list of device and all their access

## Query parameters

- `with` string
- `return` 'total'
- `page` integer
- `per_page` integer

## Response `200`

OK

- object
  - `result` 'success' | 'error' | 'asynchronous', required — Result of the HTTP request
  - `data` 93e74a89Device[]
    - `id` integer, required — Unique identifier of the resource `Device`
    - `label` string, required
    - `type` 'computer' | 'legacy' | 'other' | 'phone' | 'tablet', required — Specifies the type of the device.<note><strong>computer</strong>: The device is a computer.</note><note><strong>legacy</strong>: The device'password is a legacy password used by all users before the feature of multiples password.</note><note><strong>other</strong>: The device is an other type.</note><note><strong>phone</strong>: The device is a phone.</note><note><strong>tablet</strong>: The device is a tablet.</note>
    - `created_at` integer, required — Timestamp `Device` has been created
    - `device_uid` string, nullable, required
    - `accesses` 93e74a89DeviceAccess[]
      - `id` integer, required — Unique identifier of the resource `Device Access`
      - `device` 93e74a89Device — recursive
      - `protocols` 'imap' | 'pop3' | 'pop3-imap', required — Specifies the protocol of the access. By default, all protocol choices include smtp protocol.<note><strong>imap</strong>: The protocol is imap.</note><note><strong>pop3</strong>: The protocol is pop3.</note><note><strong>pop3-imap</strong>: The protocol is imap and pop3.</note>
      - `last_connection` integer, nullable, required
      - `created_at` integer, required — Timestamp `Device Access` has been created
      - `status` 'healthy' | 'leaked' | 'spam', required — Specifies the status of the access.<note><strong>healthy</strong>: The password is healthy.</note><note><strong>leaked</strong>: The password was leaked.</note><note><strong>spam</strong>: The password was sending spam.</note>
      - `user_access` 93e74a89User
        - `id` integer, required — Unique identifier of the resource `User`
        - `email` string, required — Email
        - `firstname` string, required
        - `lastname` string, required
        - `avatarUrl` string, required
      - `creator` 93e74a89User
        - `id` integer, required — Unique identifier of the resource `User`
        - `email` string, required — Email
        - `firstname` string, required
        - `lastname` string, required
        - `avatarUrl` string, required
      - `mailbox` object
        - `mailbox_name` string, required
        - `mailbox` string, required
        - `mailbox_idn` string, required
        - `service_mail_id` integer, required
      - `access_rights` object
        - `can_delete` boolean, required
        - `can_regenerate` boolean, required
    - `count_accesses` integer
    - `last_connection` integer, nullable
    - `locked_accesses_count` integer
  - `total` integer — Total number of items Added when using query parameter `page`
  - `page` integer — Number of the current page Added when using query parameter `page`
  - `pages` integer — Total number of pages Added when using query parameter `page`
  - `items_per_page` integer — Number of items per page Added when using query parameter `page`

---

[API](https://skmtc.dev/infomaniak/apis/api-reference-developer-tools.md) · [All operations](https://skmtc.dev/infomaniak/apis/api-reference-developer-tools/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/infomaniak/api-reference-developer-tools/revisions/667aae28fec6/schema)
