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

# List collaboration requests



## OpenAPI

````yaml /openapi.yaml get /collaboration_requests
openapi: 3.0.1
info:
  title: GetSpecs REST API
  description: REST API documentation for GetSpecs.
  version: 1.0.0
servers:
  - url: /v1
  - url: https://demo-api.getspecs.io/v1
security: []
paths:
  /collaboration_requests:
    get:
      tags:
        - CollaborationRequest
      summary: List collaboration requests
      operationId: collaboration_requests#index
      parameters:
        - name: page
          in: query
          required: false
          schema:
            type: integer
        - name: per_page
          in: query
          required: false
          schema:
            type: integer
        - name: filter[query]
          in: query
          required: false
          schema:
            type: string
        - name: filter[status]
          in: query
          required: false
          schema:
            type: string
            enum:
              - open
              - closed
        - name: filter[active]
          in: query
          required: false
          schema:
            type: string
            enum:
              - 'true'
              - 'false'
          description: 'true: open and not expired; false: closed or expired'
        - name: filter[request_type]
          in: query
          required: false
          schema:
            type: string
        - name: filter[project_ids][]
          in: query
          required: false
          schema:
            type: array
            items:
              type: integer
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/collaboration_request'
        '403':
          description: Forbidden
      security:
        - apiKey: []
          workspaceId: []
components:
  schemas:
    collaboration_request:
      type: object
      properties:
        id:
          type: integer
        request_type:
          type: string
          enum:
            - project_items_edit
            - purchase_order_edit
        status:
          type: string
          enum:
            - open
            - closed
        expired:
          type: boolean
          description: True once expires_at has passed (status stays open).
        name:
          type: string
        message:
          type: string
          nullable: true
        link_url:
          type: string
          description: >-
            The request's address on the collaborator side. Holds no secret;
            only signed-in recipients can open it.
        subject:
          $ref: '#/components/schemas/collaboration_subject'
        recipients:
          type: array
          description: >-
            Active recipients first (in the order added; the creator is one
            too), then revoked ones.
          items:
            $ref: '#/components/schemas/collaboration_request_recipient'
        column_slugs:
          type: array
          description: >-
            project_items_edit only. Ordered list of every column shared with
            the collaborator.
          items:
            type: string
        editable_column_slugs:
          type: array
          description: >-
            project_items_edit only. Subset of column_slugs the collaborator can
            edit.
          items:
            type: string
        filter:
          type: object
          description: The filter the item snapshot was resolved from (informational).
          properties:
            ids:
              type: array
              items:
                type: integer
            columns:
              type: array
              items:
                type: object
        header_fields:
          type: array
          description: >-
            purchase_order_edit only. PO header fields the collaborator can
            edit; `attachments` lets them upload documents and remove the ones
            they uploaded.
          items:
            type: string
            enum:
              - name
              - notes
              - supplier_contact_name
              - supplier_contact_email
              - supplier_contact_phone
              - supplier_address
              - attachments
        item_fields:
          type: array
          description: purchase_order_edit only. PO item fields the collaborator can edit.
          items:
            type: string
            enum:
              - description
              - unit_type
              - quantity
              - unit_price
        items_count:
          type: integer
          description: Shared project items, or the PO's items.
        changes_count:
          type: integer
          description: >-
            Changes made through this request — item history entries
            (project_items_edit) or PO revisions (purchase_order_edit).
        created_by:
          $ref: '#/components/schemas/collaboration_request_user'
        closed_by:
          $ref: '#/components/schemas/collaboration_request_user'
        project_item_ids:
          type: array
          description: >-
            project_items_edit only, in show / create / update / close
            responses.
          items:
            type: integer
        expires_at:
          type: string
          format: date-time
          nullable: true
        closed_at:
          type: string
          format: date-time
          nullable: true
        last_accessed_at:
          type: string
          format: date-time
          nullable: true
          description: Latest access by any recipient.
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
    collaboration_subject:
      type: object
      description: >-
        What a collaboration request shares — a project (project_items_edit) or
        a purchase order (purchase_order_edit).
      properties:
        type:
          type: string
          enum:
            - project
            - purchase_order
        id:
          type: integer
          description: Workspace side only.
        name:
          type: string
          description: Project name, or the PO's name (its label when it has none).
        code:
          type: string
          nullable: true
          description: Project code, or the PO's label.
    collaboration_request_recipient:
      type: object
      properties:
        id:
          type: integer
        user:
          $ref: '#/components/schemas/collaboration_request_user'
        revoked_at:
          type: string
          format: date-time
          nullable: true
        revoked_by:
          $ref: '#/components/schemas/collaboration_request_user'
        last_accessed_at:
          type: string
          format: date-time
          nullable: true
        created_at:
          type: string
          format: date-time
    collaboration_request_user:
      type: object
      nullable: true
      properties:
        id:
          type: integer
        email:
          type: string
        first_name:
          type: string
          nullable: true
        last_name:
          type: string
          nullable: true
  securitySchemes:
    apiKey:
      type: apiKey
      name: authorization
      in: header
    workspaceId:
      type: apiKey
      name: X-Workspace-ID
      in: header

````

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