Voicemails

When a caller leaves a voicemail, Phone.inc records the audio and ties it to the business number that was dialed. The Voicemails API lists every voicemail on your account, gives you a signed URL for the recording, and lets you flip the listened flag from your own UI.

The voicemail model

A voicemail is a small object: who called, when, where the recording is, and whether someone has listened to it yet.

The same resource includes written receptionist messages with kind: "receptionist_message". Their transcription contains the caller's message and recording_url is null: no voicemail audio is recorded. No explicit readback confirmation is required. message_details contains selected fields (name, email, company_name, reference, callback_time), with null for information the caller could not provide. Email uncertainty does not prevent saving; the captured address remains available to the team even when it cannot populate the contact email. Ordinary recordings have kind: "voicemail" and no message details. Written messages notify the same employees using their voicemail email preferences, immediately after saving. Deleting message data clears the message and collected details; contact details already saved on the contact are separate.

Partner OAuth requires voicemails:read to read voicemails, including their recordings and transcriptions, and voicemails:write plus voicemails:read to update or delete them. These resource permissions also apply when voicemail content is embedded in other responses. No separate content permission is needed.

Reference IDs remain available, but embedded employee, contact, department, and business-number details require their matching resource read scopes. Business-number names, numbers, and formatted-number fields require business_numbers:read. API-key responses are unchanged. See OAuth scopes.

Recordings are checked for spoken words during transcription. Silence and sound effects, such as a hang-up click, are discarded instead of kept as voicemails. The unanswered call remains a missed call and emits call.lost. A recording may appear briefly while this check is pending. Voicemail emails and integration notifications wait for speech to be confirmed. If transcription fails, the recording is kept for retry rather than discarded.

Properties

  • Name
    id
    Type
    string
    Description

    Unique identifier for the voicemail.

  • Name
    from
    Type
    string
    Description

    The caller's phone number in E.164 format.

  • Name
    kind
    Type
    string
    Description

    voicemail for an audio recording or receptionist_message for a written message.

  • Name
    message_details
    Type
    object
    Description

    Collected fields for written messages. Selected but unavailable values are null. Unselected fields are omitted. null or empty for ordinary voicemails or deleted data.

  • Name
    listened_at
    Type
    timestamp
    Description

    ISO 8601 timestamp of when the voicemail was first marked as listened. null if it hasn't been listened to yet.

  • Name
    transcription
    Type
    string
    Description

    Plain-text transcription of the voicemail recording. null until the recording has been transcribed.

  • Name
    created_at
    Type
    timestamp
    Description

    ISO 8601 timestamp of when the voicemail was recorded.

  • Name
    recording_url
    Type
    string
    Description

    URL where the audio file can be downloaded. May be null if the recording is still being processed. The URL is generated per request — don't cache it long-term.

  • Name
    business_number_id
    Type
    string
    Description

    The ID of the business number the voicemail was left on.

  • Name
    business_number_name
    Type
    string
    Description

    The label of the business number.

  • Name
    business_number_number
    Type
    string
    Description

    The business number in E.164 format.

  • Name
    business_number_number_formatted
    Type
    string
    Description

    The business number formatted for display.


GET/v1/voicemails

List voicemails

Returns every voicemail on the authenticated employee's company, newest first. There are no query parameters or pagination — voicemail volume is low enough that the full list is returned in one response.

The response also includes unlistened_count at the top — the number of voicemails on the company that haven't been marked as listened yet. It counts every unlistened voicemail, not just the ones in this response, so you can drive an inbox badge straight from it.

Request

GET
/v1/voicemails
curl https://app.phone.inc/api/v1/voicemails \
  -H "X-Api-Key: $PHONE_INC_API_KEY"

Response

{
  "unlistened_count": 3,
  "voicemails": [
    {
      "id": "0193f4cb-7777-7c00-9e3d-2b2b8a7f1c33",
      "from": "+14085550199",
      "listened_at": null,
      "transcription": "Hi, this is Dana from Acme. Give me a call back about the invoice when you get a chance. Thanks!",
      "created_at": "2026-05-11T13:48:02Z",
      "recording_url": "https://app.phone.inc/rails/active_storage/blobs/redirect/.../voicemail.mp3",
      "business_number_id": "0193f4a9-7c34-7c00-9e3d-2b2b8a7f1c01",
      "business_number_name": "Sales",
      "business_number_number": "+14155551234",
      "business_number_number_formatted": "+1 415-555-1234"
    }
  ]
}

GET/v1/voicemails/:id

Retrieve a voicemail

Returns a single voicemail by its ID. The response includes the recording URL and all metadata.

Request

GET
/v1/voicemails/:id
curl https://app.phone.inc/api/v1/voicemails/0193f4cb-7777-7c00-9e3d-2b2b8a7f1c33 \
  -H "X-Api-Key: $PHONE_INC_API_KEY"

Response

{
  "id": "0193f4cb-7777-7c00-9e3d-2b2b8a7f1c33",
  "from": "+14085550199",
  "listened_at": null,
  "transcription": "Hi, this is Dana from Acme. Give me a call back about the invoice when you get a chance. Thanks!",
  "created_at": "2026-05-11T13:48:02Z",
  "recording_url": "https://app.phone.inc/rails/active_storage/blobs/redirect/.../voicemail.mp3",
  "business_number_id": "0193f4a9-7c34-7c00-9e3d-2b2b8a7f1c01",
  "business_number_name": "Sales",
  "business_number_number": "+14155551234",
  "business_number_number_formatted": "+1 415-555-1234"
}

PATCH/v1/voicemails/:id

Update a voicemail

Mark a voicemail as listened or unlistened. This is the only field you can update on a voicemail today.

Pass listened=true to set listened_at to the current time (no-op if it's already listened). Pass listened=false to clear it.

Returns the full voicemail object.

Optional attributes

  • Name
    listened
    Type
    boolean
    Description

    Whether the voicemail should be marked as listened. Accepts the usual truthy/falsy values (true, false, "1", "0").

Request

PATCH
/v1/voicemails/:id
curl -X PATCH https://app.phone.inc/api/v1/voicemails/0193f4cb-7777-7c00-9e3d-2b2b8a7f1c33 \
  -H "X-Api-Key: $PHONE_INC_API_KEY" \
  -d listened=true

Response

{
  "id": "0193f4cb-7777-7c00-9e3d-2b2b8a7f1c33",
  "from": "+14085550199",
  "listened_at": "2026-05-11T16:42:18Z",
  "transcription": "Hi, this is Dana from Acme. Give me a call back about the invoice when you get a chance. Thanks!",
  "created_at": "2026-05-11T13:48:02Z",
  "recording_url": "https://app.phone.inc/rails/active_storage/blobs/redirect/.../voicemail.mp3",
  "business_number_id": "0193f4a9-7c34-7c00-9e3d-2b2b8a7f1c01",
  "business_number_name": "Sales",
  "business_number_number": "+14155551234",
  "business_number_number_formatted": "+1 415-555-1234"
}

DELETE/v1/voicemails/:id

Delete a voicemail

Permanently deletes a voicemail and its recording. This cannot be undone.

Returns an empty response with a 204 No Content status.

Request

DELETE
/v1/voicemails/:id
curl -X DELETE https://app.phone.inc/api/v1/voicemails/0193f4cb-7777-7c00-9e3d-2b2b8a7f1c33 \
  -H "X-Api-Key: $PHONE_INC_API_KEY"