Making a Simple Playback Call

For this tutorial, we're going to start off with a simple implementation of voice:
recording playback, or what we call simple playback. We're going to make a call
and when the recipient picks up the phone, they will hear an mp3 file being played
on the other end. Let's try it out on your own number so you can experience it firsthand!

What Do I Need?

To start off, you will need to have an mp3 file stored somewhere online and a URL that links to it. Make sure that the link is public so that the API can use it. Keep in mind that the mp3 URL must only have safe characters, which are alphanumeric and these:
- _ $ . * ' ( ) ! ?

You'll also need a valid caller and recipient phone number using the E.164 number format, which means the numbers must have country code with a + before it.

Let's make that call!

The URL to make a simple playback call is https://api.xoxzo.com/voice/simple/playbacks/. So using CURL, the typical command to make a call would be:

You should get a callid response in return: [{"callid":"YoUr-5ucc355fuL-c4lL-Uu1D"}].

And that's it! There's a lot of uses you can get out of this, like sending a greeting/promotion call to your customers, or even as a reminder for a meeting. The possibility is as unlimited as your imagination.