added
Custom Key metadata
over 2 years ago by Diego Coy
You can now embed custom metadata on Keys you create using the Integrator API.
When creating a new Key you can now include a metadata
parameter that receives a JSON object.
{
"userId": "+4781549300",
"metadata": {
"groupId": "cf92dc14",
"internalId": "1337",
"color": "pink",
"shouldDisplayToUser": "true",
"anotherCustomValue": "42"
}
}
You can specify up to 20 key–value pairs in the metadata
object. The values should be strings.
Each key's length can be up to 40 characters long, and each value's maximum length is 256.
Note that the
metadata
object is immutable: once created it cannot be changed.