Create a drop from a zip
Answers 202 as soon as the rows exist; the upload runs in the background. Poll getDeploy with wait= for the outcome. deploy.source is web for a session and api for a bearer token.
Answers 202 as soon as the rows exist; the upload runs in the background. Poll getDeploy with wait= for the outcome. deploy.source is web for a session and api for a bearer token.
AuthorizationBearer <token>A personal access token, odp_ followed by 43 characters. Create one in the dashboard.
type*"site"Required. The drop's type, fixed from now on; the instance's types are in getInstance.
"site"slug?stringOptional. 1 to 53 lowercase letters, digits and hyphens, not starting or ending with a hyphen and without --. Generated when omitted.
retention?stringOptional. 1d to the instance maximum (365d by default), or forever when the instance allows it. Defaults to the instance default.
visibility?stringOptional. public (default), restricted, or private (the owner and admins alone).
"public""restricted""private"name?stringOptional. The drop's name, at most 120 characters. Absent, the page's title names the drop when the version goes live; present and blank, the drop has no name. A description is set with updateDrop once the drop exists.
publish?booleanOptional. false uploads a draft: the deploy finishes as ready and nothing changes for visitors until it is published.
note?stringOptional. One line, at most 200 characters, on what this version changes and which comment or request it answers.
length <= 200The version as a zip archive (its top level is the site root), or, as application/json, a Plan of the files that changed since its base. A plan answers 201 with PlanAccepted, or 200 with {"unchanged": true} when it changes nothing; send the files it needs and call commitPlan.
- body
The files that differ from base.
base?stringThe version this write was built on. Required once the drop has been live.
changes*Every changed path. null removes it; any other path stays as base has it.
name?stringA new drop only: its name; blank for none.
note?stringOne line on what the version changes, at most 200 characters.
publish?booleanGo live when committed, if nothing was published since base. Defaults to true for a new drop, false otherwise.
retention?stringA new drop only.
slug?stringA new drop only: its address, generated when omitted.
type?stringA new drop only: its type.
visibility?stringA new drop only.
A plan was recorded (a JSON body). The query parameters do not apply; the plan carries them.
application/json- response
deploy*stringThe planned deploy.
expiresAt*stringWhen an uncommitted plan is closed: ten minutes after it was made.
date-timeneed*array<string>Paths to send with sendPlanFile or sendPlanFiles before commitPlan.
slug*stringThe drop.
curl -X POST 'https://drop.example.com/api/v1/drops?type=site' \ -H 'Content-Type: application/json' \ -d '{ "changes": { "property1": {}, "property2": {} }}'{ "deploy": "string", "expiresAt": "2019-08-24T14:15:22Z", "need": [ "string" ], "slug": "string"}Generated from dropshelf core at 6a548b2, 26 Nov 2026.
Connect a source POST
Admin only. name, driver, config and secret are required; policy defaults to open and visibility to any; cache times and limits default to the instance's connectors.defaults. secret is the credential, sealed at rest, or ${DROPSHELF_CONNECTOR_NAME} to read it from the server's environment. grants say who may use the source and what each may read; none means admins only.
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.