Start an interactive avatar session
Start an interactive avatar session.
- Each running session counts toward your plan’s concurrent-session limit until it ends.
- Only sessions started through this API count toward the limit.
- Over the limit, the request fails with
429and codeconcurrency_limit; itsdetailstates your plan’s limit and how many sessions are running.
Required scope: interactive_avatars:write (in Studio: Interactive Avatars (write))
Authentication
Your Synthesia API key.
- Send it as
Authorization: Bearer <key>; a bare key also works. - An endpoint that needs a scope names it in its description; Scopes lists them all.
- A
:writescope also satisfies the same resource’s:read. - Without the scope, the request fails with a 403
insufficient_scope.
Request
The interactive avatars to join the session — e.g. the id returned by POST /api/interactive-avatars/avatars once its status is completed.
The WebSocket URL (wss://…) of your LiveKit room the avatar joins.
A LiveKit access token you mint for the avatar’s participant in that room. Set its lk.publish_on_behalf attribute to your agent’s participant identity, exactly (LiveKit server SDKs: AccessToken(…).with_attributes(…)). If you retry a failed request, reuse the same livekitUrl and livekitToken, so give the token a TTL that covers your retries.
Response headers
Response
The session id, prefixed ses_….
Always “active”: the session is live when this response returns.