---
title: "List All Protected Cloud Apps"
method: GET
path: "/insync/cadevice/v1/devices"
tags: ["Restore OneDrive/Exchange Online data"]
---

# List All Protected Cloud Apps

`GET /insync/cadevice/v1/devices`

## Request

- Base URL: `https://apis.druva.com`
- URL: `https://apis.druva.com/insync/cadevice/v1/devices`
- Auth: API key in header `Authorization`

Retrieve the list of all protected SaaS apps.

## Query parameters

- `appName` string
- `sortByColumn` string
- `sortOrder` string
- `searchTerm` string
- `userID` number[]
- `profileID` number[]
- `pageSize` string
- `nextPageToken` string
- `workload` string[], required
- `lastBackupStatus` string
- `lastBackupTime` integer

## Response `200`

OK

- 200DeviceList
  - `totalResults` number, required: The total number of devices listed in the result pages.
  - `nextPageToken` string, required: The token to access next page of results. This parameter will be empty for the last page of results.
  - `devices` object[], required
    - `id` number, required: The unique id of the device in inSync. Example - 12345
    - `appName` string, required: The device app name in inSync. Example - OneDrive
    - `userId` number: A unique id of the user in inSync. Example - 1234
    - `workload` string, required: Name of cloud platform. Example - Office 365 OneDrive, Office 365 Exchange Online, G Suite Gmail, G Suite Google Drive.
    - `createdOn` string, required: The date and time on which the device was added to inSync. Example - 2019-10-25T00:00:00Z
    - `profileID` number, required: A unique id of the profile in inSync.
    - `customerID` number, required: A unique id of the administrator in inSync.
    - `lastBackupStatus` number, required: Shows last backup status. Example - Backed Up Successfully
    - `lastBackupJob` string, required: Date string indicating latest time of the backup job run.
    - `lastSuccessfulBackup` string, required: Date string indicating latest time of the backup job run that was successful.

## Other responses

- `400`: Bad Request
- `401`: The request did not include an authentication token or an expired authentication token was supplied.
- `403`: Access denied: Insufficient permissions. User requires specific access rights and minimum permissions. Details: https://help.druva.com/en/articles/15069296
- `404`: The requested resource was not found.
- `500`: The request was not processed due to an internal error on server.
- `501`: Requested HTTP method is not implemented.

---

[API](https://skmtc.dev/druva/apis/microsoft-365.md) - [All operations](https://skmtc.dev/druva/apis/microsoft-365/llms.txt) - [OpenAPI document](https://skmtc.dev/druva/apis/microsoft-365/revisions/3e8d6e34aa6e?raw)
