Action: Recordcall

This action records the entire call and sends out a webhook with a link to the recording when the call ends. This action cannot be used by itself, it triggers at the same time as another action.

Format

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

{
  "recordcall": "https://yourapp.example/elks/recordings",
  "connect": "+46700000000", // Or any other action
  "next": "https://yourapp.example/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.example/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.example/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.

You have 72 hours to fetch any recordings you make.