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.
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.
AuthorizationBearer <token>A personal access token, odp_ followed by 43 characters. Create one in the dashboard.
The drop, and for a new one its retention and visibility.
application/json- body
base?stringFor an existing drop with a live version: required, the version the upload is built on.
note?stringOne line on what the upload changes; the version carries it.
length <= 200retention?stringFor a new drop: whole days as Nd, or forever. Defaults to the instance default.
slug*stringThe drop to create, or an existing site of yours to upload a new version of.
type?stringFor a new drop: its type; site when omitted.
visibility?stringFor a new drop: public (default), restricted, or private.
"public""restricted""private"The ticket and where to send it.
application/json- response
expiresAt*stringTen minutes after it was issued.
date-timeheader*stringAlways X-Dropshelf-Upload.
newDrop*booleanWhether the upload will create the drop.
notApplied?array<string>slug*stringThe drop the ticket uploads to.
ticket*stringThe secret, odu_ followed by 43 characters. Send it in the header named by header; it is shown once.
uploadUrl*stringWhere to POST the zip.
curl -X POST 'https://drop.example.com/api/v1/upload-tickets' \ -H 'Content-Type: application/json' \ -d '{ "slug": "string"}'{ "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.
Create a personal access token POST
Returns the plaintext once. expiresIn defaults to the instance's tokens.defaultTTL and is silently capped at tokens.maxTTL; read expiresAt in the response. Requires a session: a bearer token cannot mint tokens.
Remove my picture DELETE
Idempotent: removing a picture that is not there is still a 204. avatarUrl becomes null and picture, when the identity provider sent one, stands in again.