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

# Send a test email

> Sends the campaign's email now to a member of your workspace, as the app's Preview does, with merge tags filled in from a contact you name (or the member).



## OpenAPI

````yaml /api/statisfy-api.openapi.json post /v1/campaigns/{campaign_id}/test-email
openapi: 3.1.0
info:
  description: >-
    The agent-first Statisfy API. Authenticate with an API key (`Authorization:
    Bearer stfy_live_…`), then call `GET /v1/meta/capabilities` to discover
    every operation and its schemas.
  title: Statisfy API
  version: 1.0.0
servers:
  - url: https://api.statisfy.com
    description: Production
security: []
paths:
  /v1/campaigns/{campaign_id}/test-email:
    post:
      tags:
        - campaigns
      summary: Send a test email
      description: >-
        Sends the campaign's email now to a member of your workspace, as the
        app's Preview does, with merge tags filled in from a contact you name
        (or the member).
      operationId: campaigns_test_email
      parameters:
        - description: The campaign's id, from GET /v1/campaigns
          in: path
          name: campaign_id
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              additionalProperties: false
              properties:
                account_id:
                  anyOf:
                    - maxLength: 255
                      type: string
                    - type: 'null'
                  default: null
                  description: The account to fill account tags from
                  title: Account Id
                contact_email:
                  anyOf:
                    - maxLength: 320
                      minLength: 3
                      pattern: ^[^@\s,]+@[^@\s,]+$
                      type: string
                    - type: 'null'
                  default: null
                  description: >-
                    A contact to fill in the merge tags as; left out, the
                    recipient
                  title: Contact Email
                to:
                  description: 'Where it''s sent: a member of your workspace'
                  maxLength: 320
                  minLength: 3
                  pattern: ^[^@\s,]+@[^@\s,]+$
                  title: To
                  type: string
              required:
                - to
              type: object
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TestEmailSent'
          description: Successful Response
      security:
        - HTTPBearer: []
components:
  schemas:
    TestEmailSent:
      properties:
        id:
          title: Id
          type: string
        sent:
          default: true
          title: Sent
          type: boolean
        to:
          title: To
          type: string
      required:
        - id
        - to
      title: TestEmailSent
      type: object
  securitySchemes:
    HTTPBearer:
      scheme: bearer
      type: http
      description: >-
        An API key, sent as `Authorization: Bearer stfy_live_…`. See
        [Authentication](/rest-api/authentication) for how to get one and which
        scopes it needs.

````

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