Get cloudClipboardItem

Namespace: microsoft.graph

Read the properties and relationships of a cloudClipboardItem object. This API only allows you to get a cloudClipboardItem object for:

  • The signed-in user's own cloudClipboardItem.
  • An app on behalf of the user if the user grants delegated access to it.

This API doesn't support using another user's credentials to get a cloudClipboardItem for a user.

This API is available in the following national cloud deployments.

Global service US Government L4 US Government L5 (DOD) China operated by 21Vianet

Permissions

Choose the permission or permissions marked as least privileged for this API. Use a higher privileged permission or permissions only if your app requires it. For details about delegated and application permissions, see Permission types. To learn more about these permissions, see the permissions reference.

Permission type Least privileged permissions Higher privileged permissions
Delegated (work or school account) UserCloudClipboard.Read Not available.
Delegated (personal Microsoft account) UserCloudClipboard.Read Not available.
Application Not supported. Not supported.

HTTP request

GET /me/cloudClipboard/items/{cloudClipboardItemId}

Optional query parameters

This method doesn't support the OData query parameters to customize the respone. For general information, see OData query parameters.

Request headers

Name Description
Authorization Bearer {token}. Required. Learn more about authentication and authorization.

Request body

Don't supply a request body for this method.

Response

If successful, this method returns a 200 OK response code and a cloudClipboardItem object in the response body.

Errors

In addition to general errors that apply to Microsoft Graph, the following error conditions are specific to the Cloud Clipboard API.

Status code Status message Description
400 Bad request The request is malformed or incorrect, such as an invalid cloudClipboardItemId.
403 Forbidden The caller can't perform the action. It indicates that the user doesn't consent to sharing cloudClipboardItem.
409 Conflict The current state conflicts with what the request expects. It usually indicates that the user isn't eligible for the cloud clipboard feature because they don't have at least two devices authenticated through multi-factor authentication during the sign-in process.
429 Too many requests The request rate limit has been exceeded. Wait for the time specified in the Retry-After header and try again.

Examples

Request

The following example shows a request.

GET https://graph.microsoft.com/v1.0/user/cloudClipboard/items/{cloudClipboardItemId}

Response

The following example shows the response.

Note: The response object shown here might be shortened for readability.

HTTP/1.1 200 OK
Content-Type: application/json

{
  "@odata.type": "#microsoft.graph.cloudClipboardItem",
  "id": "292bcf2f-b37e-49d0-8882-1e33dd5c2273",
  "payloads": [
    {
      "@odata.type": "microsoft.graph.cloudClipboardItemPayload",
      "content": "aGVsbG8sIHdvcmxkIQ==",
      "formatName": "TextBase64"
    }
  ],
  "createdDateTime": "2023-08-10T16:56:25.413Z",
  "lastModifiedDateTime": "2022-06-06T17:04:58.000Z",
  "expirationDateTime": "2023-08-11T04:56:25.387Z"
}