Connectivity Callbacks

Registers a URL where an account will receive RESTFul messages from a platform callback service.

POST
/m2m/v1/callbacks/{aname}

You are responsible for creating and running a listening process on your server at that URL.

Authorization

thingspace_oauth VZ-M2M-Token
AuthorizationBearer <token>

This is the ThingSpace token, from Credentials and Tokens is used

In: header

VZ-M2M-Token<token>

M2M Session Token (How to generate an M2M session token?)

In: header

Path Parameters

aname*string

Account name.

Request Body

application/json

Request to register a callback.

Request to register a callback.

name*string

The name of the callback service that you want to subscribe to.

url*string

The address on your server where you have enabled a listening service for callback messages.

username?string

The user name that the M2M Platform should return in the callback messages.

password?string

The password that the M2M Platform should return in the callback messages.

Response Body

application/json

application/json

curl -X POST "https://example.com/m2m/v1/callbacks/TestAccount-2" \  -H "Content-Type: application/json" \  -d '{    "name": "CarrierService",    "url": "https://mock.thingspace.verizon.com/webhook"  }'
{  "accountName": "122333444-00002",  "serviceName": "CarrierService"}