Custom Metadata
Attach custom metadata to Recall resources
You can attach custom metadata to Recordings, Media, and data sources (such as Bots) through their corresponding metadata
field.
Any attached metadata will be present on the corresponding resource when fetched through the API, which can be useful for maintaining relationships with internal data models, or tagging resources with specific pieces of information.
Example: Tag a Bot's Recording with an internal user ID:
curl --request POST \
--url https://us-east-1.recall.ai/api/v1/bot/ \
--header 'Authorization: $RECALLAI_API_KEY' \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data '
{
"recording_config": {
"metadata": {
"user_id": "12345"
}
}
}
'
The metadata
will be available through the recording's metadata
field (for instance, when calling Retrieve Bot.
It will also be present when receiving a corresponding webhook. For instance, a Recording status change webhook:
{
"event": "recording.done",
"data": {
"recording": {
"id": string,
"metadata": {
"user_id": "12345"
}
},
...
}
}
Updated 2 days ago