Validate whether a recipient hash corresponds to a configured incoming recipient. Returns true if the hash is recognized, false otherwise. Use this before submitting a secret creation request.
POST
/api/incoming/validate
curl \
--request POST 'https://uk.onetimesecret.com/api/incoming/validate' \
--header "Content-Type: application/json" \
--data '{"recipient":"string"}'
Request examples
{
"recipient": "string"
}
Response examples (200)
{
"recipient": "string",
"valid": true
}
Response examples (400)
{
"error": "string",
"error_type": "string",
"message": "string",
"field": "string",
"error_id": "string",
"request_id": "string"
}
Response examples (404)
{
"error": "string",
"error_type": "string",
"message": "string",
"field": "string",
"error_id": "string",
"request_id": "string"
}
Response examples (422)
{
"error": "string",
"error_type": "string",
"message": "string",
"field": "string",
"error_id": "string",
"request_id": "string"
}
Response examples (500)
{
"error": "string",
"error_type": "string",
"message": "string",
"field": "string",
"error_id": "string",
"request_id": "string"
}