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

# Preview what a lead would receive next

> Returns JSON (not HTML). Renders the lead's next email (personalization, then spintax) for its current sequence step. A/B variants and spintax are chosen randomly, so repeat calls can differ. Read only. 404 if the campaign or lead is not in the workspace.

**Minimum role:** `view` (`x-min-role`). **Destructive:** `false` (`x-destructive`).



## OpenAPI

````yaml /openapi.json get /campaigns/{campaign_id}/leads/{contact_id}/preview
openapi: 3.0.3
info:
  title: Sales Sequencer API
  version: '1'
  description: >-
    Every Sales Sequencer action over HTTP. Each call runs as the API key's
    creator, with that user's role, in the key's workspace. Auth: X-API-Key
    header.
servers:
  - url: https://api.salessequencer.com/api/v1
security:
  - key: []
paths:
  /campaigns/{campaign_id}/leads/{contact_id}/preview:
    get:
      tags:
        - Leads
      summary: Preview what a lead would receive next
      description: >-
        Returns JSON (not HTML). Renders the lead's next email (personalization,
        then spintax) for its current sequence step. A/B variants and spintax
        are chosen randomly, so repeat calls can differ. Read only. 404 if the
        campaign or lead is not in the workspace.


        **Minimum role:** `view` (`x-min-role`). **Destructive:** `false`
        (`x-destructive`).
      operationId: campaigns_preview_lead
      parameters:
        - in: path
          name: campaign_id
          required: true
          schema:
            type: integer
        - in: path
          name: contact_id
          required: true
          schema:
            type: integer
      responses:
        '200':
          description: >-
            JSON {contact:{email, status, data}, subject, body, step,
            total_steps, mailboxes:[{id, email}]} where mailboxes are the ones
            available to send a test from.
components:
  securitySchemes:
    key:
      in: header
      name: X-API-Key
      type: apiKey

````

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