Create upload token
curl --request POST \
--url https://api.rendermate.com/v1/upload-tokens \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"prefix": "<string>",
"expires_in": null,
"max_size": null,
"project_id": null
}
'import requests
url = "https://api.rendermate.com/v1/upload-tokens"
payload = {
"prefix": "<string>",
"expires_in": None,
"max_size": None,
"project_id": None
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({prefix: '<string>', expires_in: null, max_size: null, project_id: null})
};
fetch('https://api.rendermate.com/v1/upload-tokens', 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://api.rendermate.com/v1/upload-tokens",
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([
'prefix' => '<string>',
'expires_in' => null,
'max_size' => null,
'project_id' => null
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$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://api.rendermate.com/v1/upload-tokens"
payload := strings.NewReader("{\n \"prefix\": \"<string>\",\n \"expires_in\": null,\n \"max_size\": null,\n \"project_id\": null\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.rendermate.com/v1/upload-tokens")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"prefix\": \"<string>\",\n \"expires_in\": null,\n \"max_size\": null,\n \"project_id\": null\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.rendermate.com/v1/upload-tokens")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"prefix\": \"<string>\",\n \"expires_in\": null,\n \"max_size\": null,\n \"project_id\": null\n}"
response = http.request(request)
puts response.read_body{
"expires_at": "2026-12-03T11:15:00Z",
"max_size": 2147483648,
"prefix": "uploads/",
"project_id": "prj_01JF3Q4A8C2E6G0J3K5N7Q9S1V",
"token": "ut_eyJhbGciOiJIUzI1NiJ9.eyJwcmVmaXgiOiJ1cGxvYWRzLyJ9.c2ln…"
}Assets
Create upload token
Make an upload token: a short-lived credential to give a browser, such as a recording page, so it uploads assets with upload_asset’s REST route without ever holding your API key. It only records assets whose names start with its prefix, up to max_size, in one project, and never replaces an existing asset. It lasts 15 minutes unless expires_in says otherwise.
MCP tool: create_upload_token.
POST
/
v1
/
upload-tokens
Create upload token
curl --request POST \
--url https://api.rendermate.com/v1/upload-tokens \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"prefix": "<string>",
"expires_in": null,
"max_size": null,
"project_id": null
}
'import requests
url = "https://api.rendermate.com/v1/upload-tokens"
payload = {
"prefix": "<string>",
"expires_in": None,
"max_size": None,
"project_id": None
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({prefix: '<string>', expires_in: null, max_size: null, project_id: null})
};
fetch('https://api.rendermate.com/v1/upload-tokens', 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://api.rendermate.com/v1/upload-tokens",
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([
'prefix' => '<string>',
'expires_in' => null,
'max_size' => null,
'project_id' => null
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$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://api.rendermate.com/v1/upload-tokens"
payload := strings.NewReader("{\n \"prefix\": \"<string>\",\n \"expires_in\": null,\n \"max_size\": null,\n \"project_id\": null\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.rendermate.com/v1/upload-tokens")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"prefix\": \"<string>\",\n \"expires_in\": null,\n \"max_size\": null,\n \"project_id\": null\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.rendermate.com/v1/upload-tokens")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"prefix\": \"<string>\",\n \"expires_in\": null,\n \"max_size\": null,\n \"project_id\": null\n}"
response = http.request(request)
puts response.read_body{
"expires_at": "2026-12-03T11:15:00Z",
"max_size": 2147483648,
"prefix": "uploads/",
"project_id": "prj_01JF3Q4A8C2E6G0J3K5N7Q9S1V",
"token": "ut_eyJhbGciOiJIUzI1NiJ9.eyJwcmVmaXgiOiJ1cGxvYWRzLyJ9.c2ln…"
}Authorizations
Body
application/json
Response
Created