Metadata
To enhance the API experience and make it easier to track your data held within the DIY Surveys Platform we offer the ability to supply metadata along with any API method (where appropriate). This meta data is then returned in any call backs or along with data provision (for example collecting a message history).
Meta Data takes the form of a JSON array and can contain any number of entries to support your needs. For example:
You will see from the example that the data can contain strings, numbers and dates. To supply with your API method you reference the metadata element in the JSON structure. For example, when sending an SMS message:
Callbacks
When a callback is triggered along with the standard information the additional metadata data is provided. For example (based on the above example):
Key Metadata Values
Whilst most metadata values are not reviewed by the DIY Surveys platform in any specific way there are some values that are used by the platform if present:
Value
Description
Campaign
Country
Last updated
Was this helpful?