GET /v2/accounts/{accountname}/requests/{requestID}/statusShows the current status of a specific request. Since requests are Asynchronous and require a callback to review results, this request will show if a request has failed, processed or is queued to run.
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 Name | Data Type | Description |
|---|---|---|
| Authorization required |
string | HTTP Authorization bearer token: |
| VZ-M2M-Token required |
string | A valid session token: |
| Content-Type required |
string | Must be application/json: |
GET https://thingspace.verizon.com/api/m2m/v2/accounts/{accountname}/requests/{requestID}/status| Parameter | Data Type | Description |
|---|---|---|
| accountName required |
string | The name of the account. |
| requestId required |
string | The system generated request ID from the request made. |
None.
Status 200
Example Response:
{
"requestId":"86c83330-4bf5-4235-9c4e-a83f93aeae4c",
"status":"Success",
"subRequests":[
{
"ids":[
{
"id":"20-digit ICCID",
"kind":"iccid"
}
],
"status":"Success"
},
{
"ids":[
{
"id":"20-digit ICCID",
"kind":"iccid"
}
],
"status":"Pending"
}
]
}
| Parameter | Data Type | Description |
|---|---|---|
| requestId |
string | The system generated request ID from the request made. |
| status |
string | The overall status of the request and will be one of the following:
|
| subRequests |
array | The devices included in the request. |
| ids |
array | An array of devices, by id, that are included in the request. Each ids will contain:
|
| id |
string | The numeric ID of the device. |
| kind |
string | The the type of device ID represented by the ID value. This could be:
|
| status |
string | The status of the request on a specific device and will be one of the following:
|
All error responses will be in the following format
{
"errorCode": "The 3-digit HTML error code",
"errorMessage": "string"
}