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

# List project request logs

> Lists API and MCP requests made to the exact project in the route from the last 30 days. Without `after`, requests are newest first and `page.nextCursor` returns older requests. Pass `page.followCursor` as `after` to receive only newer requests, oldest first; this is how you tail the log. A request appears about two seconds after it completes. Reads of the request log are not listed.

Requires `logs:read`. Project tokens only access resources in their own project.



## OpenAPI

````yaml api-reference/features/operations.json GET /platform/projects/{projectId}/request-logs
openapi: 3.0.3
info:
  title: Operations API methods
  version: 1.0.0
  description: Task-focused operations methods across supported Polymorfa connection types.
servers: []
security: []
paths:
  /platform/projects/{projectId}/request-logs:
    get:
      tags:
        - Logs
      summary: List project request logs
      description: >-
        Lists API and MCP requests made to the exact project in the route from
        the last 30 days. Without `after`, requests are newest first and
        `page.nextCursor` returns older requests. Pass `page.followCursor` as
        `after` to receive only newer requests, oldest first; this is how you
        tail the log. A request appears about two seconds after it completes.
        Reads of the request log are not listed.


        Requires `logs:read`. Project tokens only access resources in their own
        project.
      operationId: managementListProjectRequestLogs
      parameters:
        - schema:
            type: string
            format: uuid
          required: true
          name: projectId
          in: path
          description: |-
            Identifier of the Polymorfa project that owns this resource.

            <!-- polymorfa-input-table -->
            **Value constraints**
            | Constraint | Accepted input |
            | --- | --- |
            | Format | `uuid` |
        - name: limit
          in: query
          required: false
          description: |-
            Requests per page, from 1 to 100.

            <!-- polymorfa-input-table -->
            **Value constraints**
            | Constraint | Accepted input |
            | --- | --- |
            | Numeric value | `1` through `100` (inclusive) |
          schema:
            type: integer
            minimum: 1
            maximum: 100
            default: 25
        - name: cursor
          in: query
          required: false
          description: >-
            `page.nextCursor` from an earlier page. Lists older requests with
            the same filters. Cannot be combined with filters or `after`.


            <!-- polymorfa-input-table -->

            **Value constraints**

            | Constraint | Accepted input |

            | --- | --- |

            | String length | `1` through `2048` characters |
          schema:
            type: string
            minLength: 1
            maxLength: 2048
        - name: after
          in: query
          required: false
          description: >-
            `page.followCursor` from an earlier page. Lists newer requests,
            oldest first, with the same filters. Cannot be combined with filters
            or `cursor`.


            <!-- polymorfa-input-table -->

            **Value constraints**

            | Constraint | Accepted input |

            | --- | --- |

            | String length | `1` through `2048` characters |
          schema:
            type: string
            minLength: 1
            maxLength: 2048
        - name: since
          in: query
          required: false
          description: |-
            Earliest request time. Requests older than 30 days are never listed.

            <!-- polymorfa-input-table -->
            **Value constraints**
            | Constraint | Accepted input |
            | --- | --- |
            | Format | `date-time` |
          schema:
            type: string
            format: date-time
        - name: until
          in: query
          required: false
          description: |-
            Latest request time.

            <!-- polymorfa-input-table -->
            **Value constraints**
            | Constraint | Accepted input |
            | --- | --- |
            | Format | `date-time` |
          schema:
            type: string
            format: date-time
        - name: status
          in: query
          required: false
          description: >-
            Comma-separated HTTP status codes or classes, for example `404,5xx`.


            <!-- polymorfa-input-table -->

            **Value constraints**

            | Constraint | Accepted input |

            | --- | --- |

            | Pattern |
            `^[1-5]([0-9]{2}\|[xX]{2})(,[1-5]([0-9]{2}\|[xX]{2})){0,9}$` |
          schema:
            type: string
            pattern: ^[1-5]([0-9]{2}|[xX]{2})(,[1-5]([0-9]{2}|[xX]{2})){0,9}$
        - name: method
          in: query
          required: false
          description: >-
            Comma-separated HTTP methods, for example `POST,DELETE`.


            <!-- polymorfa-input-table -->

            **Value constraints**

            | Constraint | Accepted input |

            | --- | --- |

            | Pattern |
            `^(GET\|POST\|PUT\|PATCH\|DELETE)(,(GET\|POST\|PUT\|PATCH\|DELETE)){0,9}$`
            |
          schema:
            type: string
            pattern: ^(GET|POST|PUT|PATCH|DELETE)(,(GET|POST|PUT|PATCH|DELETE)){0,9}$
        - name: route
          in: query
          required: false
          description: |-
            Exact route pattern, for example `/messaging/:session/messages`.

            <!-- polymorfa-input-table -->
            **Value constraints**
            | Constraint | Accepted input |
            | --- | --- |
            | String length | `1` through `256` characters |
          schema:
            type: string
            minLength: 1
            maxLength: 256
        - name: source
          in: query
          required: false
          description: >-
            `api` for direct API requests or `mcp` for requests made through
            MCP.


            <!-- polymorfa-input-table -->

            **Allowed values**

            | Value | Meaning |

            | --- | --- |

            | `api` | Api. |

            | `mcp` | Mcp. |
          schema:
            type: string
            enum:
              - api
              - mcp
        - name: credentialId
          in: query
          required: false
          description: |-
            ID of the team API key or project token that made the request.

            <!-- polymorfa-input-table -->
            **Value constraints**
            | Constraint | Accepted input |
            | --- | --- |
            | Format | `uuid` |
          schema:
            type: string
            format: uuid
        - name: requestId
          in: query
          required: false
          description: |-
            Request ID from the `X-Request-Id` response header.

            <!-- polymorfa-input-table -->
            **Value constraints**
            | Constraint | Accepted input |
            | --- | --- |
            | Pattern | `^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}$` |
          schema:
            type: string
            pattern: ^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}$
        - name: traceId
          in: query
          required: false
          description: >-
            W3C trace ID from the `X-Trace-Id` response header or your own
            `traceparent`. Matched case-insensitively.


            <!-- polymorfa-input-table -->

            **Value constraints**

            | Constraint | Accepted input |

            | --- | --- |

            | Pattern | `^[0-9a-fA-F]{32}$` |
          schema:
            type: string
            pattern: ^[0-9a-fA-F]{32}$
      responses:
        '200':
          description: Success
          headers:
            X-Request-Id:
              schema:
                type: string
              description: Stable request correlation identifier.
            X-Trace-Id:
              schema:
                type: string
                pattern: ^[0-9a-f]{32}$
              description: >-
                W3C trace ID of this request. Your `traceparent` trace ID when
                you sent a valid one.
            Polymorfa-Version:
              schema:
                type: string
              description: API version applied to this response.
          content:
            application/json:
              schema:
                type: object
                additionalProperties: false
                properties:
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/management__RequestLog'
                    description: Structured data carried by this object.
                  page:
                    allOf:
                      - $ref: >-
                          #/components/schemas/management__RequestLogPageMetadata
                    description: Specifies page for this schema.
                required:
                  - data
                  - page
        '400':
          $ref: '#/components/responses/management__BadRequest'
        '401':
          $ref: '#/components/responses/management__Unauthorized'
        '403':
          $ref: '#/components/responses/management__Forbidden'
        '404':
          $ref: '#/components/responses/management__NotFound'
        '429':
          $ref: '#/components/responses/management__RateLimited'
      security:
        - management__ApiKeyAuth: []
      servers:
        - url: https://api.polymorfa.com
components:
  schemas:
    management__RequestLog:
      type: object
      additionalProperties: false
      description: >-
        One API or MCP request. IP addresses, user agents, headers and bodies
        are never included.
      properties:
        id:
          type: string
          format: uuid
          description: |-
            Identifier for this resource.

            <!-- polymorfa-input-table -->
            **Value constraints**
            | Constraint | Accepted input |
            | --- | --- |
            | Format | `uuid` |
        projectId:
          type: string
          format: uuid
          description: |-
            Identifier of the Polymorfa project that owns this resource.

            <!-- polymorfa-input-table -->
            **Value constraints**
            | Constraint | Accepted input |
            | --- | --- |
            | Format | `uuid` |
        createdAt:
          type: string
          format: date-time
          description: |-
            When the request was recorded.

            <!-- polymorfa-input-table -->
            **Value constraints**
            | Constraint | Accepted input |
            | --- | --- |
            | Format | `date-time` |
        method:
          type: string
          description: HTTP method.
        route:
          type: string
          description: >-
            Matched route pattern, for example `/messaging/:session/messages`.
            Path values are not included.
        status:
          type: integer
          nullable: true
          description: |-
            HTTP response status.

            <!-- polymorfa-input-table -->
            **Accepted alternatives**
            | Alternative | Accepted input |
            | --- | --- |
            | Alternative 1 | Type: `integer` |
            | Alternative 2 | `null` |
        durationMs:
          type: integer
          nullable: true
          description: |-
            Specifies duration ms for this management request log.

            <!-- polymorfa-input-table -->
            **Accepted alternatives**
            | Alternative | Accepted input |
            | --- | --- |
            | Alternative 1 | Type: `integer` |
            | Alternative 2 | `null` |
        result:
          type: string
          enum:
            - success
            - failure
          description: |-
            `failure` for any status of 400 or above.

            <!-- polymorfa-input-table -->
            **Allowed values**
            | Value | Meaning |
            | --- | --- |
            | `success` | Success. |
            | `failure` | Failure. |
        source:
          type: string
          enum:
            - api
            - mcp
          description: |-
            Specifies source for this management request log.

            <!-- polymorfa-input-table -->
            **Allowed values**
            | Value | Meaning |
            | --- | --- |
            | `api` | Api. |
            | `mcp` | Mcp. |
        requestId:
          type: string
          nullable: true
          description: |-
            Value of the `X-Request-Id` response header.

            <!-- polymorfa-input-table -->
            **Accepted alternatives**
            | Alternative | Accepted input |
            | --- | --- |
            | Alternative 1 | Type: `string` |
            | Alternative 2 | `null` |
        traceId:
          type: string
          nullable: true
          pattern: ^[0-9a-f]{32}$
          description: >-
            W3C trace ID, also returned in the `X-Trace-Id` response header.
            When you send a valid `traceparent` header, this is your trace ID.


            <!-- polymorfa-input-table -->

            **Accepted alternatives**

            | Alternative | Accepted input |

            | --- | --- |

            | Alternative 1 | Type: `string`; Pattern: `^[0-9a-f]{32}$` |

            | Alternative 2 | `null` |


            **Value constraints**

            | Constraint | Accepted input |

            | --- | --- |

            | Pattern | `^[0-9a-f]{32}$` |
        errorCode:
          type: string
          nullable: true
          description: |-
            Error code from the response body of a failed request.

            <!-- polymorfa-input-table -->
            **Accepted alternatives**
            | Alternative | Accepted input |
            | --- | --- |
            | Alternative 1 | Type: `string` |
            | Alternative 2 | `null` |
        mcpTool:
          type: string
          nullable: true
          description: |-
            MCP tool name for requests made through MCP.

            <!-- polymorfa-input-table -->
            **Accepted alternatives**
            | Alternative | Accepted input |
            | --- | --- |
            | Alternative 1 | Type: `string` |
            | Alternative 2 | `null` |
        credential:
          type: object
          nullable: true
          additionalProperties: false
          description: >-
            Credential that made the request. Client tokens have no listed
            record, so their `id` and `last4` are null. Null when the key or
            token no longer exists.


            <!-- polymorfa-input-table -->

            **Accepted alternatives**

            | Alternative | Accepted input |

            | --- | --- |

            | Alternative 1 | Type: `object`; Field `type`: `team_key` or
            `project_token` or `client_token`; Required fields: `type`, `id`,
            `last4` |

            | Alternative 2 | `null` |
          properties:
            type:
              type: string
              enum:
                - team_key
                - project_token
                - client_token
              description: |-
                Type discriminator for this object.

                <!-- polymorfa-input-table -->
                **Allowed values**
                | Value | Meaning |
                | --- | --- |
                | `team_key` | Team key. |
                | `project_token` | Project token. |
                | `client_token` | Client token. |
            id:
              type: string
              format: uuid
              nullable: true
              description: |-
                Identifier for this resource.

                <!-- polymorfa-input-table -->
                **Accepted alternatives**
                | Alternative | Accepted input |
                | --- | --- |
                | Alternative 1 | Type: `string`; Format: `uuid` |
                | Alternative 2 | `null` |

                **Value constraints**
                | Constraint | Accepted input |
                | --- | --- |
                | Format | `uuid` |
            last4:
              type: string
              nullable: true
              description: |-
                Specifies last4 for this credential.

                <!-- polymorfa-input-table -->
                **Accepted alternatives**
                | Alternative | Accepted input |
                | --- | --- |
                | Alternative 1 | Type: `string` |
                | Alternative 2 | `null` |
          required:
            - type
            - id
            - last4
      required:
        - id
        - projectId
        - createdAt
        - method
        - route
        - status
        - durationMs
        - result
        - source
        - requestId
        - traceId
        - errorCode
        - mcpTool
        - credential
    management__RequestLogPageMetadata:
      type: object
      additionalProperties: false
      properties:
        nextCursor:
          type: string
          nullable: true
          description: |-
            Pass as `cursor` to list older requests.

            <!-- polymorfa-input-table -->
            **Accepted alternatives**
            | Alternative | Accepted input |
            | --- | --- |
            | Alternative 1 | Type: `string` |
            | Alternative 2 | `null` |
        hasMore:
          type: boolean
          description: Whether more.
        followCursor:
          type: string
          description: >-
            Pass as `after` to list requests newer than this page. Valid for 24
            hours.
      required:
        - nextCursor
        - hasMore
        - followCursor
    management__ErrorEnvelope:
      type: object
      required:
        - error
        - data
        - docs
      properties:
        error:
          type: object
          required:
            - type
            - code
            - message
            - param
            - request_id
          properties:
            type:
              type: string
              enum:
                - invalid_request_error
                - authentication_error
                - permission_error
                - conflict_error
                - rate_limit_error
                - api_error
                - upstream_error
              description: |-
                Type discriminator for this object.

                <!-- polymorfa-input-table -->
                **Allowed values**
                | Value | Meaning |
                | --- | --- |
                | `invalid_request_error` | Invalid request error. |
                | `authentication_error` | Authentication error. |
                | `permission_error` | Permission error. |
                | `conflict_error` | Conflict error. |
                | `rate_limit_error` | Rate limit error. |
                | `api_error` | Api error. |
                | `upstream_error` | Upstream error. |
            code:
              type: string
              description: Stable failure code. Use this value for programmatic handling.
            message:
              type: string
              description: Safe explanation of the failure.
            param:
              type: string
              nullable: true
              description: |-
                Invalid request field, or null when no field applies.

                <!-- polymorfa-input-table -->
                **Accepted alternatives**
                | Alternative | Accepted input |
                | --- | --- |
                | Alternative 1 | Type: `string` |
                | Alternative 2 | `null` |
            request_id:
              type: string
              description: >-
                Matches the X-Request-Id response header. Include it when you
                contact support.
            request_log_url:
              type: string
              format: uri
              description: >-
                Console page that shows this request. Returned only to
                organization and project credentials whose request was logged.


                <!-- polymorfa-input-table -->

                **Value constraints**

                | Constraint | Accepted input |

                | --- | --- |

                | Format | `uri` |
          description: Error details returned when the operation fails.
        data:
          type: string
          nullable: true
          enum:
            - null
          description: |-
            Always null for a failed request.

            <!-- polymorfa-input-table -->
            **Allowed values**
            | Value | Meaning |
            | --- | --- |
            | `null` | Null. |

            **Accepted alternatives**
            | Alternative | Accepted input |
            | --- | --- |
            | Alternative 1 | Type: `string` |
            | Alternative 2 | `null` |
        docs:
          type: string
          format: uri
          description: |-
            Documentation link to this failure code.

            <!-- polymorfa-input-table -->
            **Value constraints**
            | Constraint | Accepted input |
            | --- | --- |
            | Format | `uri` |
  responses:
    management__BadRequest:
      description: A path, query, or request-body value did not pass validation.
      headers:
        X-Request-Id:
          schema:
            type: string
          description: Stable request correlation identifier.
        X-Trace-Id:
          schema:
            type: string
            pattern: ^[0-9a-f]{32}$
          description: >-
            W3C trace ID of this request. Your `traceparent` trace ID when you
            sent a valid one.
        Polymorfa-Version:
          schema:
            type: string
          description: API version applied to this response.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/management__ErrorEnvelope'
    management__Unauthorized:
      description: Missing/invalid credential for this audience.
      headers:
        X-Request-Id:
          schema:
            type: string
          description: Stable request correlation identifier.
        X-Trace-Id:
          schema:
            type: string
            pattern: ^[0-9a-f]{32}$
          description: >-
            W3C trace ID of this request. Your `traceparent` trace ID when you
            sent a valid one.
        Polymorfa-Version:
          schema:
            type: string
          description: API version applied to this response.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/management__ErrorEnvelope'
    management__Forbidden:
      description: Authenticated but lacks the required scope/role/audience.
      headers:
        X-Request-Id:
          schema:
            type: string
          description: Stable request correlation identifier.
        X-Trace-Id:
          schema:
            type: string
            pattern: ^[0-9a-f]{32}$
          description: >-
            W3C trace ID of this request. Your `traceparent` trace ID when you
            sent a valid one.
        Polymorfa-Version:
          schema:
            type: string
          description: API version applied to this response.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/management__ErrorEnvelope'
    management__NotFound:
      description: >-
        The requested resource was not found inside the authenticated team or
        project scope.
      headers:
        X-Request-Id:
          schema:
            type: string
          description: Stable request correlation identifier.
        X-Trace-Id:
          schema:
            type: string
            pattern: ^[0-9a-f]{32}$
          description: >-
            W3C trace ID of this request. Your `traceparent` trace ID when you
            sent a valid one.
        Polymorfa-Version:
          schema:
            type: string
          description: API version applied to this response.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/management__ErrorEnvelope'
    management__RateLimited:
      description: A limit was reached. Wait for `Retry-After` before retrying.
      headers:
        X-Request-Id:
          schema:
            type: string
          description: Stable request correlation identifier.
        X-Trace-Id:
          schema:
            type: string
            pattern: ^[0-9a-f]{32}$
          description: >-
            W3C trace ID of this request. Your `traceparent` trace ID when you
            sent a valid one.
        Polymorfa-Version:
          schema:
            type: string
          description: API version applied to this response.
        Retry-After:
          schema:
            type: integer
            minimum: 1
          description: Seconds to wait before retrying.
        Polymorfa-RateLimit-Reason:
          schema:
            type: string
          description: >-
            The limit that was reached. See the rate-limit reasons in the error
            reference.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/management__ErrorEnvelope'
  securitySchemes:
    management__ApiKeyAuth:
      type: http
      scheme: bearer
      description: >-
        Send your team API key or project token as `Authorization: Bearer
        <token>`. The credential must have the required permissions. Project
        tokens can access only their own project.

````

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