Dynamic Authentication via the widget
When you embed the copilot in your app, you can pass the authentication token to the copilot by using theheaders prop.
headers prop, the copilot will send it with every request it makes to your API.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Learn how to authenticate the copilot’s API calls to your backend
headers prop.
initAiCoPilot({
...
headers: {
Authorization: "Bearer your_auth_token_goes_here",
AnyToken: "AnyValue"
},
...
});
headers prop, the copilot will send it with every request it makes to your API.
