Responses
-
Successful response
-
Bad Request - Invalid request parameters or body
-
Unauthorized - Authentication required
-
Forbidden - Insufficient permissions
-
Not Found - Resource does not exist
-
Unprocessable Entity - Validation failed
-
Too Many Requests - Rate limit exceeded
-
Internal Server Error - Something went wrong
POST
/api/v1/secret/{key}
curl \
--request POST 'https://uk.onetimesecret.com/api/v1/secret/{key}' \
--user "username:password" \
--header "Content-Type: application/x-www-form-urlencoded"
Response examples (200)
{
"value": "string",
"secret_key": "string",
"share_domain": "string"
}
Response examples (400)
{
"error": "string",
"message": "string",
"field": "string",
"error_id": "string"
}
Response examples (401)
{
"error": "string",
"message": "string",
"field": "string",
"error_id": "string"
}
Response examples (403)
{
"error": "string",
"message": "string",
"field": "string",
"error_id": "string"
}
Response examples (404)
{
"error": "string",
"message": "string",
"field": "string",
"error_id": "string"
}
Response examples (422)
{
"error": "string",
"message": "string",
"field": "string",
"error_id": "string"
}
Response examples (429)
{
"error": "string",
"message": "string",
"field": "string",
"error_id": "string"
}
Response examples (500)
{
"error": "string",
"message": "string",
"field": "string",
"error_id": "string"
}