Discussions
Error 400112 when calling /v1/streaming.task with LiveAvatar Full Mode session
Hi HeyGen Engineering Team,
I'm getting 401 Unauthorized (error code 400112) when trying to send text to my avatar using the /v1/streaming.task endpoint.
My Setup:
Using LiveAvatar API in Full Mode
Session creation: POST api.liveavatar.com/v1/sessions/token ✅ Works
Session start: POST api.liveavatar.com/v1/sessions/start ✅ Works
LiveKit connection: ✅ Works (avatar speaks initial greeting)
Voice input via microphone: ✅ Works
The Problem: When I call POST api.heygen.com/v1/streaming.task with:
{
"session_id": "98c3009a-1237-4a63-8717-9b2317d287ca",
"text": "Hello",
"task_type": "talk"
}
Headers:
Authorization: Bearer <session_token from /v1/sessions/token>
Content-Type: application/json
I get: {"message": "Unauthorized", "code": 400112}
What I've tried:
Session token only (from /v1/sessions/token) → 401 (400112)
API key as Bearer token → 401 (400112)
Both X-Api-Key and Authorization headers → 401 (400112)
Question: Is /v1/streaming.task compatible with sessions created via LiveAvatar API (api.liveavatar.com)? Or is there a different endpoint for sending text in Full Mode?
Thanks!