Difference between revisions of "Get the Recorded Voicemail Details"

From docs
Jump to: navigation, search
(Created page with "== Store Recorded Voicemail File == === Base URL === https://apimobile.callproof.com === Endpoint === /api/voicemail/recorded/file === Purpose === Uploads a recorded voicem...")
 
(Store Recorded Voicemail File)
Line 1: Line 1:
== Store Recorded Voicemail File ==
+
== [[Mobile_API]] »Store Recorded Voicemail File ==
  
 
=== Base URL ===
 
=== Base URL ===

Revision as of 06:14, 21 July 2026

Mobile_API »Store Recorded Voicemail File

Base URL

https://apimobile.callproof.com

Endpoint

/api/voicemail/recorded/file

Purpose

Uploads a recorded voicemail audio file for a company Twilio phone number, replaces any existing voicemail file for that number, and enables voicemail (while disabling call forwarding) on that number.

HTTP Method

POST

Headers

Header Required Description
Authorization Yes Bearer access token
Content-Type Yes multipart/form-data (file upload)

Security

  • Yes – Requires Bearer Token authentication.

Parameters

Path Parameters

None.

Query Parameters

None.

Request Body

Parameter Type Required Description
phone_number string Yes Twilio phone number that will receive the recorded voicemail
audio_file file Yes Voicemail audio file (mp3 or wav; maximum size rule max:5000)

Successful Response (200)

Indicates that the voicemail file was uploaded successfully.

Field Type Description
clientStatusCode integer Status indicator for the client (for example, 200)
user_id integer Identifier of the authenticated user
company_id integer Identifier of the authenticated user’s company
message string Confirmation message (for example, "The voicemail file uploaded successfully.")
uri string Requested resource URI

Error Responses

Status Code Meaning
200 Validation failed – response body uses clientStatusCode 401 with the first validation error message
400 Bad Request – the voicemail file could not be stored
401 Unauthorized – missing, invalid, or expired Bearer token
  • Validation (HTTP 200, clientStatusCode 401) – Missing phone_number / audio_file, invalid file type, or file too large.
  • 400 – Phone number not found for the company ("Phone number not found"), file not uploaded ("Voicemail not uploaded"), or another upload error (for example, "Error while uploading the voicemail file details").
  • 401 – Authentication failed or the access token is missing/expired.