Widget config
Use these endpoints when you build your own chat or voice UI instead of the VoisX widget. They tell you how the widget is styled and which agents a visitor can talk to.
Get the widget config
GET
/widget/v1/configReturns the widget settings for the key's project and the list of active agents in it. Agents that are not active are left out.
Requires the widget:read permission.
Headers
X-API-KeystringrequiredYour project API key.
Response fields
project_idintegeroptionalThe project the key belongs to.
project_namestringoptionalThe project name.
widget_configobjectoptionalWidget settings, in four groups:
designTokens (colours, font, radius), branding, copy (button and status text) and features (on/off switches). You set these in the console. Unset values fall back to defaults.agentsarrayoptionalActive agents in the project.
agents[].idintegeroptionalThe agent ID. Use it to start a session.
agents[].namestringoptionalThe agent name.
agents[].descriptionstring or nulloptionalThe agent description.
agents[].initial_messagestring or nulloptionalThe first thing the agent says.
agents[].providerstringoptionalThe voice provider the agent uses, for example
openai, gemini or elevenlabs.agents[].elevenlabs_convai_agent_idstring or nulloptionalSet when the agent runs on ElevenLabs Conversational AI. See Get an ElevenLabs signed URL.
Responses
200
The config and agents.
401
The key is invalid, revoked, lacks
widget:read, or is not allowed from this domain.404
The project was not found.
429
The key's rate limit was reached.
Get the project context
GET
/widget/v1/contextReturns the IDs and names of the key's project and organization. Use it when your page or your tools need to know which project they are running in.
Requires the widget:read permission.
Headers
X-API-KeystringrequiredYour project API key.
Response fields
project_idintegeroptionalThe project ID.
project_namestringoptionalThe project name.
org_idinteger or nulloptionalThe organization ID.
org_namestring or nulloptionalThe organization name.
Responses
200
The project context.
401
The key is invalid, revoked, lacks
widget:read, or is not allowed from this domain.404
The project was not found.
429
The key's rate limit was reached.
Was this page helpful?