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

# Preview Push Campaign Audience

> Count reachable subscribed devices by platform without sending.



## OpenAPI

````yaml api-reference/openapi.json GET /push/campaigns/{id}/audience-preview
openapi: 3.0.1
info:
  title: Sendrealm API
  description: >-
    API for email, push, audience resources, domains, campaign drafts,
    templates, events, topics, and automations
  license:
    name: MIT
  version: 1.0.0
servers:
  - url: https://api.sendrealm.com
security:
  - bearerAuth: []
paths:
  /push/campaigns/{id}/audience-preview:
    get:
      summary: Preview a push campaign audience
      description: Count reachable subscribed devices by platform without sending.
      parameters:
        - $ref: '#/components/parameters/Id'
      responses:
        '200':
          description: Reachable audience returned
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PushCampaignPreviewResponse'
        '404':
          $ref: '#/components/responses/NotFound'
components:
  parameters:
    Id:
      name: id
      in: path
      required: true
      schema:
        type: string
        format: uuid
  schemas:
    PushCampaignPreviewResponse:
      type: object
      required:
        - status
        - data
      properties:
        status:
          type: integer
          description: HTTP response status code
        data:
          type: object
          required:
            - reachable_devices
            - by_platform
            - note
          properties:
            reachable_devices:
              type: integer
            by_platform:
              type: array
              items:
                type: object
                required:
                  - platform
                  - devices
                properties:
                  platform:
                    type: string
                  devices:
                    type: integer
            note:
              type: string
              nullable: true
    Error:
      type: object
      required:
        - status
        - error
      properties:
        status:
          type: integer
        error:
          type: object
          required:
            - code
            - message
          properties:
            code:
              type: string
            message:
              type: string
            details:
              $ref: '#/components/schemas/JsonValue'
            issues:
              type: array
              items:
                $ref: '#/components/schemas/ValidationIssue'
    JsonValue:
      oneOf:
        - type: string
          nullable: true
        - type: number
        - type: boolean
        - type: object
          additionalProperties:
            $ref: '#/components/schemas/JsonValue'
        - type: array
          items:
            $ref: '#/components/schemas/JsonValue'
    ValidationIssue:
      type: object
      required:
        - code
        - path
        - message
      properties:
        code:
          type: string
        path:
          type: string
          nullable: true
        message:
          type: string
  responses:
    NotFound:
      description: Resource not found
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````