Skip to main content

Release from Quarantine

POST/api/v1/mail/messages/{message_id}/release

Overview

Release a quarantined message after human review. This makes the message visible to AI agents in the normal inbox.

Use this endpoint when you've reviewed a quarantined message and determined it's safe despite triggering security detection. The message's is_quarantined flag is set to false and a released security event is logged.

Path Parameters

message_idintegerrequired

The ID of the quarantined message to release

Request

curl -X POST "https://spideriq.ai/api/v1/mail/messages/5678/release" \
-H "Authorization: Bearer <client_id>:<api_key>:<api_secret>"

Response

{
"success": true,
"message_id": 5678,
"released": true,
"released_at": "2026-02-24T12:00:00"
}

Error Responses

Message Not Found (404)

{
"success": false,
"error": "Message not found"
}

Message Not Quarantined (400)

{
"success": false,
"error": "Message is not quarantined"
}

Security Considerations

  • Releasing a message logs a released event for audit purposes
  • The original security_flags remain on the message for reference
  • Consider the risk before releasing messages flagged with hidden_injection
  • Released messages become visible in the normal inbox immediately