Standard APIsConnectivity ManagementGuidesCallbacks

Get Registered Callback Listeners

GET /callbacks/{accountName}

Returns the name and endpoint URL of the callback listening services registered for a given account.

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

GET https://thingspace.verizon.com/api/fota/v1/callbacks/{accountName}

Request Parameters

The account name must be included in the path.

Parameter NameData TypeDescription
accountName (required)stringThe name of the account for which a list of registered callback services will be returned. An account name is usually numeric, and must include any leading zeros.

Request Body

None.

Success Responses

Status 200 Example Success Response

[
   {
      "accountName":"0000123456-00001",
      "serviceName":"DeviceProfileService",
      "url":"undefined",
      "username":"username",
      "password":"password"
   },
   {
      "accountName":"0000123456-00001",
      "serviceName":"DeviceService",
      "url":"http://webservice.location.azure.com:9001/callback/DeviceService/rest",
      "username":"user",
      "password":"password"
   },
   {
      "accountName":"0000123456-00001",
      "serviceName":"DiagnosticsService",
      "url":"http://webservice.location.azure.com:9001/scef-monitoring/callback",
      "username":"null",
      "password":"null"
   },
   {
      "accountName":"0000123456-00001",
      "serviceName":"ExternalProvisioningChanges",
      "url":"http://webservice.location.azure.com:9001/callback/StateService/rest"
   },
   {
      "accountName":"0000123456-00001",
      "serviceName":"NetworkEventService",
      "url":"http://webservice.location.azure.com:9001/callback/StateService/rest"
   },
   {
      "accountName":"0000123456-00001",
      "serviceName":"StateService",
      "url":"http://webservice.location.azure.com:9001/callback/StateService/rest"
   }
] 

Success Parameters

Parameter NameData TypeDescription
accountNamestringThe name of the billing account for which callback messages will be sent.
serviceNamestringThe name of the callback service, which identifies the type and format of messages that will be sent to the registered URL.
urlstringThe address of the callback listening service where ThingSpace will send callback messages for the service type.
usernamestringThe user name set for the listener. This may or may not be presented, based on how the listener is configured.
passwordstringThe password set for the listener. This may or may not be presented, based on how the listener is configured.

Note: The response body will be empty if there are no callback services registered with the account. If a URL has not been set for the listener, the url will be "undefined".

Failure Responses

All error messages are returned in this format:

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

Error codes and messages are listed on the Error Messages page, along with explanations and suggestions for corrective actions.

On this page