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

# Get project email usage



## OpenAPI

````yaml https://api.specular.dev/openapi.json get /projects/{id}/email/usage
openapi: 3.0.0
info:
  title: Specular API
  description: Backend-as-a-Service API for managing projects and branches
  version: 1.0.0
servers:
  - url: https://api.specular.dev
    description: Production server
  - url: http://localhost:3000
    description: Development server
security:
  - bearerAuth: []
paths:
  /projects/{id}/email/usage:
    get:
      tags:
        - Email
      summary: Get project email usage
      parameters:
        - schema:
            type: integer
            minimum: 1
            maximum: 100
            default: 20
          in: query
          name: limit
          required: false
          description: Maximum number of records to return (1-100)
        - schema:
            type: integer
            minimum: 0
            default: 0
          in: query
          name: offset
          required: false
          description: Number of records to skip
        - schema:
            type: string
          in: path
          name: id
          required: true
          description: Project ID
      responses:
        '200':
          description: Email usage records
          content:
            application/json:
              schema:
                description: Email usage records
                type: object
                properties:
                  usage:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                        projectId:
                          type: string
                        branchId:
                          type: string
                          nullable: true
                        fromAddress:
                          type: string
                        recipientCount:
                          type: integer
                        requestedAt:
                          type: string
                          format: date-time
                  total:
                    type: integer
                    description: Total number of records
                  limit:
                    type: integer
                  offset:
                    type: integer
        '401':
          description: Authentication required
          content:
            application/json:
              schema:
                description: Authentication required
                type: object
                properties:
                  error:
                    type: string
        '404':
          description: Project not found
          content:
            application/json:
              schema:
                description: Project not found
                type: object
                properties:
                  error:
                    type: string
                  message:
                    type: string
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API Key
      description: 'Bearer authentication with API key (format: Bearer sk_xxx)'

````