Skip to Content
dropshelf
REST API

Get a ticket to upload a site with curl

For an agent that has built a site on disk and can run a shell: the ticket lets it send the zip itself with uploadWithTicket, rather than writing every file into a tool call. Ask for one only when the site is ready to upload: it expires ten minutes after it is issued and works for one upload. Everything the upload would refuse that does not depend on the zip is checked now: a new drop's name, retention, visibility and the member's drop limit, or ownership and type for an existing one, to which the ticket is then bound. For an existing drop retention and visibility are not changed, and are listed in notApplied when given.

POST
/api/v1/upload-tickets

For an agent that has built a site on disk and can run a shell: the ticket lets it send the zip itself with uploadWithTicket, rather than writing every file into a tool call. Ask for one only when the site is ready to upload: it expires ten minutes after it is issued and works for one upload. Everything the upload would refuse that does not depend on the zip is checked now: a new drop's name, retention, visibility and the member's drop limit, or ownership and type for an existing one, to which the ticket is then bound. For an existing drop retention and visibility are not changed, and are listed in notApplied when given.

Authorization

headerAuthorizationBearer <token>

A personal access token, odp_ followed by 43 characters. Create one in the dashboard.

Request Body

The drop, and for a new one its retention and visibility.

application/json
  1. body
base?string

For an existing drop with a live version: required, the version the upload is built on.

note?string

One line on what the upload changes; the version carries it.

Lengthlength <= 200
retention?string

For a new drop: whole days as Nd, or forever. Defaults to the instance default.

slug*string

The drop to create, or an existing site of yours to upload a new version of.

type?string

For a new drop: its type; site when omitted.

visibility?string

For a new drop: public (default), restricted, or private.

Value in"public""restricted""private"

Response Body

The ticket and where to send it.

application/json
  1. response
expiresAt*string

Ten minutes after it was issued.

Formatdate-time
header*string

Always X-Dropshelf-Upload.

newDrop*boolean

Whether the upload will create the drop.

notApplied?array<string>
slug*string

The drop the ticket uploads to.

ticket*string

The secret, odu_ followed by 43 characters. Send it in the header named by header; it is shown once.

uploadUrl*string

Where to POST the zip.

Example Request
curl -X POST 'https://drop.example.com/api/v1/upload-tickets' \  -H 'Content-Type: application/json' \  -d '{  "slug": "string"}'
Example Response
{  "expiresAt": "2019-08-24T14:15:22Z",  "header": "string",  "newDrop": true,  "notApplied": [    "string"  ],  "slug": "string",  "ticket": "string",  "uploadUrl": "string"}

Generated from dropshelf core at 6a548b2, 26 Nov 2026.