---
title: "Retrieve voicemail server"
method: GET
path: "/voicemail"
tags: ["Tenant"]
---

# Retrieve voicemail server

`GET /voicemail`

## Request

- Base URL: `https://HOSTNAME:8887/api`
- URL: `https://HOSTNAME:8887/api/voicemail`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/portsip/apis/portsip-pbx-rest-api/docs/voicemail/get.ts> (a function with typed inputs; its response is checked against the schema)

Retrieve voicemail server information.

## Response `200`

OK

- object
  - `extension_number` string: The extension number.
  - `retain_days` integer: Duration the voicemail will be kept before auto deleted, in days.
  - `min_seconds` integer: The minimum length of a voicemail, in seconds. Any callings shorter than this value will not be saved as voicemail.

## Other responses

- `4XX`: Error

---

[API](https://skmtc.dev/portsip/apis/portsip-pbx-rest-api.md) - [All operations](https://skmtc.dev/portsip/apis/portsip-pbx-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/portsip/apis/portsip-pbx-rest-api/revisions/577415d4a3d5?raw)
