#how can i get the request-id for my request to the textToSpeech api

1 messages · Page 1 of 1 (latest)

daring tuskBOT
#
AI-generated Answer for acdjake

Short answer:

  • Read it from the HTTP response headers of your Text-to-Speech call. The docs’ request‑stitching example shows capturing it from the response headers as request-id. (elevenlabs.io)
  • Or fetch it afterward from the History API, which returns request_id for each history item. (elevenlabs.io)

Notes:

  • Both streaming and non‑streaming TTS return headers; the history item may appear with a slight delay, as noted in ElevenLabs’ blog update. (elevenlabs.io)
  • The Create speech reference also documents previous_request_ids/next_request_ids, confirming request IDs are the intended identifiers to chain generations. (elevenlabs.io)

Sources:
Stitching multiple requests | ElevenLabs Documentation
Get generated items | ElevenLabs Documentation
ElevenLabs — History API Updates | ElevenLabs
Create speech | ElevenLabs Documentation

nova ridge
#

how can i retrieve an item from the history with the request-id?