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

# Get workspace usage

> Returns current usage counts and plan limits for the authenticated workspace.



## OpenAPI

````yaml /openapi.yaml get /api/v1/workspace/usage
openapi: 3.0.3
info:
  title: Torpedo API
  version: '1.0'
  description: |
    Torpedo is a transactional messaging API built for developers.
    Send emails from your own verified domain, SMS to Mozambican numbers, and
    WhatsApp verification codes with a single HTTP call.
  contact:
    email: hello@torpedo.co.mz
  license:
    name: Torpedo API Terms of Service
    url: https://torpedo.co.mz/terms
  termsOfService: https://torpedo.co.mz/terms
servers:
  - url: https://api.torpedo.co.mz
    description: Production
security:
  - ApiKeyAuth: []
paths:
  /api/v1/workspace/usage:
    get:
      tags:
        - Workspace
      summary: Get workspace usage
      description: >-
        Returns current usage counts and plan limits for the authenticated
        workspace.
      operationId: getWorkspaceUsage
      responses:
        '200':
          description: Usage and limits
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: object
                    properties:
                      plan:
                        type: string
                        example: pro
                      limits:
                        type: object
                        description: Plan limits. `-1` means unlimited.
                        properties:
                          emailsPerMonth:
                            type: integer
                            example: 20000
                          emailsPerDay:
                            type: integer
                            example: 1000
                          domains:
                            type: integer
                            example: 3
                          apiKeys:
                            type: integer
                            example: -1
                          webhooks:
                            type: integer
                            example: 10
                          members:
                            type: integer
                            example: 10
                      usage:
                        type: object
                        properties:
                          emailsThisMonth:
                            type: integer
                            example: 4231
                          emailsToday:
                            type: integer
                            example: 87
                          smsThisMonth:
                            type: integer
                            example: 512
                          smsCreditsBalance:
                            type: integer
                            example: 9488
                          whatsappBalance:
                            type: string
                            description: WhatsApp balance as a decimal string.
                            example: '412.5000'
                          whatsappBalanceCurrency:
                            type: string
                            enum:
                              - MZN
                              - USD
                            nullable: true
                            description: >-
                              Currency of the WhatsApp balance, or null before
                              the first top-up.
                          domains:
                            type: integer
                            example: 2
                          apiKeys:
                            type: integer
                            example: 3
                          webhooks:
                            type: integer
                            example: 1
                          members:
                            type: integer
                            example: 2
        '401':
          $ref: '#/components/responses/Unauthorized'
components:
  responses:
    Unauthorized:
      description: Missing or invalid API key
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  schemas:
    Error:
      type: object
      required:
        - errors
      properties:
        errors:
          type: array
          items:
            type: object
            required:
              - code
              - message
            properties:
              code:
                type: string
                example: VALIDATION_ERROR
              message:
                type: string
                example: Domain not verified
              field:
                type: string
                example: from
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: |
        Prefix `tor_` followed by a base64url-encoded random key.
        Create and manage API keys from the authenticated Torpedo dashboard.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.