Import/create a new alert recording
HTTP POST
POST /api/2013-12-01/Alerts/[Agency ID]/recordings
You must POST the following to import/create a new alert recording.
Parameter | Description |
---|---|
Name | A unique name for the new alert. Maximum of 255 characters. |
User_ID | The ID of the user who this alert should be logged as having been created by. |
You must POST one the following (but not both) to import/create a new alert recording.
Parameter | Description |
---|---|
File | The raw audio file data, must be a file in the WAV audio format. |
TTS | The speech you’d like to have us convert to audio using TTS technology. |
Example Request
$ curl -XPOST https://[Site Name].readyop.com/api/2013-12-01/Contacts/[Agency ID] \
-d "User_ID=7" \
-d "Name=Test%20Alert" \
-d "File=@path/to/file.wav"
-u "[API Account ID]:[API Token]"
Request Result
{
"code": 0,
"status": 200,
"detail": "Success",
"timestamp": "2018-11-02T21:35:01+00:00",
"recording": {
"Recording ID": 123,
"Name": "Test Alert"
}
}