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

# Count the appointment reminders of a selection

> The number of list rows a bulk action with the same body would act on, for a confirmation such as "1,238
     * reminders will be approved". With `ids` it counts the ticked reminders the caller may see.



## OpenAPI

````yaml /api-referansi/openapi.json post /v1/appointment-reminders/bulk/count
openapi: 3.1.0
info:
  title: Flextell API
  version: 0.0.1
  description: >-
    Flextell REST API referansı. Kimlik doğrulama, scope ve istek kuralları için
    API sekmesindeki rehberlere bakın.
servers:
  - url: https://app.flextell.ai/api
    description: Üretim
security:
  - oauth2: []
  - bearer: []
paths:
  /v1/appointment-reminders/bulk/count:
    post:
      tags:
        - AppointmentReminder
      summary: Count the appointment reminders of a selection
      description: >-
        The number of list rows a bulk action with the same body would act on,
        for a confirmation such as "1,238
             * reminders will be approved". With `ids` it counts the ticked reminders the caller may see.
      operationId: appointmentReminder.bulkCount
      parameters:
        - name: X-Tenant
          in: header
          required: true
          description: >-
            Tenant identifier. Send the Tenant ID in the `X-Tenant` header to
            scope API requests to a specific tenant.
          schema:
            type: number
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AppointmentReminderBulkCountRequest'
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  data:
                    type: object
                    properties:
                      count:
                        type: integer
                    required:
                      - count
                required:
                  - success
                  - data
        '401':
          $ref: '#/components/responses/AuthenticationException'
        '403':
          $ref: '#/components/responses/AuthorizationException'
        '422':
          $ref: '#/components/responses/ValidationException'
        '428':
          description: >-
            Mandatory setup is incomplete. Finish the setup wizard first;
            `data.next_step` names the step to continue with.
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    examples:
                      - false
                  error_code:
                    type: string
                    enum:
                      - SETUP_REQUIRED
                    examples:
                      - SETUP_REQUIRED
                  message:
                    type: string
                    examples:
                      - Complete the required setup steps to continue.
                  data:
                    type: object
                    properties:
                      next_step:
                        type:
                          - string
                          - 'null'
                        examples:
                          - clinic_info
                    required:
                      - next_step
                required:
                  - success
                  - error_code
                  - message
                  - data
components:
  schemas:
    AppointmentReminderBulkCountRequest:
      type: object
      properties:
        ids:
          type: array
          description: >-
            The identifiers of the selected records. Send either these or
            `select_all`.
          items:
            type: integer
            description: A reminder identifier; a repeated one is handled once.
            minimum: 1
          minItems: 1
          maxItems: 100
        select_all:
          type: boolean
          description: >-
            Select every record the list shows with the filters in `filters`.
            The action then runs in the background and the response only carries
            the number of records.
        filters:
          type:
            - object
            - 'null'
          description: >-
            With `select_all`, the filters the list shows, as an object: the
            query parameters of `GET /api/v1/appointment-reminders` with the
            same names and values, array parameters without the `[]`. Paging and
            sorting parameters are ignored.
          properties:
            search:
              type:
                - string
                - 'null'
              description: The search query.
              maxLength: 255
            type:
              type: array
              description: A reminder type to include.
              enum:
                - appointment
                - cancellation_follow_up
                - session_confirmation
                - reschedule_confirmation
              items:
                type: string
                enum:
                  - appointment
                  - cancellation_follow_up
                  - session_confirmation
                  - reschedule_confirmation
            approval_status:
              type: array
              description: An approval status to include.
              enum:
                - pending
                - approved
                - rejected
                - cancelled
              items:
                type: string
                enum:
                  - pending
                  - approved
                  - rejected
                  - cancelled
            channel:
              type: array
              description: A channel to include.
              items:
                type: string
                maxLength: 255
            appointment_date_from:
              type:
                - string
                - 'null'
              format: date-time
              description: >-
                Filter reminders whose appointment is scheduled from this date
                (tenant timezone).
            appointment_date_to:
              type:
                - string
                - 'null'
              format: date-time
              description: >-
                Filter reminders whose appointment is scheduled up to this date
                (tenant timezone); a date-only value includes the whole day.
            scheduled_for_from:
              type:
                - string
                - 'null'
              format: date-time
              description: >-
                Filter reminders planned to be sent from this date (tenant
                timezone).
            scheduled_for_to:
              type:
                - string
                - 'null'
              format: date-time
              description: >-
                Filter reminders planned to be sent up to this date (tenant
                timezone); a date-only value includes the whole day.
            status:
              type: array
              description: A send status to include.
              enum:
                - queued
                - sent
                - error
                - expired
              items:
                type: string
                enum:
                  - queued
                  - sent
                  - error
                  - expired
        except_ids:
          type:
            - array
            - 'null'
          description: >-
            With `select_all`, the identifiers of the records to leave out, at
            most 1000.
          items:
            type: integer
            description: A record identifier to leave out.
            minimum: 1
          maxItems: 1000
      title: AppointmentReminderBulkCountRequest
  responses:
    AuthenticationException:
      description: Unauthenticated
      content:
        application/json:
          schema:
            type: object
            properties:
              message:
                type: string
                description: Error overview.
            required:
              - message
    AuthorizationException:
      description: Authorization error
      content:
        application/json:
          schema:
            type: object
            properties:
              message:
                type: string
                description: Error overview.
            required:
              - message
    ValidationException:
      description: Validation error
      content:
        application/json:
          schema:
            type: object
            properties:
              message:
                type: string
                description: Errors overview.
              errors:
                type: object
                description: A detailed description of each field that failed validation.
                additionalProperties:
                  type: array
                  items:
                    type: string
            required:
              - message
              - errors
  securitySchemes:
    oauth2:
      type: oauth2
      flows:
        authorizationCode:
          authorizationUrl: https://app.flextell.ai/oauth/authorize
          tokenUrl: https://app.flextell.ai/oauth/token
          scopes:
            '*': all
    bearer:
      type: http
      scheme: bearer

````

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