Get a signed URL to upload a PDF
curl --request POST \
--url https://sendpaperplane.com/v1/uploadsimport requests
url = "https://sendpaperplane.com/v1/uploads"
response = requests.post(url)
print(response.text)const options = {method: 'POST'};
fetch('https://sendpaperplane.com/v1/uploads', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));const options = {method: 'POST'};
fetch('https://sendpaperplane.com/v1/uploads', 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"
req, _ := http.NewRequest("POST", 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")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.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",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}HttpResponse<String> response = Unirest.post("https://sendpaperplane.com/v1/uploads")
.asString();{
"status": "ok",
"upload_key": "upl_a1b2c3d4e5f6",
"upload_url": "https://storage.paperplane.app/uploads/upl_a1b2c3d4e5f6?signature=...",
"method": "PUT",
"headers": {
"Content-Type": "application/pdf"
},
"expires_in": 900,
"max_bytes": 10485760,
"next": [
"PUT your PDF bytes to upload_url",
"Pass upload_key as upload_key on POST /v1/orders"
]
}{
"status": "failed",
"code": "<string>",
"reason": "<string>",
"next": [
"<string>"
]
}Get a signed URL to upload a PDF
Mint a one-shot signed URL so the PDF goes straight to storage instead of base64 through this API. Returns an opaque upload_key to pass as upload_key on POST /v1/orders. No auth, so a crude per-IP throttle bounds abuse; the bucket enforces 10MB and application/pdf, the order path enforces the velocity caps, and the 30-day sweep collects anything abandoned.
POST
/
v1
/
uploads
Get a signed URL to upload a PDF
curl --request POST \
--url https://sendpaperplane.com/v1/uploadsimport requests
url = "https://sendpaperplane.com/v1/uploads"
response = requests.post(url)
print(response.text)const options = {method: 'POST'};
fetch('https://sendpaperplane.com/v1/uploads', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));const options = {method: 'POST'};
fetch('https://sendpaperplane.com/v1/uploads', 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"
req, _ := http.NewRequest("POST", 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")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.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",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}HttpResponse<String> response = Unirest.post("https://sendpaperplane.com/v1/uploads")
.asString();{
"status": "ok",
"upload_key": "upl_a1b2c3d4e5f6",
"upload_url": "https://storage.paperplane.app/uploads/upl_a1b2c3d4e5f6?signature=...",
"method": "PUT",
"headers": {
"Content-Type": "application/pdf"
},
"expires_in": 900,
"max_bytes": 10485760,
"next": [
"PUT your PDF bytes to upload_url",
"Pass upload_key as upload_key on POST /v1/orders"
]
}{
"status": "failed",
"code": "<string>",
"reason": "<string>",
"next": [
"<string>"
]
}Response
Upload ticket
Allowed value:
"ok"Allowed value:
"PUT"Required range:
-9007199254740991 <= x <= 9007199254740991Required range:
-9007199254740991 <= x <= 9007199254740991Last modified on September 17, 2026
Was this page helpful?