GET
/v1/convai/phone-numbers/{phone_number_id}/sip-messages
ElevenLabs APIGet Sip Messages For A Phone Number
- Base URL
- https://api.elevenlabs.io
- Auth
- xi-api-key: <ELEVENLABS_API_KEY>
- Last verified
- 2026-09-03 · upstream hash matched
Actions
Agents: curl -H "Accept: text/markdown" this URL
→ 216 tokens · Vary: Accept
→ 216 tokens · Vary: Accept
Critical gotchas
Authentication uses the non-standard xi-api-key header, not Authorization: Bearer. Sending a Bearer token returns HTTP 401.
Text-to-speech responses are raw binary audio, not JSON. Write the body to a file (--output speech.mp3) rather than parsing it.
cURL
curl -X GET 'https://api.elevenlabs.io/v1/convai/phone-numbers/phone-number-id/sip-messages?page_size=20&cursor=example-cursor' \ -H "xi-api-key: $ELEVENLABS_API_KEY"Get a free ElevenLabs API key → sponsored
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| phone_number_id | path | string | Yes | The phone number ID. This is returned when a phone number is imported. |
| page_size | query | integer | No | query parameter page_size. |
| cursor | query | string | No | Used for fetching next page. Cursor is returned in the response. |
Response 200 OK
{
"sip_messages": [
{
"call_id": "string",
"phone_numbers": [
"string"
],
"local_address": "string",
"remote_address": "string",
"transport": "string",
"raw_message": "string",
"error_message": "string",
"direction": "in",
"created_at_unix_micro": 0
}
],
"next_cursor": "string",
"has_more": false
}