Create Image Upload URL
POSThttps://api.inboxjot.com/v1/images/presign
Returns a signed URL for one upload. PUT the file to upload_url with the same Content-Type within 5 minutes, then send key to Add Image. Needs a Full key. A key limited to one domain answers 403. Send an optional Idempotency-Key header to retry safely. See Idempotency.
POST/v1/images/presign
{ "upload_url": "https://…r2.cloudflarestorage.com/…", "key": "image-uploads/ws_06d2mfk8r1/0b9e6e5a-3c1f-4c55-9d3a-6f0d2a7c1e44" }
Returns a signed URL for the upload.
Body Parameters
content_typestringrequired
image/png, image/jpeg or image/gif.
sizeintegerrequired
The file size in bytes, up to 5 MB.
Response
upload_urlstring
The signed URL to PUT the file to.
keystring
The key to send to Add Image.