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

# Search All Records

**Provider API:** Zendesk Support API (v2).


## OpenAPI

````yaml actionkit/openapi.json POST /projects/{project_id}/tools/#ZENDESK_SEARCH_ALL_RECORDS
openapi: 3.0.0
info:
  title: ActionKit Tools API
  version: 1.0.0
servers:
  - url: https://actionkit.useparagon.com
    description: US Cloud
security: []
paths:
  /projects/{project_id}/tools/#ZENDESK_SEARCH_ALL_RECORDS:
    post:
      summary: Search All Records
      parameters:
        - name: project_id
          in: path
          required: true
          schema:
            type: string
            description: >-
              Your Paragon Project ID. You can copy your Project ID from your
              dashboard URL or by clicking Copy Project ID under the Environment
              switcher.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                tool:
                  type: string
                  default: ZENDESK_SEARCH_ALL_RECORDS
                parameters:
                  type: object
                  properties:
                    query:
                      type: string
                      description: >-
                        Query : Search using this query for matching tickets,
                        users, and organizations (example: "type:user "Jane
                        Doe"")
                    sort_by:
                      type: string
                      description: Sort By
                      enum:
                        - created_at
                        - updated_at
                        - priority
                        - status
                        - ticket_type
                    sort_order:
                      type: string
                      description: Sort Order
                      enum:
                        - asc
                        - desc
                    paginationParameters:
                      type: object
                      description: Pagination Parameters
                      properties:
                        pageCursor:
                          type: string
                          description: >-
                            The cursor to use for requesting additional results.
                            Use if you received a previous response with a page
                            cursor and require more results.
                        limit:
                          type: number
                          description: >-
                            The maximum number of records to load in one page of
                            results.
                  required:
                    - query
                  x-integration: zendesk
              required:
                - tool
                - parameters
      responses:
        '200':
          description: >-
            A page of matching records of any type (tickets, users,
            organizations, and so on), as returned by Zendesk search. Each
            record has a `result_type`. A full page has 100 records.
            `nextPageCursor` is `null` on the last page; otherwise pass it as
            `paginationParameters.pageCursor` to load the next page. Zendesk
            search returns at most 1,000 results, so `nextPageCursor` is `null`
            once that limit is reached.
          content:
            application/json:
              examples:
                Response (first page):
                  summary: First page, more pages available (abbreviated)
                  value:
                    records:
                      - url: https://example.zendesk.com/api/v2/tickets/35436.json
                        id: 35436
                        external_id: null
                        via:
                          channel: api
                          source:
                            from: {}
                            to: {}
                            rel: null
                        created_at: '2026-10-16T05:54:37Z'
                        updated_at: '2026-10-16T05:54:39Z'
                        generated_timestamp: 360000780079
                        type: null
                        subject: '[Paragon docs test] safe to delete'
                        raw_subject: '[Paragon docs test] safe to delete'
                        description: >-
                          Temporary ticket created while documenting ActionKit
                          responses. Deleted right after.
                        priority: high
                        status: open
                        recipient: null
                        requester_id: 360000020441
                        submitter_id: 360000020441
                        assignee_id: 360000040777
                        organization_id: null
                        group_id: 360000060358
                        collaborator_ids: []
                        follower_ids: []
                        email_cc_ids: []
                        forum_topic_id: null
                        problem_id: null
                        has_incidents: false
                        is_public: true
                        due_at: null
                        tags: []
                        custom_fields:
                          - id: 360000080418
                            value: null
                          - id: 360000100193
                            value: null
                          - id: 360000120129
                            value: null
                          - id: 360000140177
                            value: null
                          - id: 360000160113
                            value: null
                          - id: 360000180609
                            value: null
                          - id: 360000200409
                            value: null
                          - id: 360000220953
                            value: null
                          - id: 360000240465
                            value: null
                          - id: 360000260201
                            value: null
                          - id: 360000280353
                            value: null
                          - id: 360000300641
                            value: null
                          - id: 360000320209
                            value: null
                        satisfaction_rating:
                          score: unoffered
                        sharing_agreement_ids: []
                        custom_status_id: 360000340813
                        encoded_id: V0WRRD-5DM05
                        fields:
                          - id: 360000080418
                            value: null
                          - id: 360000100193
                            value: null
                          - id: 360000120129
                            value: null
                          - id: 360000140177
                            value: null
                          - id: 360000160113
                            value: null
                          - id: 360000180609
                            value: null
                          - id: 360000200409
                            value: null
                          - id: 360000220953
                            value: null
                          - id: 360000240465
                            value: null
                          - id: 360000260201
                            value: null
                          - id: 360000280353
                            value: null
                          - id: 360000300641
                            value: null
                          - id: 360000320209
                            value: null
                        followup_ids: []
                        brand_id: 360000360398
                        allow_channelback: false
                        allow_attachments: true
                        from_messaging_channel: false
                        support_type: agent
                        result_type: ticket
                    nextPageCursor: '2'
                Response (last page):
                  summary: Last page
                  value:
                    records:
                      - url: https://example.zendesk.com/api/v2/tickets/35436.json
                        id: 35436
                        external_id: null
                        via:
                          channel: api
                          source:
                            from: {}
                            to: {}
                            rel: null
                        created_at: '2026-10-16T05:54:37Z'
                        updated_at: '2026-10-16T05:54:39Z'
                        generated_timestamp: 360000780079
                        type: null
                        subject: '[Paragon docs test] safe to delete'
                        raw_subject: '[Paragon docs test] safe to delete'
                        description: >-
                          Temporary ticket created while documenting ActionKit
                          responses. Deleted right after.
                        priority: high
                        status: open
                        recipient: null
                        requester_id: 360000020441
                        submitter_id: 360000020441
                        assignee_id: 360000040777
                        organization_id: null
                        group_id: 360000060358
                        collaborator_ids: []
                        follower_ids: []
                        email_cc_ids: []
                        forum_topic_id: null
                        problem_id: null
                        has_incidents: false
                        is_public: true
                        due_at: null
                        tags: []
                        custom_fields:
                          - id: 360000080418
                            value: null
                          - id: 360000100193
                            value: null
                          - id: 360000120129
                            value: null
                          - id: 360000140177
                            value: null
                          - id: 360000160113
                            value: null
                          - id: 360000180609
                            value: null
                          - id: 360000200409
                            value: null
                          - id: 360000220953
                            value: null
                          - id: 360000240465
                            value: null
                          - id: 360000260201
                            value: null
                          - id: 360000280353
                            value: null
                          - id: 360000300641
                            value: null
                          - id: 360000320209
                            value: null
                        satisfaction_rating:
                          score: unoffered
                        sharing_agreement_ids: []
                        custom_status_id: 360000340813
                        encoded_id: V0WRRD-5DM05
                        fields:
                          - id: 360000080418
                            value: null
                          - id: 360000100193
                            value: null
                          - id: 360000120129
                            value: null
                          - id: 360000140177
                            value: null
                          - id: 360000160113
                            value: null
                          - id: 360000180609
                            value: null
                          - id: 360000200409
                            value: null
                          - id: 360000220953
                            value: null
                          - id: 360000240465
                            value: null
                          - id: 360000260201
                            value: null
                          - id: 360000280353
                            value: null
                          - id: 360000300641
                            value: null
                          - id: 360000320209
                            value: null
                        followup_ids: []
                        brand_id: 360000360398
                        allow_channelback: false
                        allow_attachments: true
                        from_messaging_channel: false
                        support_type: agent
                        result_type: ticket
                    nextPageCursor: null
      security:
        - BearerAuth: []
components:
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >-
        Your [Paragon User
        Token](/getting-started/installing-the-connect-sdk#setup) (JWT), which
        you can generate using your project's signing keys.

````