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

# Get Patient Timeline



## OpenAPI

````yaml https://api.getsolum.com/openapi.json get /v1/patients/{patient_id}/timeline
openapi: 3.1.0
info:
  title: Solum Health API
  description: '## Solum Health Backend API '
  version: 1.0.0
servers: []
security: []
paths:
  /v1/patients/{patient_id}/timeline:
    get:
      tags:
        - Patients
      summary: Get Patient Timeline
      operationId: get_patient_timeline_v1_patients__patient_id__timeline_get
      parameters:
        - name: patient_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Patient Id
        - name: types[]
          in: query
          required: false
          schema:
            anyOf:
              - type: array
                items:
                  $ref: '#/components/schemas/TimelineItemType'
              - type: 'null'
            title: Types[]
        - name: page
          in: query
          required: false
          schema:
            type: integer
            minimum: 1
            default: 1
            title: Page
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            maximum: 100
            minimum: 1
            default: 50
            title: Limit
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TimelineList'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                type: object
                properties:
                  type:
                    type: string
                    example: validation_error
                  code:
                    type: string
                    example: invalid_parameter
                  message:
                    type: string
                    example: Field validation failed
                  param:
                    type: string
                    example: phone_number
                required:
                  - type
                  - code
                  - message
      security:
        - APIKeyHeader: []
        - HTTPBearer: []
components:
  schemas:
    TimelineItemType:
      type: string
      enum:
        - event
        - call
        - message
        - fax
        - task
        - form_submission
        - prior_auth
      title: TimelineItemType
    TimelineList:
      properties:
        data:
          items:
            oneOf:
              - $ref: '#/components/schemas/EventTimelineItem'
              - $ref: '#/components/schemas/CallTimelineItem'
              - $ref: '#/components/schemas/MessageTimelineItem'
              - $ref: '#/components/schemas/FaxTimelineItem'
              - $ref: '#/components/schemas/TaskTimelineItem'
              - $ref: '#/components/schemas/FormSubmissionTimelineItem'
              - $ref: '#/components/schemas/PriorAuthTimelineItem'
            discriminator:
              propertyName: type
              mapping:
                call:
                  $ref: '#/components/schemas/CallTimelineItem'
                event:
                  $ref: '#/components/schemas/EventTimelineItem'
                fax:
                  $ref: '#/components/schemas/FaxTimelineItem'
                form_submission:
                  $ref: '#/components/schemas/FormSubmissionTimelineItem'
                message:
                  $ref: '#/components/schemas/MessageTimelineItem'
                prior_auth:
                  $ref: '#/components/schemas/PriorAuthTimelineItem'
                task:
                  $ref: '#/components/schemas/TaskTimelineItem'
          type: array
          title: Data
        pagination:
          $ref: '#/components/schemas/Pagination'
      additionalProperties: false
      type: object
      required:
        - data
        - pagination
      title: TimelineList
    EventTimelineItem:
      properties:
        id:
          type: string
          title: Id
        sort_date:
          type: string
          format: date-time
          title: Sort Date
        type:
          type: string
          const: event
          title: Type
        data:
          $ref: '#/components/schemas/EventData'
      type: object
      required:
        - id
        - sort_date
        - type
        - data
      title: EventTimelineItem
    CallTimelineItem:
      properties:
        id:
          type: string
          title: Id
        sort_date:
          type: string
          format: date-time
          title: Sort Date
        type:
          type: string
          const: call
          title: Type
        data:
          $ref: '#/components/schemas/CallData'
      type: object
      required:
        - id
        - sort_date
        - type
        - data
      title: CallTimelineItem
    MessageTimelineItem:
      properties:
        id:
          type: string
          title: Id
        sort_date:
          type: string
          format: date-time
          title: Sort Date
        type:
          type: string
          const: message
          title: Type
        data:
          $ref: '#/components/schemas/MessageData'
      type: object
      required:
        - id
        - sort_date
        - type
        - data
      title: MessageTimelineItem
    FaxTimelineItem:
      properties:
        id:
          type: string
          title: Id
        sort_date:
          type: string
          format: date-time
          title: Sort Date
        type:
          type: string
          const: fax
          title: Type
        data:
          $ref: '#/components/schemas/FaxData'
      type: object
      required:
        - id
        - sort_date
        - type
        - data
      title: FaxTimelineItem
    TaskTimelineItem:
      properties:
        id:
          type: string
          title: Id
        sort_date:
          type: string
          format: date-time
          title: Sort Date
        type:
          type: string
          const: task
          title: Type
        data:
          $ref: '#/components/schemas/TaskData'
      type: object
      required:
        - id
        - sort_date
        - type
        - data
      title: TaskTimelineItem
    FormSubmissionTimelineItem:
      properties:
        id:
          type: string
          title: Id
        sort_date:
          type: string
          format: date-time
          title: Sort Date
        type:
          type: string
          const: form_submission
          title: Type
        data:
          $ref: '#/components/schemas/FormSubmissionData'
      type: object
      required:
        - id
        - sort_date
        - type
        - data
      title: FormSubmissionTimelineItem
    PriorAuthTimelineItem:
      properties:
        id:
          type: string
          title: Id
        sort_date:
          type: string
          format: date-time
          title: Sort Date
        type:
          type: string
          const: prior_auth
          title: Type
        data:
          $ref: '#/components/schemas/PriorAuthData'
      type: object
      required:
        - id
        - sort_date
        - type
        - data
      title: PriorAuthTimelineItem
    Pagination:
      properties:
        has_more:
          type: boolean
          title: Has More
        total:
          type: integer
          title: Total
        page:
          type: integer
          title: Page
        limit:
          type: integer
          title: Limit
      additionalProperties: false
      type: object
      required:
        - has_more
        - total
        - page
        - limit
      title: Pagination
      description: |-
        Pagination information for list responses.

        Fields:
        - has_more: Whether more items exist beyond this page
        - total: Total number of items across all pages
        - page: Current page number (1-based)
        - limit: Number of items per page
    EventData:
      properties:
        id:
          type: string
          title: Id
        type:
          type: string
          title: Type
        description:
          anyOf:
            - type: string
            - type: 'null'
          title: Description
        metadata:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Metadata
        patient_id:
          type: string
          title: Patient Id
        created_at:
          anyOf:
            - type: string
            - type: 'null'
          title: Created At
        created_by:
          anyOf:
            - type: string
            - type: 'null'
          title: Created By
      additionalProperties: true
      type: object
      required:
        - id
        - type
        - patient_id
      title: EventData
    CallData:
      properties:
        id:
          type: string
          title: Id
        type:
          type: string
          title: Type
        assistant_id:
          type: string
          title: Assistant Id
        phone_number_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Phone Number Id
        org_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Org Id
        patient_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Patient Id
        customer_number:
          anyOf:
            - type: string
            - type: 'null'
          title: Customer Number
        started_at:
          anyOf:
            - type: string
            - type: 'null'
          title: Started At
        ended_at:
          anyOf:
            - type: string
            - type: 'null'
          title: Ended At
        duration_min:
          anyOf:
            - type: number
            - type: 'null'
          title: Duration Min
        transcript:
          anyOf:
            - type: string
            - type: 'null'
          title: Transcript
        summary:
          anyOf:
            - type: string
            - type: 'null'
          title: Summary
        status:
          anyOf:
            - type: string
            - type: 'null'
          title: Status
        category:
          anyOf:
            - type: string
            - type: 'null'
          title: Category
        cost:
          anyOf:
            - type: number
            - type: 'null'
          title: Cost
        ended_reason:
          anyOf:
            - type: string
            - type: 'null'
          title: Ended Reason
        score:
          anyOf:
            - type: integer
            - type: 'null'
          title: Score
        language:
          anyOf:
            - type: string
            - type: 'null'
          title: Language
        structured_data:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Structured Data
        messages:
          anyOf:
            - items: {}
              type: array
            - type: 'null'
          title: Messages
        answered:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Answered
        created_at:
          anyOf:
            - type: string
            - type: 'null'
          title: Created At
        assistant:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Assistant
      additionalProperties: true
      type: object
      required:
        - id
        - type
        - assistant_id
      title: CallData
    MessageData:
      properties:
        id:
          type: string
          title: Id
        conversation_id:
          type: string
          title: Conversation Id
        sender_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Sender Id
        sender_type:
          type: string
          title: Sender Type
        content:
          type: string
          title: Content
        status:
          anyOf:
            - type: string
            - type: 'null'
          title: Status
        is_read:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Is Read
        phone_number_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Phone Number Id
        created_at:
          anyOf:
            - type: string
            - type: 'null'
          title: Created At
        updated_at:
          anyOf:
            - type: string
            - type: 'null'
          title: Updated At
        sender_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Sender Name
        files:
          anyOf:
            - items: {}
              type: array
            - type: 'null'
          title: Files
      additionalProperties: true
      type: object
      required:
        - id
        - conversation_id
        - sender_type
        - content
      title: MessageData
    FaxData:
      properties:
        id:
          type: string
          title: Id
        patient_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Patient Id
        from_fax_number:
          anyOf:
            - type: string
            - type: 'null'
          title: From Fax Number
        extracted_data:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Extracted Data
        processing_status:
          anyOf:
            - type: string
            - type: 'null'
          title: Processing Status
        status:
          anyOf:
            - type: string
            - type: 'null'
          title: Status
        type:
          anyOf:
            - type: string
            - type: 'null'
          title: Type
        page_count:
          anyOf:
            - type: integer
            - type: 'null'
          title: Page Count
        created_at:
          anyOf:
            - type: string
            - type: 'null'
          title: Created At
      additionalProperties: true
      type: object
      required:
        - id
      title: FaxData
    TaskData:
      properties:
        id:
          type: string
          title: Id
        title:
          type: string
          title: Title
        description:
          anyOf:
            - type: string
            - type: 'null'
          title: Description
        tags:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          title: Tags
        deadline:
          anyOf:
            - type: string
            - type: 'null'
          title: Deadline
        priority:
          anyOf:
            - type: string
            - type: 'null'
          title: Priority
        status:
          anyOf:
            - type: string
            - type: 'null'
          title: Status
        type:
          anyOf:
            - type: string
            - type: 'null'
          title: Type
        patient_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Patient Id
        created_by_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Created By Id
        active:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Active
        created_at:
          anyOf:
            - type: string
            - type: 'null'
          title: Created At
        created_by:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Created By
        assigned_users:
          anyOf:
            - items: {}
              type: array
            - type: 'null'
          title: Assigned Users
      additionalProperties: true
      type: object
      required:
        - id
        - title
      title: TaskData
    FormSubmissionData:
      properties:
        id:
          type: string
          title: Id
        form_id:
          type: string
          title: Form Id
        patient_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Patient Id
        data:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Data
        status:
          anyOf:
            - type: string
            - type: 'null'
          title: Status
        responded_at:
          anyOf:
            - type: string
            - type: 'null'
          title: Responded At
        created_at:
          anyOf:
            - type: string
            - type: 'null'
          title: Created At
        form:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Form
      additionalProperties: true
      type: object
      required:
        - id
        - form_id
      title: FormSubmissionData
    PriorAuthData:
      properties:
        id:
          type: string
          title: Id
        prior_authorization_id:
          type: string
          title: Prior Authorization Id
        patient_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Patient Id
        event:
          type: string
          title: Event
        pa_type:
          anyOf:
            - type: string
            - type: 'null'
          title: Pa Type
        status:
          anyOf:
            - type: string
            - type: 'null'
          title: Status
        decision:
          anyOf:
            - type: string
            - type: 'null'
          title: Decision
        created_at:
          anyOf:
            - type: string
            - type: 'null'
          title: Created At
      additionalProperties: true
      type: object
      required:
        - id
        - prior_authorization_id
        - event
      title: PriorAuthData
      description: |-
        A prior-authorization lifecycle event, derived from the PA's own
        timestamps (created/submitted/decided) — there is no separate PA-event
        table. `prior_authorization_id` links the row to the PA; `event` is the
        lifecycle stage; `created_at` is when that stage occurred.
  securitySchemes:
    APIKeyHeader:
      type: apiKey
      in: header
      name: X-API-Key
    HTTPBearer:
      type: http
      scheme: bearer

````