> ## 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 shared with the current user



## 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:
        - Collaboration
      summary: List collaboration requests shared with the current user
      operationId: collaboration#requests
      parameters:
        - name: page
          in: query
          required: false
          schema:
            type: integer
        - name: per_page
          in: query
          required: false
          schema:
            type: integer
        - name: filter[request_type]
          in: query
          required: false
          schema:
            type: string
            enum:
              - project_items_edit
              - purchase_order_edit
        - 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[query]
          in: query
          required: false
          description: Request, project, purchase order or workspace name
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/collaboration_shared_request'
        '401':
          description: Unauthorized
      security:
        - apiKey: []
components:
  schemas:
    collaboration_shared_request:
      type: object
      description: What a collaborator sees about a request shared with them.
      properties:
        id:
          type: integer
        request_type:
          type: string
          enum:
            - project_items_edit
            - purchase_order_edit
        status:
          type: string
          enum:
            - open
            - closed
        expired:
          type: boolean
        available:
          type: boolean
          description: >-
            False when what it shares is unavailable (archived/deleted project,
            procurement switched off) or the workspace is inactive or out of
            trial.
        name:
          type: string
        message:
          type: string
          nullable: true
        created_at:
          type: string
          format: date-time
        expires_at:
          type: string
          format: date-time
          nullable: true
        items_count:
          type: integer
        shared_by:
          type: object
          nullable: true
          properties:
            first_name:
              type: string
              nullable: true
            last_name:
              type: string
              nullable: true
        workspace:
          type: object
          properties:
            name:
              type: string
            logo_url:
              type: string
              nullable: true
        subject:
          $ref: '#/components/schemas/collaboration_subject'
        header_fields:
          type: array
          description: >-
            purchase_order_edit, show only. PO header fields the collaborator
            can edit; `attachments` = they can upload documents and remove their
            own.
          items:
            type: string
        item_fields:
          type: array
          description: >-
            purchase_order_edit, show only. PO item fields the collaborator can
            edit.
          items:
            type: string
        columns:
          type: array
          description: project_items_edit, show only.
          items:
            allOf:
              - $ref: '#/components/schemas/item_field'
              - type: object
                properties:
                  collaboration_editable:
                    type: boolean
        recipients:
          type: array
          description: >-
            Show only. The request's active recipients (the sharer included),
            who can @mention each other in its comments.
          items:
            type: object
            properties:
              id:
                type: integer
              email:
                type: string
              first_name:
                type: string
                nullable: true
              last_name:
                type: string
                nullable: true
              logo_url:
                type: string
                nullable: true
              from_workspace:
                type: boolean
                description: A member of the request's workspace.
        comment_attachments:
          type: object
          description: >-
            Show only. The workspace plan's limits on comment files, so the
            comment form can check them up front.
          required:
            - max_files
            - max_file_size_mb
          properties:
            max_files:
              type: integer
            max_file_size_mb:
              type: integer
        can_close:
          type: boolean
          description: >-
            Show only. The signed-in user is a member of the request's workspace
            who may close it (collaboration_requests_update and access to what
            it shares).
        workspace_id:
          type: integer
          description: >-
            Only when can_close — the X-Workspace-ID to send to POST
            /collaboration_requests/{id}/close.
    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.
    item_field:
      type: object
      properties:
        id:
          type: integer
        slug:
          type: string
        name:
          type: string
        description:
          type: string
          nullable: true
        field_type:
          type: string
          enum:
            - number
            - percent
            - string
            - date
            - images
            - docs
            - list
            - multiselect
            - boolean
            - contact
            - item_card
            - quantity
            - areas_list
        format:
          type: string
          enum:
            - default
            - currency
          description: >-
            How the column is displayed. `currency` (number columns only) shows
            the row's currency — the project's for project items, the
            workspace's for product items.
        options:
          type: array
          nullable: true
          items:
            type: object
            properties:
              key:
                type: string
              label:
                type: string
              archived:
                type: boolean
              slug:
                type: string
                nullable: true
              tag:
                type: string
                nullable: true
                description: >-
                  For contact columns — a company tag the column is restricted
                  to.
        bulk_update:
          type: boolean
        sortable:
          type: boolean
        position:
          type: integer
        association_type:
          type: string
          nullable: true
        editable:
          type: boolean
        deletable:
          type: boolean
        deleted_at:
          type: string
          format: date-time
          nullable: true
  securitySchemes:
    apiKey:
      type: apiKey
      name: authorization
      in: header

````

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