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

Name
Type
Description

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)

Name
Type
Description

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

custom_id

String

(Optional) Custom id that you want us to send to you in our failed message webhook

{
    ok: true,
    price: 0,
    sim_card_id: 1088
}

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

Name
Type
Description

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)

Name
Type
Description

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

custom_id

String

(Optional) Custom id that you want us to send to you in our failed message webhook

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

Name
Type
Description

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)

Name
Type
Description

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

custom_id

String

(Optional) Custom id that you want us to send to you in our failed message webhook

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

Name
Type
Description

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)

Name
Type
Description

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

custom_id

String

(Optional) Custom id that you want us to send to you in our failed message webhook

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:

Last updated