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

# Get Email Log

> Get email log by ID.

Args:
    log_id: Log ID to retrieve.

Returns:
    Email log details.

Raises:
    HTTPException: 404 if log not found.



## OpenAPI

````yaml get /api/v1/admin/email/logs/{log_id}
openapi: 3.1.0
info:
  title: SnackBase
  description: Open-source Backend-as-a-Service (BaaS)
  version: 0.1.0
servers: []
security: []
paths:
  /api/v1/admin/email/logs/{log_id}:
    get:
      tags:
        - admin
        - email
        - admin
        - email
      summary: Get Email Log
      description: |-
        Get email log by ID.

        Args:
            log_id: Log ID to retrieve.

        Returns:
            Email log details.

        Raises:
            HTTPException: 404 if log not found.
      operationId: get_email_log_api_v1_admin_email_logs__log_id__get
      parameters:
        - name: log_id
          in: path
          required: true
          schema:
            type: string
            title: Log Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EmailLogResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    EmailLogResponse:
      properties:
        id:
          type: string
          title: Id
        account_id:
          type: string
          title: Account Id
        template_type:
          type: string
          title: Template Type
        recipient_email:
          type: string
          title: Recipient Email
        provider:
          type: string
          title: Provider
        status:
          type: string
          title: Status
        error_message:
          anyOf:
            - type: string
            - type: 'null'
          title: Error Message
        variables:
          anyOf:
            - additionalProperties:
                type: string
              type: object
            - type: 'null'
          title: Variables
        sent_at:
          type: string
          format: date-time
          title: Sent At
      type: object
      required:
        - id
        - account_id
        - template_type
        - recipient_email
        - provider
        - status
        - sent_at
      title: EmailLogResponse
      description: |-
        Response schema for email log data.

        Attributes:
            id: Log ID (UUID string).
            account_id: Account ID this log belongs to.
            template_type: Template type used (e.g., 'email_verification').
            recipient_email: Email address of the recipient.
            provider: Email provider used (e.g., 'smtp', 'ses', 'resend').
            status: Delivery status ('sent', 'failed', 'pending').
            error_message: Error message if status is 'failed' (nullable).
            variables: Template variables used for rendering (nullable).
            sent_at: Timestamp when the email was sent or attempted.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````