Standard APIsConnectivity ManagementAPI EndpointsAccount RequestsGet Current Asynchronous Request Status

API Reference

Get the Current Status of an Asynchronous Request

Uses and Requirements

You can request the status of asynchronous requests that were run for two-way provisioning transactions on a single device. Two-way provisioning transactions include Activate, Deactivate, Suspend, and Resume.

You cannot check the status of requests that operated on multiple devices or check the status of asynchronous requests for other APIs.

Request Components

HTTP Request

GET https://thingspace.verizon.com/api/m2m/v1/accounts/{accountname}/requests/{requestID}/status

Resource and Query Parameters

The URI path must include the account name and the request ID for which you want status.

Parameter NameData TypeDescription
accountname requiredstringThe name of the account that sent the asynchronous request.
requestID requiredstringThe asynchronous transaction request ID, found in the synchronous response to the original request.

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

Status 200

A successful request returns the request ID and the current status:

Parameter NameData TypeDescription
requestIdstringThe unique ID of the asynchronous request.
statusstringThe current status of the request: Pending - The request is still being processed. Success - The request has completed processing with no errors. Failed - There were errors that prevented the request from being completed.

Example Success Response

{
  "requestId":"86c83330-4bf5-4235-9c4e-a83f93aeae4c",
  "status": "Success"
}

On this page