Upload optional market image or video media
curl --request POST \
--url https://build.vibechain.com/api/retard/v9/media \
--header 'API-KEY: <api-key>' \
--header 'Content-Type: image/*' \
--data '"<string>"'import requests
url = "https://build.vibechain.com/api/retard/v9/media"
payload = "<string>"
headers = {
"API-KEY": "<api-key>",
"Content-Type": "image/*"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'API-KEY': '<api-key>', 'Content-Type': 'image/*'},
body: JSON.stringify('<string>')
};
fetch('https://build.vibechain.com/api/retard/v9/media', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://build.vibechain.com/api/retard/v9/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 => json_encode('<string>'),
CURLOPT_HTTPHEADER => [
"API-KEY: <api-key>",
"Content-Type: image/*"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://build.vibechain.com/api/retard/v9/media"
payload := strings.NewReader("\"<string>\"")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("API-KEY", "<api-key>")
req.Header.Add("Content-Type", "image/*")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://build.vibechain.com/api/retard/v9/media")
.header("API-KEY", "<api-key>")
.header("Content-Type", "image/*")
.body("\"<string>\"")
.asString();require 'uri'
require 'net/http'
url = URI("https://build.vibechain.com/api/retard/v9/media")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["API-KEY"] = '<api-key>'
request["Content-Type"] = 'image/*'
request.body = "\"<string>\""
response = http.request(request)
puts response.read_body{
"mediaUrl": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "API_KEY_REQUIRED_OR_RATE_LIMITED",
"docs": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}Media
Upload optional market image or video media
Accepts one raw image or video body up to 5 MiB.
POST
/
media
Upload optional market image or video media
curl --request POST \
--url https://build.vibechain.com/api/retard/v9/media \
--header 'API-KEY: <api-key>' \
--header 'Content-Type: image/*' \
--data '"<string>"'import requests
url = "https://build.vibechain.com/api/retard/v9/media"
payload = "<string>"
headers = {
"API-KEY": "<api-key>",
"Content-Type": "image/*"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'API-KEY': '<api-key>', 'Content-Type': 'image/*'},
body: JSON.stringify('<string>')
};
fetch('https://build.vibechain.com/api/retard/v9/media', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://build.vibechain.com/api/retard/v9/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 => json_encode('<string>'),
CURLOPT_HTTPHEADER => [
"API-KEY: <api-key>",
"Content-Type: image/*"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://build.vibechain.com/api/retard/v9/media"
payload := strings.NewReader("\"<string>\"")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("API-KEY", "<api-key>")
req.Header.Add("Content-Type", "image/*")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://build.vibechain.com/api/retard/v9/media")
.header("API-KEY", "<api-key>")
.header("Content-Type", "image/*")
.body("\"<string>\"")
.asString();require 'uri'
require 'net/http'
url = URI("https://build.vibechain.com/api/retard/v9/media")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["API-KEY"] = '<api-key>'
request["Content-Type"] = 'image/*'
request.body = "\"<string>\""
response = http.request(request)
puts response.read_body{
"mediaUrl": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "API_KEY_REQUIRED_OR_RATE_LIMITED",
"docs": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}Authorizations
Caller-specific VibeChain API key created through /apikey/create.
Headers
URL-encoded original filename
Maximum string length:
120Body
image/*video/*
The body is of type file.
⌘I