Action: Recordcall

This action records the entire call and sends out a webhook with a link to the recording when the call ends.

Format

The recording will be saved and a link will be sent to a URL of your choice.

{
  "recordcall": "https://yourapp.io/elks/recordings",
  "next": "https://yourapp.io/elks/calls" // Optional
}

Result

We'll make a call to the record URL at the end of the call in the following format:

POST https://yourapp.io/elks/recordings
Parameter Type Description
callid string The unique id of the call in our systems.
created string The date and time the recording was completed.
duration integer The length of the recording, in seconds.
wav string A URL that you can fetch the WAV audio file from.
from string The phone number that initiated the call.
to string The phone number of the recipient of the call.

The call will end after the action is completed if the next parameter is omitted. If the next parameter is set we'll make a request to the URL as defined below. You can respond with any valid call action.

POST https://yourapp.io/elks/calls
Parameter Type Description
callid string The unique id of the call in our systems.
result string Either ”success” or ”failed” depending on if the action was successful.