Targets

GenerateTargetExternalID

POST
/cc/v1/targets/actions/newextid

Create a unique string that ThingSpace will pass to AWS for increased security.

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

Request Body

application/json

The request body only contains the authenticating account.

The request body only contains the authenticating account.

accountidentifier?

The ID of the authenticating billing account, in the format {"billingaccountid":"1234567890-12345"}.

Response Body

application/json

curl -X POST "https://example.com/cc/v1/targets/actions/newextid" \  -H "Content-Type: application/json" \  -d '{    "accountidentifier": {      "billingaccountid": "0000000000-00001"    }  }'
{  "externalid": "ZlJnih8BfqsosZrEEkfPuR3aGOk2i-HIr6tXN275ioJF6bezIrQB9EbzpTRep8J7RmV7QH=="}