---
openapi: 3.0.3
info:
  title: Braze REST API – List upcoming scheduled campaigns and Canvases
  description: |
    ## Prerequisites

    To use this endpoint, you'll need an [API key]({{site.baseurl}}/api/basics#rest-api-key-permissions) with the `messages.schedule_broadcasts` permission.

    ## Rate limit

    We apply the default Braze rate limit of 250,000 requests per hour to this endpoint, as documented in [API rate limits]({{site.baseurl}}/api/api_limits/).
  version: 1.0.0
  contact:
    name: Braze Support
    url: https://www.braze.com/docs/braze_support/
  license:
    name: Braze Documentation
    url: https://www.braze.com/docs/api/home/
servers:
  - url: https://rest.iad-01.braze.com
    description: US-01
  - url: https://rest.iad-02.braze.com
    description: US-02
  - url: https://rest.iad-03.braze.com
    description: US-03
  - url: https://rest.iad-04.braze.com
    description: US-04
  - url: https://rest.iad-05.braze.com
    description: US-05
  - url: https://rest.iad-06.braze.com
    description: US-06
  - url: https://rest.iad-07.braze.com
    description: US-07
  - url: https://rest.iad-08.braze.com
    description: US-08
  - url: https://rest.us-10.braze.com
    description: US-10
  - url: https://rest.fra-01.braze.eu
    description: EU-01
  - url: https://rest.fra-02.braze.eu
    description: EU-02
  - url: https://rest.au-01.braze.com
    description: AU-01
  - url: https://rest.id-01.braze.com
    description: ID-01
  - url: https://rest.jp-01.braze.com
    description: JP-01
  - url: https://rest.kr-01.braze.com
    description: KR-01
security:
- BearerAuth: []
paths:
  "/messages/scheduled_broadcasts":
    get:
      summary: List upcoming scheduled campaigns and Canvases
      operationId: get_messages_scheduled_broadcasts_get_messages_scheduled
      parameters:
        - name: end_time
          in: query
          required: true
          description: |
            End date of the range to retrieve upcoming scheduled campaigns and Canvases. This is treated as midnight in UTC time by the API.

            String in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format.
          schema:
            type: string
            format: date-time
          example: '2018-09-01T00:00:00-04:00'
      responses:
        "200":
          description: The request succeeded and the response body lists the scheduled broadcast messages. No action needed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MessagesScheduledResponse'
              examples:
                success:
                  summary: Scheduled campaigns and Canvases
                  value:
                    scheduled_broadcasts:
                      - name: Example campaign
                        id: campaign_identifier
                        type: Campaign
                        tags:
                          - example_tag_1
                          - example_tag_2
                        next_send_time: '2030-01-01T09:00:00'
                        schedule_type: America/New_York
                      - name: Example Canvas
                        id: canvas_identifier
                        type: Canvas
                        tags: []
                        next_send_time: '2030-01-02T09:00:00'
                        schedule_type: local_time_zones
                    message: success
        "400":
          description: Bad request. The `end_time` is missing or malformed. Pass `end_time` as an ISO 8601 datetime.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                invalid_end_time:
                  summary: The end_time is missing or malformed
                  value:
                    message: end_time must be an ISO 8601 time
        "401":
          description: |
            Unauthorized. The REST API key is missing, malformed, or sent to the wrong REST endpoint. Send the key as `Authorization: Bearer YOUR_REST_API_KEY` to the correct [REST endpoint]({{site.baseurl}}/api/basics/#endpoints). For more causes, see [Errors and responses]({{site.baseurl}}/api/errors/#fatal-errors).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                invalid_api_key:
                  summary: Invalid API key
                  value:
                    message: 'Invalid API key: YOUR_REST_API_KEY'
        "403":
          description: Access denied. The REST API key doesn't have the required permission. Use a REST API key that has the `messages.schedule_broadcasts` permission.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                access_denied:
                  summary: Missing permission
                  value:
                    message: Access Denied
        "429":
          description: |
            Rate limited. You exceeded the rate limit for this endpoint. Slow your request rate and retry with exponential backoff. See [API rate limits]({{site.baseurl}}/api/api_limits/).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                over_rate_limit:
                  summary: Over rate limit
                  value:
                    message: You have exceeded your limit of 250000 requests per hour. Please contact your account executive to increase your limit. If you do not have their info, you may contact Braze directly at https://www.braze.com/contact/.
        5XX:
          description: |
            Internal server error. An unexpected error occurred on the Braze server. Retry with exponential backoff. If the error persists, contact [Support]({{site.baseurl}}/braze_support/).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: REST API key
      description: |
        REST API keys are created in the Braze dashboard at **Settings → APIs and
        Identifiers → API Keys**. The key must include the `messages.schedule_broadcasts` permission.
        Pass the key as `Authorization: Bearer YOUR_REST_API_KEY`.
  schemas:
    ScheduledBroadcast:
      title: Scheduled broadcast
      type: object
      properties:
        name:
          type: string
          description: The name of the scheduled broadcast, which is the name of the campaign or Canvas.
          example: Example campaign
        id:
          type: string
          description: The Canvas or campaign identifier.
          example: campaign_identifier
        type:
          type: string
          enum: [Campaign, Canvas]
          description: The broadcast type either Canvas or Campaign, indicating whether the scheduled broadcast is a campaign or a Canvas.
          example: Campaign
        tags:
          type: array
          items:
            type: string
          description: The tag names associated with the campaign or Canvas, as an array of tag names formatted as strings.
          example:
            - example_tag_1
            - example_tag_2
        next_send_time:
          type: string
          description: The next send time formatted in ISO 8601, may also include time zone if not local/intelligent delivery.
          example: '2030-01-01T09:00:00'
        schedule_type:
          type: string
          description: The schedule type, either `local_time_zones`, `intelligent_delivery` or the name of your company's time zone.
          example: America/New_York
    MessagesScheduledResponse:
      title: List upcoming scheduled campaigns and Canvases response
      type: object
      properties:
        scheduled_broadcasts:
          type: array
          description: The campaigns and Canvases scheduled to send before the requested end time.
          items:
            $ref: '#/components/schemas/ScheduledBroadcast'
        message:
          type: string
          description: Returns `success` when the request completes without errors.
          example: success
    ErrorResponse:
      title: Error
      type: object
      properties:
        message:
          type: string
          description: The error message describing why the request failed.
        errors:
          type: array
          description: Non-fatal errors encountered while processing the request. Data unaffected by these errors is still processed.
          items:
            type: object
            properties:
              type:
                type: string
                description: The error type.
