curl --request GET \
--url https://app.msportal.ai/api/public/v1/devices/locations \
--header 'Authorization: Bearer <token>'{
"data": [
{
"id": "<string>",
"name": "<string>",
"companyId": "<string>",
"companyName": "<string>",
"address": "<string>",
"city": "<string>",
"state": "<string>",
"postalCode": "<string>",
"country": "<string>",
"phone": "<string>",
"email": "<string>",
"deviceCount": 123,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
],
"pagination": {
"page": 2,
"limit": 50,
"totalCount": 123,
"totalPages": 123,
"hasNextPage": true,
"hasPrevPage": true
}
}Retrieve a paginated list of locations where devices are deployed.
curl --request GET \
--url https://app.msportal.ai/api/public/v1/devices/locations \
--header 'Authorization: Bearer <token>'{
"data": [
{
"id": "<string>",
"name": "<string>",
"companyId": "<string>",
"companyName": "<string>",
"address": "<string>",
"city": "<string>",
"state": "<string>",
"postalCode": "<string>",
"country": "<string>",
"phone": "<string>",
"email": "<string>",
"deviceCount": 123,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
],
"pagination": {
"page": 2,
"limit": 50,
"totalCount": 123,
"totalPages": 123,
"hasNextPage": true,
"hasPrevPage": true
}
}Use your API key as a Bearer token. API keys can be generated in Settings → Integrations → API Access.
Page number
x >= 1Items per page
1 <= x <= 100Filter by company ID
Include count of devices per location