Upload PDF bytes (keyless dev only)
curl --request PUT \
--url https://sendpaperplane.com/v1/uploads/{key}import requests
url = "https://sendpaperplane.com/v1/uploads/{key}"
response = requests.put(url)
print(response.text)const options = {method: 'PUT'};
fetch('https://sendpaperplane.com/v1/uploads/{key}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));const options = {method: 'PUT'};
fetch('https://sendpaperplane.com/v1/uploads/{key}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://sendpaperplane.com/v1/uploads/{key}"
req, _ := http.NewRequest("PUT", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}require 'uri'
require 'net/http'
url = URI("https://sendpaperplane.com/v1/uploads/{key}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
response = http.request(request)
puts response.read_body<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://sendpaperplane.com/v1/uploads/{key}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}HttpResponse<String> response = Unirest.put("https://sendpaperplane.com/v1/uploads/{key}")
.asString();{
"status": "failed",
"code": "<string>",
"reason": "<string>",
"next": [
"<string>"
]
}{
"status": "failed",
"code": "<string>",
"reason": "<string>",
"next": [
"<string>"
]
}{
"status": "failed",
"code": "<string>",
"reason": "<string>",
"next": [
"<string>"
]
}Upload PDF bytes (keyless dev only)
Keyless-dev upload sink. With storage configured, POST /v1/uploads hands back a real signed URL and the browser never touches this route — which is why it hard-refuses unless storage is the in-memory fallback. It exists so the two-step upload flow is the only client path, dev included.
PUT
/
v1
/
uploads
/
{key}
Upload PDF bytes (keyless dev only)
curl --request PUT \
--url https://sendpaperplane.com/v1/uploads/{key}import requests
url = "https://sendpaperplane.com/v1/uploads/{key}"
response = requests.put(url)
print(response.text)const options = {method: 'PUT'};
fetch('https://sendpaperplane.com/v1/uploads/{key}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));const options = {method: 'PUT'};
fetch('https://sendpaperplane.com/v1/uploads/{key}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://sendpaperplane.com/v1/uploads/{key}"
req, _ := http.NewRequest("PUT", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}require 'uri'
require 'net/http'
url = URI("https://sendpaperplane.com/v1/uploads/{key}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
response = http.request(request)
puts response.read_body<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://sendpaperplane.com/v1/uploads/{key}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}HttpResponse<String> response = Unirest.put("https://sendpaperplane.com/v1/uploads/{key}")
.asString();{
"status": "failed",
"code": "<string>",
"reason": "<string>",
"next": [
"<string>"
]
}{
"status": "failed",
"code": "<string>",
"reason": "<string>",
"next": [
"<string>"
]
}{
"status": "failed",
"code": "<string>",
"reason": "<string>",
"next": [
"<string>"
]
}Path Parameters
Opaque key returned by POST /v1/uploads. Anything else is refused with 400 before storage is ever touched.
Pattern:
^up_[0-9a-f]{32}\.pdf$Response
Bytes stored; pass the key as upload_key on POST /v1/orders.
Last modified on September 17, 2026
Was this page helpful?