List voicemails
Returns the phone system’s voicemails, newest first (ordered by createdAt descending with id as the tiebreak, so paging is deterministic). Filter by an inclusive createdAt window (dateFrom/dateTo). Each row carries the recordingSid of its audio; fetch the audio through the recording signed-URL operation, which requires the recordings scope. Requires the voicemails scope.
GET
/customer/phone-systems/{phoneSystemId}/voicemailsAuthorization
X-API-KeyAPI key · headerrequiredAPI key (sk_phones_* prefix) for programmatic access
Path parameters
phoneSystemIdstring<uuid>requiredPhone system identifier, discoverable via the accessible phone systems operation.
Query parameters
pageinteger1-indexed page number.
min 1 · default: 1
pageSizeintegerRows per page; at most 100.
min 1 · max 100 · default: 25
dateFromstring<date-time>Inclusive lower bound (ISO 8601 UTC) on the row creation time.
dateTostring<date-time>Inclusive upper bound (ISO 8601 UTC) on the row creation time.
Responses
200One page of voicemails with the total row count for the filter.
dataobject[]requiredShow propertiesHide properties
Array of
objectarchivedbooleanrequiredWhether the voicemail has been archived.
callGroupIdstring<uuid> | anyrequiredCall group mailbox that received the voicemail, when group-addressed.
Show propertiesHide properties
Any of:
string<uuid>
string<uuid>any
anycallSidstringrequiredCall identifier of the call that left the voicemail, as delivered in webhook payloads.
createdAtstring<date-time>requiredWhen the voicemail was left; lists are ordered by this, descending.
durationintegerrequiredVoicemail duration in seconds.
extensionIdstring<uuid> | anyrequiredExtension mailbox that received the voicemail, when extension-addressed.
Show propertiesHide properties
Any of:
string<uuid>
string<uuid>any
anyfromstringrequiredCalling party.
fromNamestring | anyrequiredCaller name, when known.
Show propertiesHide properties
Any of:
string
stringany
anyidstring<uuid>requiredVoicemail identifier — the voicemailId carried by webhook payloads.
listenedbooleanrequiredWhether the voicemail has been listened to.
phoneSystemIdstring<uuid>requiredPhone system this voicemail belongs to.
recordingSidstringrequiredRecording identifier of the voicemail audio — fetch via the signed-URL operation.
pageintegerrequiredmin 1
pageSizeintegerrequiredmin 1 · max 100
totalintegerrequiredmin 0
totalPagesintegerrequiredmin 0
400Validation failure: an unknown query parameter, a malformed date, or a pageSize above 100. Field problems are itemized in errors[].
codestringrequiredStable machine identifier to branch on.
correlationIdstringrequiredRequest identifier to quote to support.
detailstringrequiredUser-safe explanation. Display it if you must; never match on it.
errorsobject[]Field-level validation problems. Present on validation failures.
Show propertiesHide properties
Array of
objectcodestringrequiredPer-field machine code (REQUIRED, TOO_SMALL, …).
detailstringrequiredHuman-readable description of the field problem.
pointerstringrequiredJSON Pointer to the offending request field.
paramsobjectExtra primitive detail about the condition, such as a limit that was hit.
retry_afterintegerSeconds to wait before retrying, when a meaningful delay exists.
retryablebooleanrequiredWhether this condition is transient. Derived from code.
statusintegerrequiredMirrors the HTTP status code.
titlestringrequiredShort human summary of the problem type.
typestringrequiredURL identifying the problem type. An identifier to match, not a link.
401The API key is missing, malformed, expired, or revoked.
codestringrequiredStable machine identifier to branch on.
correlationIdstringrequiredRequest identifier to quote to support.
detailstringrequiredUser-safe explanation. Display it if you must; never match on it.
errorsobject[]Field-level validation problems. Present on validation failures.
Show propertiesHide properties
Array of
objectcodestringrequiredPer-field machine code (REQUIRED, TOO_SMALL, …).
detailstringrequiredHuman-readable description of the field problem.
pointerstringrequiredJSON Pointer to the offending request field.
paramsobjectExtra primitive detail about the condition, such as a limit that was hit.
retry_afterintegerSeconds to wait before retrying, when a meaningful delay exists.
retryablebooleanrequiredWhether this condition is transient. Derived from code.
statusintegerrequiredMirrors the HTTP status code.
titlestringrequiredShort human summary of the problem type.
typestringrequiredURL identifying the problem type. An identifier to match, not a link.
403The key lacks the voicemails:read scope, or is not a tenant API key.
codestringrequiredStable machine identifier to branch on.
correlationIdstringrequiredRequest identifier to quote to support.
detailstringrequiredUser-safe explanation. Display it if you must; never match on it.
errorsobject[]Field-level validation problems. Present on validation failures.
Show propertiesHide properties
Array of
objectcodestringrequiredPer-field machine code (REQUIRED, TOO_SMALL, …).
detailstringrequiredHuman-readable description of the field problem.
pointerstringrequiredJSON Pointer to the offending request field.
paramsobjectExtra primitive detail about the condition, such as a limit that was hit.
retry_afterintegerSeconds to wait before retrying, when a meaningful delay exists.
retryablebooleanrequiredWhether this condition is transient. Derived from code.
statusintegerrequiredMirrors the HTTP status code.
titlestringrequiredShort human summary of the problem type.
typestringrequiredURL identifying the problem type. An identifier to match, not a link.
404The phone system does not exist or is not covered by the key.
codestringrequiredStable machine identifier to branch on.
correlationIdstringrequiredRequest identifier to quote to support.
detailstringrequiredUser-safe explanation. Display it if you must; never match on it.
errorsobject[]Field-level validation problems. Present on validation failures.
Show propertiesHide properties
Array of
objectcodestringrequiredPer-field machine code (REQUIRED, TOO_SMALL, …).
detailstringrequiredHuman-readable description of the field problem.
pointerstringrequiredJSON Pointer to the offending request field.
paramsobjectExtra primitive detail about the condition, such as a limit that was hit.
retry_afterintegerSeconds to wait before retrying, when a meaningful delay exists.
retryablebooleanrequiredWhether this condition is transient. Derived from code.
statusintegerrequiredMirrors the HTTP status code.
titlestringrequiredShort human summary of the problem type.
typestringrequiredURL identifying the problem type. An identifier to match, not a link.
Request
curl -X GET "https://api.steerphones.com/v1/customer/phone-systems/%3Cuuid%3E/voicemails" \
-H "X-API-Key: YOUR_API_KEY"Response
{
"data": [
{
"archived": true,
"callGroupId": "<uuid>",
"callSid": "string",
"createdAt": "2024-01-01T00:00:00Z",
"duration": 0,
"extensionId": "<uuid>",
"from": "string",
"fromName": "string",
"id": "<uuid>",
"listened": true,
"phoneSystemId": "<uuid>",
"recordingSid": "string"
}
],
"page": 0,
"pageSize": 0,
"total": 0,
"totalPages": 0
}{
"code": "string",
"correlationId": "string",
"detail": "string",
"errors": [
{
"code": "string",
"detail": "string",
"pointer": "string"
}
],
"params": {},
"retry_after": 0,
"retryable": true,
"status": 0,
"title": "string",
"type": "string"
}{
"code": "string",
"correlationId": "string",
"detail": "string",
"errors": [
{
"code": "string",
"detail": "string",
"pointer": "string"
}
],
"params": {},
"retry_after": 0,
"retryable": true,
"status": 0,
"title": "string",
"type": "string"
}{
"code": "string",
"correlationId": "string",
"detail": "string",
"errors": [
{
"code": "string",
"detail": "string",
"pointer": "string"
}
],
"params": {},
"retry_after": 0,
"retryable": true,
"status": 0,
"title": "string",
"type": "string"
}{
"code": "string",
"correlationId": "string",
"detail": "string",
"errors": [
{
"code": "string",
"detail": "string",
"pointer": "string"
}
],
"params": {},
"retry_after": 0,
"retryable": true,
"status": 0,
"title": "string",
"type": "string"
}