> ## Documentation Index
> Fetch the complete documentation index at: https://docs.blinkops.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Device Serial Numbers

Get a list of device serial numbers assigned to a device management service by its ID.

<Note>
  External Documentation

  To learn more, visit the [Apple Business Manager documentation](https://developer.apple.com/documentation/applebusinessmanagerapi/get-all-device-ids-for-a-device-management-service).
</Note>

## Parameters

<div className="integrations-table">
  | Parameter                    | Description                                                                                                                                 |
  | ---------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------- |
  | Cursor                       | The cursor to the next page of results. Retrieve this value from the `nextCursor` property of a previous response to fetch subsequent data. |
  | Device Management Service ID | The ID of the device management service to list device serial numbers from.                                                                 |
  | Limit                        | The maximum number of resources to retrieve in the response. The maximum value is `1000`.                                                   |
  | Return All Pages             | Automatically fetch all resources, page by page.                                                                                            |
</div>

## Example Output

```json theme={"dark"}
{
	"data": [
		{
			"type": "orgDevices",
			"id": "XABC123X0ABC123X0"
		}
	],
	"links": {
		"self": "https://api-business.apple/v1/mdmServers/1F97349736CF4614A94F624E705841AD/relationships/devices",
		"next": "https://api-business.apple/v1/mdmServers/1F97349736CF4614A94F624E705841AD/relationships/devices?cursor=MDowOjE3NDYxMTg0NjkzOTc6MTc0NjExODQ2OTM5Nzp0cnVlOmZhbHNlOjE3NDYxMTg0NjkzOTc",
		"related": "https://api-business.apple/v1/mdmServers/1F97349736CF4614A94F624E705841AD/devices"
	},
	"meta": {
		"paging": {
			"nextCursor": "MDowOjE3NDYxMTg0NjkzOTc6MTc0NjExODQ2OTM5Nzp0cnVlOmZhbHNlOjE3NDYxMTg0NjkzOTc",
			"limit": 100
		}
	}
}
```

## Workflow Library Example

[Get Device Serial Numbers with Apple Business Manager and Send Results Via Email](https://library.blinkops.com/workflows/get-device-serial-numbers-with-apple-business-manager-and-send-results-via-email)

<div className="iframe-wrapper">
  <div className="iframe-media">
    <img src="https://mintcdn.com/blinkops-2/ojHYuDeYX5FWuN8a/img/Icons/play-box.svg?fit=max&auto=format&n=ojHYuDeYX5FWuN8a&q=85&s=b8af968e71438a9499c3223c9bd29fb2" alt="Workflow Library" width="16" height="16" data-path="img/Icons/play-box.svg" />

    Preview this Workflow on desktop
  </div>

  <iframe className="iframe" src="https://library.blinkops.com/workflows/get-device-serial-numbers-with-apple-business-manager-and-send-results-via-email/canvas" />
</div>
