Matches in other apps
zpe-paste API
mount /paste · base https://zpe.vc/paste · v1.0.0 · 6 operations · 3 write · 4 need no account · beta
archived: committed 2026-10-25, from 810709d5. Contract: https://zpe.vc/paste/_/api/v1/openapi.json
GET
/_/api/v1/me
GET /_/api/v1/me
getMe
no account
GET /_/api/v1/me
Parameters
No parameters.
Request body
None: this operation takes its arguments in the path and the query.
Responses
| status | meaning | body |
|---|---|---|
200 | Who is asking, as the door sees them. A stranger is a 200 with `signedIn: false` and a sign-in URL, not a 401: the question has an answer whoever asks it. | object |
400 | The request could not be read | object |
401 | The credential is missing or does not open this account | object |
403 | This account may not do that | object |
404 | Nothing is here | object |
429 | Too many requests | object |
Example
GET /_/api/v1/me.
curl -X GET 'https://zpe.vc/paste/_/api/v1/me'
{
"signedIn": false,
"accountId": null,
"rung": 0,
"email": null,
"tenant": null,
"signin": null
}The example is generated from the schema in the contract: the shape is the document's, the values are placeholders.
POST
/_/api/v1/paste
POST /_/api/v1/paste
postPaste
POST /_/api/v1/paste
Parameters
No parameters.
Request body
None: this operation takes its arguments in the path and the query.
Responses
| status | meaning | body |
|---|---|---|
201 | The paste was written. The id is the capability the link carries; the deletion token is answered once and never again. | object |
400 | The request could not be read | object |
401 | The credential is missing or does not open this account | object |
403 | This account may not do that | object |
404 | Nothing is here | object |
413 | The body is larger than this deployment accepts (`MAX_BODY_BYTES`, 4 MiB by default). | object |
415 | The body is not `application/json`, and this path reads nothing else. | object |
429 | Too many requests | object |
Example
POST /_/api/v1/paste, with a token from the door.
curl -X POST 'https://zpe.vc/paste/_/api/v1/paste' \ -H 'Authorization: Bearer $ZPE_TOKEN'
{
"id": "string",
"deletetoken": "string"
}The example is generated from the schema in the contract: the shape is the document's, the values are placeholders.
GET
/_/api/v1/pastes
GET /_/api/v1/pastes
getPastes
GET /_/api/v1/pastes
Parameters
No parameters.
Request body
None: this operation takes its arguments in the path and the query.
Responses
| status | meaning | body |
|---|---|---|
200 | The pastes filed under the caller's account, newest first, each with the state it is in. | object |
400 | The request could not be read | object |
401 | The credential is missing or does not open this account | object |
403 | This account may not do that | object |
404 | Nothing is here | object |
429 | Too many requests | object |
Example
GET /_/api/v1/pastes, with a token from the door.
curl -X GET 'https://zpe.vc/paste/_/api/v1/pastes' \ -H 'Authorization: Bearer $ZPE_TOKEN'
{
"pastes": [
{
"id": "string",
"burn": false,
"created": 0,
"expires": null,
"consumedAt": null,
"state": "live"
}
]
}The example is generated from the schema in the contract: the shape is the document's, the values are placeholders.
GET
/_/api/v1/paste/{id}
GET /_/api/v1/paste/:id
getPasteById
no account
GET /_/api/v1/paste/:id
Parameters
No parameters.
Request body
None: this operation takes its arguments in the path and the query.
Responses
| status | meaning | body |
|---|---|---|
200 | The paste in the format its client wrote — or only its head when it is one-time, because an ambient GET (a prefetch, a link scanner) must not spend a paste it merely learned the id of. | object |
400 | The request could not be read | object |
401 | The credential is missing or does not open this account | object |
403 | This account may not do that | object |
404 | Nothing is here | object |
410 | A one-time paste whose id has already been read, or that has expired: the id is the capability, and it is spent. Nothing else will ever answer at this address. | object |
429 | Too many requests | object |
Example
GET /_/api/v1/paste/:id.
curl -X GET 'https://zpe.vc/paste/_/api/v1/paste/{id}'{
"v": 0,
"ct": "string",
"wk": "string",
"adata": {},
"meta": {
"expire": "string",
"created": 0
}
}The example is generated from the schema in the contract: the shape is the document's, the values are placeholders.
DELETE
/_/api/v1/paste/{id}
DELETE /_/api/v1/paste/:id
deletePasteById
no account
DELETE /_/api/v1/paste/:id
Parameters
No parameters.
Request body
None: this operation takes its arguments in the path and the query.
Responses
| status | meaning | body |
|---|---|---|
200 | The row is gone. The deletion token or the owner's session allowed it, and the answer names what it removed. | object |
400 | The request could not be read | object |
401 | The credential is missing or does not open this account | object |
403 | This account may not do that | object |
404 | Nothing is here | object |
429 | Too many requests | object |
Example
DELETE /_/api/v1/paste/:id.
curl -X DELETE 'https://zpe.vc/paste/_/api/v1/paste/{id}'{
"status": "deleted",
"id": "string"
}The example is generated from the schema in the contract: the shape is the document's, the values are placeholders.
POST
/_/api/v1/paste/{id}/consume
POST /_/api/v1/paste/:id/consume
postPasteByIdConsume
no account
POST /_/api/v1/paste/:id/consume
Parameters
No parameters.
Request body
None: this operation takes its arguments in the path and the query.
Responses
| status | meaning | body |
|---|---|---|
200 | The ciphertext, to the one caller whose statement won the row. `X-Burn-Intent: consume` is required, so a cross-site page cannot burn a paste by linking to it. | object |
400 | The request could not be read | object |
401 | The credential is missing or does not open this account | object |
403 | This account may not do that | object |
404 | Nothing is here | object |
410 | Someone else consumed it first, or it has expired. The row is gone and no second read exists. | object |
429 | Too many requests | object |
Example
POST /_/api/v1/paste/:id/consume.
curl -X POST 'https://zpe.vc/paste/_/api/v1/paste/{id}/consume'{
"v": 0,
"ct": "string",
"wk": "string",
"adata": {},
"meta": {
"expire": "string",
"created": 0
}
}The example is generated from the schema in the contract: the shape is the document's, the values are placeholders.