Skip to main content

Voice Application Subscriber Data

For the impatient

You may explore this data model via the API Playground, by clicking here

Endpoints

  • /tenants/{tenant-name}/domains/{domain}/applications/{application-name}/subscribers/{subscriber-msisdn}

The Cloudonix application subscriber data model allows Cloudonix voice applications to safely and easily store and load subscriber specific application data, similar to how web applications can store data in cookies sent and received from the viewers' browsers.

For each subscriber that interacts with a voice application, there is a unique storage space that allows the voice application to record various data points associated with custom data keys - similar to a key-value store.

The data can be anything that can be encoded as text, though JSON encoded data is highly recommended. Keys are expected to be short text identifiers.

Properties

PropertyTypeEditableDescription
applicationObjectNoThe Cloudonix Voice Application object for which this subscriber data was stored.
subscriberObjectNoThe Cloudonix Subscriber object for which this subscriber data was stored.
keyStringCreateThe identifying data key.
dataStringCreate, UpdateThe value stored.
createdTimeStringNoTime this value was first created for the subscriber, as an ISO 8601 UTC time stamp.
modifiedTimeStringNoTime this value was last modified for the subscriber, as an ISO 8601 UTC time stamp.

The endpoint supports only the following oeprations:

GET …/{subscriber-msisdn}

Retrieve a list of the current values of all keys in the format specified above.

PUT …/{subscriber-msisdn}/{key}

Update the data value associated with a key - creating it if it does not exist. The body of the request will be read as the text data to set for they key.

Get …/{subscriber-msisdn}/{key}

Read the current value of a key, returninga 404 Not Found error if it does not exist. The body of the response will be the text value of data stored for the key.