- URL:
/api/secret - Method:
POST
Request body:
{
"id": "string",
"contentType": "Text" | "File",
"metadata": {
"name": "string",
"type": "string",
"size": 0
},
"payload": "encrypted-data-in-base64",
"ttl": "OneHour" | "TwoHours" | "OneDay" | "OneWeek",
"downloadPolicy": "OneTime" | "Unlimited"
}Response:
200 OK- secret stored successfully400 Bad Request- invalid request (e.g., file upload disabled when content type is File)500 Internal Server Error- storage error
- URL:
/api/secret/{id} - Method:
GET
Response body (on success):
{
"id": "string",
"contentType": "Text" | "File",
"metadata": {
"name": "string",
"type": "string",
"size": 0
},
"payload": "encrypted-data-in-base64",
"ttl": "OneHour" | "TwoHours" | "OneDay" | "OneWeek",
"downloadPolicy": "OneTime" | "Unlimited"
}Response codes:
200 OK- secret found and returned400 Bad Request- secret not found by id500 Internal Server Error- storage error
- URL:
/api/secret/{id} - Method:
DELETE
Response codes:
200 OK- secret removed successfully500 Internal Server Error- storage error
- URL:
/api/config - Method:
GET
Response body:
{
"messageMaxLength": 0,
"fileUploadEnabled": true,
"fileMaxSize": 0
}Response codes:
200 OK- config returned
- URL:
/api/version - Method:
GET
Response body: Plain text version string
Response codes:
200 OK- version returned