> ## 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.

# Push Tests

> Send one real push test to one selected device and inspect its trace.

## Endpoints

* `POST /push/test-notifications`
* `GET /push/test-notifications/:id`

An ad hoc test requires a public app ID, one device ID, a title, and a body:

```json theme={null}
{
  "app_id": "push_app_public_id",
  "device_id": "device_installation_id",
  "title": "SendRealm test",
  "body": "Push registration is working"
}
```

To test a saved draft, replace title/body with `campaign_id`. The API clones
the draft into a test-only delivery and still targets only the selected device.

Poll the returned test ID until a notification record appears. Inspect its
provider and client events before treating the integration as successful.
Provider acceptance alone does not prove that the OS displayed a notification.


## OpenAPI

````yaml api-reference/openapi.json POST /push/test-notifications
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/test-notifications:
    post:
      summary: Send a single-device push test
      description: >-
        Queue one real test notification to one explicitly selected registered
        device. Provide campaign_id to test a saved draft, or provide title and
        body.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PushTestNotification'
      responses:
        '202':
          description: Push test queued
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PushTestQueuedResponse'
        '400':
          $ref: '#/components/responses/BadRequest'
        '404':
          $ref: '#/components/responses/NotFound'
        '409':
          $ref: '#/components/responses/Conflict'
components:
  schemas:
    PushTestNotification:
      type: object
      required:
        - app_id
        - device_id
      properties:
        app_id:
          type: string
          description: Public push app ID or app resource ID.
        device_id:
          type: string
          description: One device ID returned by the push device list.
        campaign_id:
          type: string
          format: uuid
          description: Optional saved push campaign draft to test.
        title:
          type: string
          maxLength: 120
        body:
          type: string
          maxLength: 240
        image_url:
          type: string
          format: uri
        launch_url:
          type: string
          maxLength: 2048
        channel_id:
          type: string
          maxLength: 80
    PushTestQueuedResponse:
      type: object
      required:
        - status
        - data
      properties:
        status:
          type: integer
          description: HTTP response status code
        data:
          type: object
          required:
            - id
            - device_id
            - queued
          properties:
            id:
              type: string
              format: uuid
            device_id:
              type: string
            queued:
              type: boolean
    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:
    BadRequest:
      description: Bad request
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    NotFound:
      description: Resource not found
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Conflict:
      description: Resource conflict
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````