POST
request to this endpoint once the recording is processed and available.
Its primary function is to receive the recording metadata from Twilio and update the corresponding call record in your database with the recording URL, duration, and other details.
Request from Twilio
This endpoint consumesapplication/x-www-form-urlencoded
data sent by Twilio. The following are the key parameters:
CallSid
(string): The unique identifier of the call that was recorded. This is used to look up the call in your database.RecordingSid
(string): A unique identifier for the recording itself.RecordingUrl
(string): The URL where the recording’s audio file can be accessed. This URL will be stored in your database.RecordingDuration
(string): The duration of the recording in seconds.RecordingStatus
(string): The status of the recording, typicallycompleted
.
Response to Twilio
The endpoint responds with a200 OK
status and a simple confirmation message to acknowledge receipt of the data. The response body is not typically used by Twilio.
Response
Response
200 - application/json
Successful Response
The response is of type any
.