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

# GET /portal/api/requests



## OpenAPI

````yaml /generated/openapi.json get /portal/api/requests
openapi: 3.1.0
info:
  description: >-
    Forwarding, management, portal and OAuth APIs generated from Rust types.
    Input and output schemas preserve their respective Serde contracts.
    Streaming events and WebSocket messages are documented alongside HTTP
    payloads.
  title: GPROXY HTTP API
  version: 4.2.1
servers: []
security:
  - bearer: []
  - anthropicKey: []
  - googleKey: []
  - queryKey: []
paths:
  /portal/api/requests:
    get:
      tags:
        - Portal
      summary: GET /portal/api/requests
      parameters: []
      responses:
        '200':
          content:
            application/json:
              schema:
                items:
                  $ref: '#/components/schemas/Output_PortalRequestDto'
                type: array
          description: Success
        default:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Output_Envelope'
          description: Gateway error
      security:
        - consoleSession: []
        - bearer: []
        - anthropicKey: []
        - googleKey: []
components:
  schemas:
    Output_PortalRequestDto:
      description: >-
        One of the caller's own recent requests, reduced.


        What is missing is the point: no bodies, no headers, no URL, no client

        address, no credential id, and no provider id — only the provider's
        display

        name, and only when it still exists. See the module note on

        [`Portal::recent_requests`](crate::operations::Portal::recent_requests).
      properties:
        apiKeyId:
          description: The caller's own key that made the request, when one did.
          type:
            - string
            - 'null'
        durationMs:
          description: End minus start, when the request has ended.
          format: int64
          type:
            - integer
            - 'null'
        endedAtMs:
          format: int64
          type:
            - integer
            - 'null'
        model:
          description: The name the client asked for.
          type:
            - string
            - 'null'
        operation:
          type:
            - string
            - 'null'
        provider:
          description: The upstream's display name. Never its id, never its credential.
          type:
            - string
            - 'null'
        requestId:
          type: string
        responseStatus:
          format: int32
          type:
            - integer
            - 'null'
        startedAtMs:
          format: int64
          type: integer
        state:
          description: |-
            `in_progress`, `completed`, `failed` or `cancelled`. Capture
            completeness, not the upstream's verdict.
          type: string
      required:
        - requestId
        - apiKeyId
        - model
        - operation
        - provider
        - responseStatus
        - state
        - startedAtMs
        - endedAtMs
        - durationMs
      type: object
    Output_Envelope:
      properties:
        error:
          $ref: '#/components/schemas/Output_EnvelopeBody'
      required:
        - error
      type: object
    Output_EnvelopeBody:
      properties:
        code:
          type: string
        message:
          type: string
      required:
        - code
        - message
      type: object
  securitySchemes:
    bearer:
      scheme: bearer
      type: http
    anthropicKey:
      in: header
      name: x-api-key
      type: apiKey
    googleKey:
      in: header
      name: x-goog-api-key
      type: apiKey
    queryKey:
      in: query
      name: key
      type: apiKey
    consoleSession:
      in: cookie
      name: gproxy_session
      type: apiKey

````

## Related topics

- [GET /portal/api/context](https://gproxy.leenhawk.com/api-reference/portal/get-portalapicontext.md)
- [GET /portal/api/usage](https://gproxy.leenhawk.com/api-reference/portal/get-portalapiusage.md)
- [GET /portal/api/keys](https://gproxy.leenhawk.com/api-reference/portal/get-portalapikeys.md)
- [GET /portal/api/models](https://gproxy.leenhawk.com/api-reference/portal/get-portalapimodels.md)
- [GET /portal/api/quota](https://gproxy.leenhawk.com/api-reference/portal/get-portalapiquota.md)


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