This option can be used with any action and records the entire call. When the call has been completed a webhook will be made with a link to the recording.
The recording will be saved and a link will be sent to a URL of your choice.
{
"connect": "+46700000000", // Any voice action of your choice
"recordcall": "https://myserver.se/newrecording",
"next": "https://myserver.se/nextaction" // Optional
}
We'll make a call to the record URL at the end of the
call in the following format:
POST https://myserver.se/newrecording
| 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://myserver.se/nextaction
| 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.