Skip to main content
GET
/
v1
/
accounts
/
{accountId}
/
voice-library
/
{voiceId}
/
sample
Synthesize a short audio sample of a voice
curl --request GET \
  --url https://api.us.poly.ai/v1/accounts/{accountId}/voice-library/{voiceId}/sample \
  --header 'X-API-KEY: <api-key>'
{
  "voiceId": "<string>",
  "sampleUrl": "<string>",
  "expiresInSeconds": 123,
  "text": "<string>"
}

Documentation Index

Fetch the complete documentation index at: https://docs.poly.ai/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

X-API-KEY
string
header
required

Path Parameters

accountId
string
required
voiceId
string
required

Response

Successful response

Response for GET /voice-library/<voice_id>/sample.

voiceId
string
required

The voice that was synthesized

sampleUrl
string
required

Time-limited URL to a synthesized sample of the voice

expiresInSeconds
integer
required

Number of seconds until sample_url expires

text
string
required

The text that was synthesized

Last modified on June 1, 2026