Create Agent Session
Changed onStart a conversation session with an agent and receive a join token for the session transport (currently LiveKit WebRTC). Authenticate with an API key to start sessions with any agent in your team; without credentials only agents published as public are reachable, and the request Origin must match the agent's allowed origins.
language (and overrides.language) accepts en, ja, zh, ko, es, fr, de, pt, it, nl; anything else is 422. Omit it to use the agent's configured speaking language.
overrides.asr.model picks the speech recognition model for this session, nested like the agent config's asr section and with the same values as asr.model. It needs an API key.
overrides.llm.fallback replaces the agent's llm.fallback for this session, with the same shape and rules; each custom model needs its api_key. It needs an API key and llm.fallback in the agent's overrides_allowed.
Request
- Base URLhttps://api.fish.audio
- URLhttps://api.fish.audio/v1/agent/sessions
- AuthHTTP bearer
Headers
Request body
Response
Document created, URL follows
Changes
- info
endpoint added
- info