Uploads media for a subsequent MMS send.
curl --request POST \
--url https://api.leadping.ai/sms/media \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data 'ContentType=<string>' \
--data 'ContentDisposition=<string>' \
--data 'Headers={}' \
--data 'Length=<string>' \
--data 'Name=<string>' \
--data 'FileName=<string>'import requests
url = "https://api.leadping.ai/sms/media"
payload = {
"ContentType": "<string>",
"ContentDisposition": "<string>",
"Headers": "{}",
"Length": "<string>",
"Name": "<string>",
"FileName": "<string>"
}
headers = {"Content-Type": "application/x-www-form-urlencoded"}
response = requests.post(url, data=payload, headers=headers)
print(response.text)using RestSharp;
var options = new RestClientOptions("https://api.leadping.ai/sms/media");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddParameter("ContentType", "<string>");
request.AddParameter("ContentDisposition", "<string>");
request.AddParameter("Headers", "{}");
request.AddParameter("Length", "<string>");
request.AddParameter("Name", "<string>");
request.AddParameter("FileName", "<string>");
var response = await client.PostAsync(request);
Console.WriteLine("{0}", response.Content);
HttpResponse<String> response = Unirest.post("https://api.leadping.ai/sms/media")
.header("Content-Type", "application/x-www-form-urlencoded")
.body("ContentType=%3Cstring%3E&ContentDisposition=%3Cstring%3E&Headers=%7B%7D&Length=%3Cstring%3E&Name=%3Cstring%3E&FileName=%3Cstring%3E")
.asString();const options = {
method: 'POST',
headers: {'Content-Type': 'application/x-www-form-urlencoded'},
body: new URLSearchParams({
ContentType: '<string>',
ContentDisposition: '<string>',
Headers: '{}',
Length: '<string>',
Name: '<string>',
FileName: '<string>'
})
};
fetch('https://api.leadping.ai/sms/media', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.leadping.ai/sms/media"
payload := strings.NewReader("ContentType=%3Cstring%3E&ContentDisposition=%3Cstring%3E&Headers=%7B%7D&Length=%3Cstring%3E&Name=%3Cstring%3E&FileName=%3Cstring%3E")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/x-www-form-urlencoded")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.leadping.ai/sms/media",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => "ContentType=%3Cstring%3E&ContentDisposition=%3Cstring%3E&Headers=%7B%7D&Length=%3Cstring%3E&Name=%3Cstring%3E&FileName=%3Cstring%3E",
CURLOPT_HTTPHEADER => [
"Content-Type: application/x-www-form-urlencoded"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}{
"url": "<string>",
"contentType": "<string>",
"size": "<string>",
"sha256": "<string>",
"fileName": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": "<string>",
"detail": "<string>",
"instance": "<string>"
}Sms
Uploads media for a subsequent MMS send.
POST
/
sms
/
media
Uploads media for a subsequent MMS send.
curl --request POST \
--url https://api.leadping.ai/sms/media \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data 'ContentType=<string>' \
--data 'ContentDisposition=<string>' \
--data 'Headers={}' \
--data 'Length=<string>' \
--data 'Name=<string>' \
--data 'FileName=<string>'import requests
url = "https://api.leadping.ai/sms/media"
payload = {
"ContentType": "<string>",
"ContentDisposition": "<string>",
"Headers": "{}",
"Length": "<string>",
"Name": "<string>",
"FileName": "<string>"
}
headers = {"Content-Type": "application/x-www-form-urlencoded"}
response = requests.post(url, data=payload, headers=headers)
print(response.text)using RestSharp;
var options = new RestClientOptions("https://api.leadping.ai/sms/media");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddParameter("ContentType", "<string>");
request.AddParameter("ContentDisposition", "<string>");
request.AddParameter("Headers", "{}");
request.AddParameter("Length", "<string>");
request.AddParameter("Name", "<string>");
request.AddParameter("FileName", "<string>");
var response = await client.PostAsync(request);
Console.WriteLine("{0}", response.Content);
HttpResponse<String> response = Unirest.post("https://api.leadping.ai/sms/media")
.header("Content-Type", "application/x-www-form-urlencoded")
.body("ContentType=%3Cstring%3E&ContentDisposition=%3Cstring%3E&Headers=%7B%7D&Length=%3Cstring%3E&Name=%3Cstring%3E&FileName=%3Cstring%3E")
.asString();const options = {
method: 'POST',
headers: {'Content-Type': 'application/x-www-form-urlencoded'},
body: new URLSearchParams({
ContentType: '<string>',
ContentDisposition: '<string>',
Headers: '{}',
Length: '<string>',
Name: '<string>',
FileName: '<string>'
})
};
fetch('https://api.leadping.ai/sms/media', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.leadping.ai/sms/media"
payload := strings.NewReader("ContentType=%3Cstring%3E&ContentDisposition=%3Cstring%3E&Headers=%7B%7D&Length=%3Cstring%3E&Name=%3Cstring%3E&FileName=%3Cstring%3E")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/x-www-form-urlencoded")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.leadping.ai/sms/media",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => "ContentType=%3Cstring%3E&ContentDisposition=%3Cstring%3E&Headers=%7B%7D&Length=%3Cstring%3E&Name=%3Cstring%3E&FileName=%3Cstring%3E",
CURLOPT_HTTPHEADER => [
"Content-Type: application/x-www-form-urlencoded"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}{
"url": "<string>",
"contentType": "<string>",
"size": "<string>",
"sha256": "<string>",
"fileName": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": "<string>",
"detail": "<string>",
"instance": "<string>"
}Body
application/x-www-form-urlencoded
Response
OK
Media attached to an SMS/MMS conversation event.
URL from which the media attachment can be retrieved.
MIME content type of the media attachment.
Size of the media attachment in bytes.
Pattern:
^-?(?:0|[1-9]\d*)$SHA-256 digest of the media content, when available.
Original file name of the media attachment, when available.
⌘I

