There are four ways to work with the Connectivity Management API:
This table lists the credentials that you’ll need to use the simulator or your own account, either in the API Console or in your application.
Credential | Use the Simulator | Use Your Own Account |
---|---|---|
API Token | API Console: Sign in, and then go to Key Management in your Account Settings. Copy the My Test Token value to the clipboard, and then paste it into the Authorization: Bearer field below. In Your App: The test token does not expire, so it’s easy to use while developing your app. |
API Console: Sign in, and then go to Key Management in your Account Settings. Refresh the Token and the copy it to the clipboard. Return to the API Console page and paste it into the Authorization: Bearer field below. In Your App: Follow the instructions for Obtaining a ThingSpace Token Programmatically. NOTE: API Tokens are valid for one hour. |
VZ-M2M-Token | Use any value. | Send a POST /session/login request and use the sessionToken value from the response body. NOTE: Session Tokens expire if they are not used for 20 minutes. |
username and password for POST /session/login | Use any values. | Use the UWS credentials for your Verizon account. |
account name | TestAccount-1 (Use TestAccount-2 with POST /callbacks/{accountname} requests) |
Use the name of your Verizon business account. Account names are usually numeric, and must include any leading zeroes. |
Here is a suggested sequence of API requests to get you started:
POST /session/login
to start a new session and get a sessionToken that you’ll use as the VZ-M2M-Token value in all other requestsPOST /devices/actions/list
POST /devices/actions/activate
POST /devices/actions/suspend
POST /devices/actions/restore
POST /session/logout