Specialized APIsSensor InsightsAPI Reference

Retrieve all user profiles

Get a Summary of User Profile Records

POST /dm/v1/users/actions/query

Use this endpoint to retrieve the user profile records that have been created.

Header Parameters

The request header must set the content-type to JSON, contain a current ThingSpace authorization token and a current VZ-M2M session token. For more details on how to get these tokens, visit Getting Started.

Parameter NameData TypeDescription
Authorization (required)stringHTTP Authorization request header containing a valid Bearer token: Authorization: Bearer {token}
VZ-M2M-Token (required)stringA valid session token returned by a Connectivity Management POST /session/login request.
Content-Type (required)stringMust be application/json.

HTTP Request

POST https://thingspace.verizon.com/api/dm/v1/users/actions/query

Request Parameters

Note: All parameters are required unless marked (optional)

ParameterData TypeDescription
accountnamestringThe numeric name of the account and must include leading zeros.
filterobjectOptional filter data to narrow the search.
$expand (optional)stringUse to provide device details to filter on.
$limitnumber (optional)integerLimits the number of results returned.
$nopagination (optional)booleanA flag to indicate if pagination is requested ( false ) or not ( true ).
$page (optional)stringThe number of pages in the response.
$pagenumber (optional)integerThe page number requested (if known).
$projection (optional)arrayLimits results to the fields of the device that the user is interested in rather than all of the fields.
$selection (optional)objectFilters results based on user defined criteria.

Request Body

Example Request:

{
  "accountname": "0000123456-00001",
  "filter": {
    "$expand": "device detail(s)",
    "$limitnumber": 100,
    "$nopagination": true,
    "$page": "The number of pages",
    "$pagenumber": 100,
    "$projection": [
      "details requested"
    ],
    "$selection": {
      "additionalProp1": "string",
      "additionalProp2": "string",
      "additionalProp3": "string"
    }
  }
}

Success Response

Status 200 This is a synchronous response, so the user records will be returned. Example Response:

{
  "accountclientid": "null",
  "ackterms": true,
  "acktermson": "2023-10-02T15:46:34.562Z",
  "billingaccountid": "The billing account ID",
  "createdon": "2023-10-02T15:46:34.562Z",
  "credentialsid": "email@domain.com",
  "credentialstype": "email",
  "customdata": {
    "additionalProp1": [
      100
    ],
    "additionalProp2": [
      100
    ],
    "additionalProp3": [
      100
    ]
  },
  "description": "a short description",
  "displayname": "user name displayed",
  "email": "email@domain.com",
  "firstname": "First name",
  "foreignid": "c1f178d3-eeee-ffff-gggg-0d6b7ae6022a",
  "id": "a record UUID",
  "lastname": "Last name or Surname",
  "lastupdated": "2023-10-02T15:46:34.562Z",
  "mdn": "908-555-1234",
  "middlename": "Middle name or initial",
  "name": "the assigned name of the record",
  "number": "908-555-1234",
  "requestedon": "2023-10-02T15:46:34.562Z",
  "secondarybillingaccountids": [
    null
  ],
  "state": "success",
  "version": "1.0",
  "versionid": "337bd2e8-eeee-ffff-gggg-5207992fd395"
}

Success Parameters

ParameterData TypeDescription
accountclientidstringFuture functionality. This value will be "null".
acktermsbooleanA flag indicating if the user has accepted the terms of use ( true ) or not ( false ).
acktermsonstring ($date-time)A timestamp of when terms were accepted.
billingaccountidstringThe numeric name of the account and must include leading zeros. This value matches the accountname.
createdonstring ($date-time)The timestamp of when the record was created.
credentialsidstringAn email address used for user credentials. Currently, only email addresses are valid values.
credentialstypestringThe type of credential represented by the ID. This will be email.
customdataobjectThis is free form JSON, any thing in the form of JSON can be stored.
descriptionstringA description of the record.
displaynamestringThe name of the user to be displayed.
emailstringAn email address for the user, in the format "email@domain.com".
firstnamestringThe user's first name
foreignidstringThe UUID value of the user's Enterprise Customer Profile Database (ECPD) account. A UUID is a 32 to 36-bit alphanumeric string.
idstringThe UUID of the resource. A UUID is a 34 or 36-bit alphanumeric value.
lastnamestringThe user's last name or Surname.
lastupdatedstring ($date-time)The timestamp of when the last update to the record was made.
mdnstringThe Mobile Directory Number of the user. This is a 10-digit phone number.
middlenamestringThe middle name or initial of the user.
namestringThe name of the record assigned by the creator of the record.
numberstringA phone number for the user.
requestedonstring ($date-time)The timestamp of when the record was requested.
secondarybillingaccountidsarrayThis is a virtual field not used in this release. The value will be "null".
statestringThe status of the request made.
versionstringThe resource version.
versionidstringThe UUID of the resource version. A UUID is a 32 to 36-bit alphanumeric string.

Failure Responses

Example Response:

{
  "error": "Error name or code",
  "error_description": "A longer error description.",
  "cause": "A cause for the error"
}

On this page