> ## Documentation Index
> Fetch the complete documentation index at: https://jetemail.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Release email from quarantine

> Releases a quarantined email for delivery using its UID.



## OpenAPI

````yaml /openapi.json post /inbound/quarantine-release
openapi: 3.0.0
info:
  title: JetEmail API
  version: 1.0.0
  description: API documentation for JetEmail's transactional email service.
servers:
  - url: https://api.jetemail.com
    description: Production
security:
  - apiKeyAuth: []
externalDocs:
  description: Download OpenAPI Specification
  url: /openapi.json
paths:
  /inbound/quarantine-release:
    post:
      tags:
        - Inbound
      summary: Release email from quarantine
      description: Releases a quarantined email for delivery using its UID.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - uid
              properties:
                uid:
                  type: string
                  pattern: ^[A-Za-z0-9-_.]{1,100}$
                  description: Unique identifier of the quarantined message
                  example: DE398F73-6CBC-4333-B394-6DAA6792525B.1
      responses:
        '200':
          description: Successfully retrieved and processed quarantined email
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: true
                  message:
                    type: string
                    example: >-
                      EML file successfully released from quarantine and sent to
                      mail server
                  data:
                    type: object
                    properties:
                      uid:
                        type: string
                        description: Original UID of the message
                        example: DE398F73-6CBC-4333-B394-6DAA6792525B.1
                      domain_uuid:
                        type: string
                        format: uuid
                        description: UUID of the domain the message belonged to
                        example: 12345678-1234-4321-abcd-123456789012
                      domain_name:
                        type: string
                        description: Name of the domain the message belonged to
                        example: example.com
        '400':
          description: Bad request - Invalid UID format or missing UID
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: false
                  error:
                    type: string
                    example: Invalid UID format
        '401':
          description: Unauthorized - User not authenticated
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: false
                  error:
                    type: string
                    example: User authentication, log location, or db_uuid not found
        '404':
          description: UID not found in logs or EML file not found in quarantine
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: false
                  error:
                    type: string
                    example: UID not found in any authorized domain logs
        '500':
          description: >-
            Internal server error - Could be quarantine bucket access failure or
            mail server processing failure
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: false
                  error:
                    type: string
                    example: Failed to send EML to mail server (502)
                  details:
                    type: string
                    description: Additional error details when available
                    example: 'Bad Gateway: Upstream server error'
components:
  securitySchemes:
    apiKeyAuth:
      type: http
      scheme: bearer
      description: API key for account management endpoints. Use your api_ prefixed token.

````