Get voicemail by numeric ID or proxy legacy list selectors

GET /voicemail/list/{id}

When id is numeric, the middleware fetches the legacy voicemail list and filters it locally. When id is a legacy selector such as all, old, or inbox, the request is transparently proxied to the legacy V1 API path.

Path parameters

  • id string Required

Responses

  • 200 application/json

    Voicemail list or filtered voicemail item

    Hide response attributes Show response attributes object
    • count integer
    • rows array[object]

      Additional properties are allowed.

  • 400 application/json

    Missing voicemail id

    Hide response attributes Show response attributes object
    • code integer
    • message string
    • data
    • error string
  • 401 application/json

    Unauthorized

    Hide response attributes Show response attributes object
    • code integer
    • message string
    • data
    • error string
  • 502 application/json

    Failed to fetch the legacy voicemail list

    Hide response attributes Show response attributes object
    • code integer
    • message string
    • data
    • error string
GET /voicemail/list/{id}
curl \
 --request GET 'http://localhost:8080/voicemail/list/{id}' \
 --header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
  "count": 42,
  "rows": [
    {}
  ]
}
Response examples (400)
{
  "code": 42,
  "message": "string",
  "error": "string"
}
Response examples (401)
{
  "code": 42,
  "message": "string",
  "error": "string"
}
Response examples (502)
{
  "code": 42,
  "message": "string",
  "error": "string"
}