Learn how to use Metadata with OutRival.
For better security, it is recommended to encode the user ID with a secret key so it is impossible to simulate the conversation on behalf of a specific user knowing their user ID.Metadata could be passed to the following endpoints:
rest/v2/ai-chats/current
rest/v2/workflows/chat/completions
rest/v2/call/web
rest/v2/call/phone
Metadata could be passed to the CompanionWidget initialization: