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/v1/ai-chats/current
rest/v1/assistants/{assistantId}/chat/completions
rest/v1/call/web
rest/v1/call/phone
Metadata could be passed to the CompanionWidget initialization: