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

# List all prescription history

> Returns a list of all individual prescriptions across all clinics in the organization. This endpoint includes every prescription issued under each prescription record, providing the complete prescription history. Results are sorted by creation date (descending), with the most recently created prescription history entries appearing first. Prescription history entries are not modified after creation.



## OpenAPI

````yaml get /ext/v2/prescription-history/
openapi: 3.1.0
info:
  description: ''
  title: NinjaAPI
  version: 2.0.0
servers:
  - url: https://connect.vetcove.com/
security: []
paths:
  /ext/v2/prescription-history/:
    get:
      tags:
        - Prescriptions
      summary: List all prescription history
      description: >-
        Returns a list of all individual prescriptions across all clinics in the
        organization. This endpoint includes every prescription issued under
        each prescription record, providing the complete prescription history.
        Results are sorted by creation date (descending), with the most recently
        created prescription history entries appearing first. Prescription
        history entries are not modified after creation.
      operationId: prescription_history_list
      parameters:
        - description: When provided, filters to objects with these IDs.
          in: query
          name: ids
          required: false
          schema:
            anyOf:
              - items:
                  type: integer
                type: array
              - type: 'null'
            description: When provided, filters to objects with these IDs.
            title: Ids
        - description: >-
            A cursor used for pagination. Fetches the page of results ending
            immediately before the object with the given ID. Cannot be used at
            the same time as `starting_after`.
          in: query
          name: ending_before
          required: false
          schema:
            anyOf:
              - type: integer
              - type: 'null'
            description: >-
              A cursor used for pagination. Fetches the page of results ending
              immediately before the object with the given ID. Cannot be used at
              the same time as `starting_after`.
            title: Ending Before
        - description: >-
            A cursor used for pagination. Fetches the page of results starting
            immediately after the given ID. Cannot be used at the same time as
            `ending_before`.
          in: query
          name: starting_after
          required: false
          schema:
            anyOf:
              - type: integer
              - type: 'null'
            description: >-
              A cursor used for pagination. Fetches the page of results starting
              immediately after the given ID. Cannot be used at the same time as
              `ending_before`.
            title: Starting After
        - description: The maximum number of items to return per page.
          in: query
          name: limit
          required: false
          schema:
            default: 10
            description: The maximum number of items to return per page.
            maximum: 100
            minimum: 1
            title: Limit
            type: integer
        - description: >-
            When 'FALSE' (default), filters to non-deleted records only. When
            'TRUE', filters to soft-deleted records only. When 'ALL', returns
            both deleted and non-deleted records.
          in: query
          name: is_deleted
          required: false
          schema:
            allOf:
              - enum:
                  - 'FALSE'
                  - 'TRUE'
                  - ALL
                title: DeletedFilterOption
                type: string
            default: 'FALSE'
            description: >-
              When 'FALSE' (default), filters to non-deleted records only. When
              'TRUE', filters to soft-deleted records only. When 'ALL', returns
              both deleted and non-deleted records.
        - description: >-
            When provided, filters to prescription history record for the clinic
            with this ID
          in: query
          name: clinic_id
          required: false
          schema:
            anyOf:
              - type: integer
              - type: 'null'
            description: >-
              When provided, filters to prescription history record for the
              clinic with this ID
            title: Clinic Id
        - description: >-
            When provided, filters to prescription history record for the clinic
            client with this ID
          in: query
          name: clinic_client_id
          required: false
          schema:
            anyOf:
              - type: integer
              - type: 'null'
            description: >-
              When provided, filters to prescription history record for the
              clinic client with this ID
            title: Clinic Client Id
        - description: >-
            When provided, filters to prescription history record for the clinic
            patient with this ID
          in: query
          name: clinic_patient_id
          required: false
          schema:
            anyOf:
              - type: integer
              - type: 'null'
            description: >-
              When provided, filters to prescription history record for the
              clinic patient with this ID
            title: Clinic Patient Id
        - description: >-
            When provided, filters to prescription history record for the
            prescription record with this ID
          in: query
          name: prescription_id
          required: false
          schema:
            anyOf:
              - type: integer
              - type: 'null'
            description: >-
              When provided, filters to prescription history record for the
              prescription record with this ID
            title: Prescription Id
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConnectPrescriptionHistorySchemaList'
          description: OK
      security:
        - ExternalAPIAuth: []
components:
  schemas:
    ConnectPrescriptionHistorySchemaList:
      properties:
        data:
          description: A single page of data contained within this list.
          items:
            $ref: '#/components/schemas/ConnectPrescriptionHistorySchema'
          title: Data
          type: array
        has_more:
          default: false
          description: Whether there are more pages or data in this list.
          title: Has More
          type: boolean
        next_page:
          description: A URL linking to the next page of this list.
          title: Next Page
          type: string
        type:
          default: list
          description: Type of this object. Always `list`.
          title: Type
          type: string
      required:
        - data
        - next_page
      title: ConnectPrescriptionHistorySchemaList
      type: object
    ConnectPrescriptionHistorySchema:
      properties:
        allowed_uses:
          anyOf:
            - minimum: 0
              type: integer
            - type: 'null'
          description: The number of fills allowed, each with the specified `quantity`.
          title: Allowed Uses
        client_notes:
          anyOf:
            - type: string
            - type: 'null'
          description: Additional notes for the client.
          title: Client Notes
        clinic_id:
          description: The ID of the clinic where this prescription was created.
          title: Clinic Id
          type: integer
        clinic_patient_id:
          description: The ID of the clinic patient that this prescription is for.
          title: Clinic Patient Id
          type: integer
        created:
          description: The datetime this object was created.
          format: date-time
          title: Created
          type: string
        days_supply:
          anyOf:
            - minimum: 0
              type: integer
            - type: 'null'
          description: How many days one unit of this prescription is intended to last for.
          title: Days Supply
        deleted:
          anyOf:
            - format: date-time
              type: string
            - type: 'null'
          description: The datetime this record was soft deleted.
          title: Deleted
        directions:
          anyOf:
            - type: string
            - type: 'null'
          description: The directions for the prescription.
          title: Directions
        expiration_date:
          anyOf:
            - format: date-time
              type: string
            - type: 'null'
          description: When this prescription expires, if applicable.
          title: Expiration Date
        id:
          description: The unique identifier for this prescription history record.
          title: Id
          type: integer
        is_deleted:
          description: Whether this record is soft deleted or not.
          title: Is Deleted
          type: boolean
        is_prn:
          description: Whether the prescription is PRN (as needed).
          title: Is Prn
          type: boolean
        item:
          $ref: '#/components/schemas/ConnectPrescriptionFillItemSchema'
          description: The catalog item prescribed.
        modified:
          description: >-
            The datetime this object was last modified; changes to related
            entities will not update this field.
          format: date-time
          title: Modified
          type: string
        prescribed_at:
          description: The date and time when the prescription was written.
          format: date-time
          title: Prescribed At
          type: string
        prescribed_by:
          anyOf:
            - type: string
            - type: 'null'
          description: The name of the doctor who prescribed the prescription.
          title: Prescribed By
        prescribed_by_doctor_id:
          anyOf:
            - type: integer
            - type: 'null'
          description: >-
            The ID of the doctor who prescribed the prescription. Use with the
            Doctors endpoint to look up full doctor details.
          title: Prescribed By Doctor Id
        prescription_id:
          description: >-
            The ID of the prescription record that this prescription history
            entry belongs to.
          title: Prescription Id
          type: integer
        quantity:
          description: How many of the items should be provided for each fill.
          minimum: 0
          title: Quantity
          type: integer
        rx_notification_sent_at:
          anyOf:
            - format: date-time
              type: string
            - type: 'null'
          description: >-
            The timestamp of when the prescription created notification was
            sent. Null if no notification has been sent.
          title: Rx Notification Sent At
        scheduled_rx_notification_sent_at:
          anyOf:
            - format: date-time
              type: string
            - type: 'null'
          description: >-
            The timestamp of when the scheduled prescription created
            notification was sent. Null if no scheduled notification has been
            sent.
          title: Scheduled Rx Notification Sent At
        status:
          $ref: '#/components/schemas/PrescriptionStatus'
          description: The status of this prescription history record.
        total_allowed_uses:
          anyOf:
            - type: integer
            - type: 'null'
          description: >-
            The total quantity for which the prescription can be used for the
            item. None if the prescription is PRN.
          title: Total Allowed Uses
      required:
        - created
        - modified
        - is_deleted
        - deleted
        - id
        - status
        - prescription_id
        - clinic_id
        - clinic_patient_id
        - item
        - is_prn
        - prescribed_at
        - quantity
      title: ConnectPrescriptionHistorySchema
      type: object
    ConnectPrescriptionFillItemSchema:
      properties:
        id:
          description: The ID of the catalog item prescribed.
          title: Id
          type: integer
        name:
          description: The name of the catalog item prescribed.
          title: Name
          type: string
      required:
        - id
        - name
      title: ConnectPrescriptionFillItemSchema
      type: object
    PrescriptionStatus:
      enum:
        - ACTIVE
        - DRAFT
        - DECLINED
        - IMPORTED
      title: PrescriptionStatus
      type: string
  securitySchemes:
    ExternalAPIAuth:
      scheme: bearer
      type: http

````