Create paste
POST
/api/paste
Creates a new text paste. Optionally creates a share link in the same request.
Authorizations
Token
Format: token <value>. Types: user (session) or uploader (API token).
Type
API Key (header: Authorization)
Request Body
application/json
JSON "name": "string", "content": "string", "type": "string", "share": true
{
}
Responses
OK
application/json
JSON "id": "string", "name": "string", "type": "string", "ownerId": "string", "content": "string", "shareId": "string", "createdAt": "string", "updatedAt": "string"
{
}
