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

# List Reviews

> Lists pending Reviews (approvals, questions, and connect-app requests) waiting on human input in this Room, oldest first.



## OpenAPI

````yaml /openapi.json get /v1/rooms/{roomId}/reviews
openapi: 3.1.0
info:
  title: Worklayer Factory API
  version: 1.0.0
  description: >-
    Create custom interfaces to interact with your Worklayer factory—an
    always-on workspace with its own connected apps, skills, memory, files, and
    background Workers (also called an Environment in parts of the web app).
    Send Events into Rooms, read Room History, resolve human Reviews, follow or
    steer Workers, and receive real-time updates via signed Subscriptions.
servers:
  - url: https://api.myworklayer.com
    description: Production
security:
  - bearerAuth: []
tags:
  - name: Rooms
    description: >-
      Create and manage isolated Rooms and read Room History. Every factory
      includes a main Room (`web`) and supports creating additional Rooms via
      the API. Room History is read-only.
  - name: Events
    description: Send Events into a Room and retrieve stored API Events.
  - name: Workers
    description: Inspect, stream, and steer background Workers spawned by your factory.
  - name: Review
    description: >-
      List and resolve pending approvals, questions, and app connections
      blocking a Worker.
  - name: Subscriptions
    description: >-
      Create, update, rotate, and delete HTTPS webhook endpoints for your
      factory.
  - name: Subscription events
    description: Signed webhook payloads delivered by Worklayer when factory events occur.
paths:
  /v1/rooms/{roomId}/reviews:
    parameters:
      - $ref: '#/components/parameters/RoomId'
    get:
      tags:
        - Review
      summary: List Reviews
      description: >-
        Lists pending Reviews (approvals, questions, and connect-app requests)
        waiting on human input in this Room, oldest first.
      operationId: listReviews
      parameters:
        - name: workerId
          in: query
          description: Only the Reviews of this Worker.
          schema:
            type: string
            minLength: 1
        - name: kind
          in: query
          description: Only the Reviews of this kind.
          schema:
            type: string
            enum:
              - approval
              - question
              - connect_app
      responses:
        '200':
          description: The pending Reviews.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ReviewList'
              example:
                requests:
                  - requestId: >-
                      wr1.Y2x4Mmh0cTlrMDAwMQ.2.Qm9vVGF0Y2hlcy1maW5nZXJwcmludC1leGFtcGxlXzQz
                    workerId: 6f1c2a9e-4b7d-4e2a-9c51-3d8e0b7a1f24
                    kind: question
                    title: Shipping carrier
                    questions:
                      - id: carrier
                        question: Which carrier do I use?
                        multiSelect: false
                        options:
                          - id: ups
                            label: UPS
                          - id: fedex
                            label: FedEx
                            description: Faster, more expensive
                  - requestId: >-
                      wr1.Y2x4Mmh0cTlrMDAwMQ.2.Qm9vVGF0Y2hlcy1maW5nZXJwcmludC1leGFtcGxlXzQz
                    workerId: 6f1c2a9e-4b7d-4e2a-9c51-3d8e0b7a1f24
                    kind: approval
                    calls:
                      - tool: gmail_send_email
                        callNumber: 1
                        inputFields:
                          - to
                          - subject
                          - body
        '400':
          description: A query parameter is not valid.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                statusCode: 400
                message: Invalid request filter.
                error: Bad Request
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          description: The Room or the Worker was not found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                statusCode: 404
                message: Worker not found.
                error: Not Found
        '429':
          $ref: '#/components/responses/TooManyRequests'
      x-codeSamples:
        - lang: bash
          label: cURL
          source: >-
            curl
            "https://api.myworklayer.com/v1/rooms/cmhx3q7v20004l808sd5k2r1m/reviews?kind=question"
            \
              -H "Authorization: Bearer $WORKLAYER_API_KEY"
        - lang: javascript
          label: fetch
          source: >-
            const response = await
            fetch('https://api.myworklayer.com/v1/rooms/cmhx3q7v20004l808sd5k2r1m/reviews?kind=question',
            {
              headers: {
                Authorization: `Bearer ${process.env.WORKLAYER_API_KEY}`,
              },
            });

            const data = await response.json();

            console.log(data);
components:
  parameters:
    RoomId:
      name: roomId
      in: path
      required: true
      description: >-
        Room ID. Pass `web` to target your factory's main Room (the conversation
        in the Worklayer web app).
      schema:
        type: string
        minLength: 1
        maxLength: 191
      example: cmhx3q7v20004l808sd5k2r1m
  schemas:
    ReviewList:
      type: object
      required:
        - requests
      properties:
        requests:
          type: array
          items:
            $ref: '#/components/schemas/Review'
          description: Oldest first.
    Error:
      type: object
      description: The error body. Most errors have this shape.
      required:
        - statusCode
        - message
      properties:
        statusCode:
          type: integer
          description: The HTTP status code.
        message:
          type: string
          description: A short description of the error.
        error:
          type: string
          description: The name of the HTTP status.
    Review:
      oneOf:
        - $ref: '#/components/schemas/ReviewQuestion'
        - $ref: '#/components/schemas/ReviewApproval'
        - $ref: '#/components/schemas/ReviewConnectApp'
    ReviewQuestion:
      title: question
      type: object
      required:
        - requestId
        - workerId
        - kind
        - questions
      properties:
        requestId:
          type: string
        workerId:
          type: string
        kind:
          const: question
        title:
          type: string
        questions:
          type: array
          items:
            type: object
            required:
              - id
              - question
              - options
            properties:
              id:
                type: string
                description: Use this id as the key in `answers`.
              question:
                type: string
              multiSelect:
                type: boolean
                description: True when the person can select more than one option.
              options:
                type: array
                items:
                  type: object
                  required:
                    - id
                    - label
                  properties:
                    id:
                      type: string
                    label:
                      type: string
                    description:
                      type: string
    ReviewApproval:
      title: approval
      type: object
      required:
        - requestId
        - workerId
        - kind
        - calls
      properties:
        requestId:
          type: string
        workerId:
          type: string
        kind:
          const: approval
        calls:
          type: array
          description: The tool calls that need approval.
          items:
            type: object
            required:
              - tool
            properties:
              tool:
                type: string
                description: The name of the tool.
              callNumber:
                type: integer
                description: The position of the call, from 1.
              inputFields:
                type: array
                items:
                  type: string
                description: >-
                  The names of some input fields of the call, at most 12. The
                  API does not show the values.
    ReviewConnectApp:
      title: connect_app
      type: object
      required:
        - requestId
        - workerId
        - kind
        - app
      properties:
        requestId:
          type: string
        workerId:
          type: string
        kind:
          const: connect_app
        app:
          type: object
          required:
            - slug
            - name
          properties:
            slug:
              type: string
            name:
              type: string
  responses:
    Unauthorized:
      description: >-
        The API key is missing, not valid or revoked. The response has the
        header `WWW-Authenticate: Bearer`.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            statusCode: 401
            message: Unauthorized
    TooManyRequests:
      description: Too many requests in a short time. Wait, then send the request again.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            statusCode: 429
            message: 'ThrottlerException: Too Many Requests'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: wrk-…
      description: >-
        Your factory's Worklayer API key (`wrk-...`). See [Get an API
        key](/quickstart#get-an-api-key) and [Authentication](/authentication).
        Requests sent from the playground execute live against your factory.

````

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