Media messages
Sending a voice note (using audio file)
Sending media messages, including voice notes, uses multipart form data for request body encoding, instead of JSON. It needs to be that way because it allows binary content, such as media, documents and other files.
Using API
POST https://blububl.com/media/send-voice
Headers
Content-Type*
The value should be "multipart/form-data"
Authorization*
The value should be "Bearer API_KEY", where API_KEY is the API key that you can see in the API Console
Request Body (As multipart form data)
phone_number*
String
Phone number that you want to check. International format, with prefix, like +11234567890
voice*
File
Audio file (MP3, WAV, etc.) to send. The form‐field name must be voice.
sim_card_id
Number
(Optional) Id of the iMessage virtual SIM that you want to use for the check. Can be found in the Devices Console, by clicking on the device having the SIM card you need
{
ok: true,
price: 0,
sim_card_id: 1088
}{
ok: false,
message: "Reason string"
}Code snippets
Sending a picture
Sending media messages, including images, uses multipart form data for request body encoding, instead of JSON. It needs to be that way because it allows binary content, such as media, documents and other files.
Using API
POST https://blububl.com/media/send-image
Headers
Content-Type*
The value should be "multipart/form-data"
Authorization*
The value should be "Bearer API_KEY", where API_KEY is the API key that you can see in the API Console
Request Body (As multipart form data)
phone_number*
String
Phone number that you want to check. International format, with prefix, like +11234567890
image*
File
Image file (JPG, PNG, etc.) to send. The form‐field name must be image.
sim_card_id
Number
(Optional) Id of the iMessage virtual SIM card that you want to use for the check. Can be found in the Devices Console, by clicking on the device having the SIM card you need
Code snippets
Sending a video
Sending media messages, including videos, uses multipart form data for request body encoding, instead of JSON. It needs to be that way because it allows binary content, such as media, documents and other files.
Using API
POST https://blububl.com/media/send-video
Headers
Content-Type*
The value should be "multipart/form-data"
Authorization*
The value should be "Bearer API_KEY", where API_KEY is the API key that you can see in the API Console
Request Body (As multipart form data)
phone_number*
String
Phone number that you want to check. International format, with prefix, like +11234567890
video*
File
Video file (MP4, MKV, etc.) to send. The form‐field name must be video.
sim_card_id
Number
(Optional) Id of the iMessage virtual SIM card that you want to use for the check. Can be found in the Devices Console, by clicking on the device having the SIM card you need
Code snippets
Sending a file
Sending media and file messages uses multipart form data for request body encoding, instead of JSON. It needs to be that way because it allows binary content, such as media, documents and other files.
Using API
POST https://blububl.com/media/send-file
Headers
Content-Type*
The value should be "multipart/form-data"
Authorization*
The value should be "Bearer API_KEY", where API_KEY is the API key that you can see in the API Console
Request Body (As multipart form data)
phone_number*
String
Phone number that you want to check. International format, with prefix, like +11234567890
file*
File
Any file (PDF, PPTX, etc.) to send. The form‐field name must be file.
sim_card_id
Number
(Optional) Id of the iMessage virtual SIM card that you want to use for the check. Can be found in the Devices Console, by clicking on the device having the SIM card you need
Code snippets
Receiving media messages
When you receive a media message, a normal receive SMS webhook is triggered, and the text of the message includes filename, and is formatted like this:
For voice messages: https://blububl.com/uploads/voice/e022e743-8e0e-4ea1-8a29-d6404a85eaef.mp3
Last updated

