Standard APIsConnectivity ManagementAPI EndpointsEmbedded SIM Including Consumer eSIMList Device Groups

API Reference

Get Device Groups

Uses and Requirements

Returns a list of all device groups in a specified account.

Resource and Query Parameters

None.

Request Components

HTTP Request:

GET https://thingspace.verizon.com/api/m2m/v1/groups/{accountname}

Resource Path and Query Parameters

You must include the account name in the path.

Parameter NameData TypeDescription
accountname requiredstringThe name of the account for which you want a list of device groups. An account name is usually numeric, and must include any leading zeros.

Header Parameters

The request header must contain a current ThingSpace authorization bearer token and a valid VZ-M2M session token, and must set the content-type to JSON.

Parameter NameData TypeDescription
Authorization requiredstringHTTP Authorization bearer token.
VZ-M2M-Token requiredstringA valid session token returned by POST /session/login.
Content-Type requiredstringMust be application/json.

Request Body

None.

Success Responses

The information about the device group that you want to create.

Status 200 A successful request returns an array of device group objects:

Parameter NameData TypeDescription
namestringThe name of the device group.
descriptionstringThe description of the device group.
isDefaultGroupbooleanIdentifies the default device group.
extendedAttributesarry of extendedAttribute objectsAny extended attributes for the device group, as Key and Value pairs.
 keystringThe key for an extended attribute.
 valuestringThe value of an extended attribute.

Example Success Response:

[
  {
    "name": "Unassigned Devices",
    "description": "All devices that are not in another device group.",
    "isDefaultGroup": true,
    "extendedAttributes": null
  },
  {
    "name": "West Coast Devices",
    "description": "",
    "isDefaultGroup": false,
    "extendedAttributes": null
  },
  {
    "name": "East Coast Devices",
    "description": "",
    "isDefaultGroup": false,
    "extendedAttributes": null
  }
]

Failure Responses

{
  "errorCode": "error code string",
  "errorMessage": "error message string"
}

On this page