> ## 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/oauth-sessions



## OpenAPI

````yaml /generated/openapi.json get /portal/api/oauth-sessions
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/oauth-sessions:
    get:
      tags:
        - Portal
      summary: GET /portal/api/oauth-sessions
      parameters: []
      responses:
        '200':
          content:
            application/json:
              schema:
                items:
                  $ref: '#/components/schemas/Output_PortalOAuthSessionDto'
                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_PortalOAuthSessionDto:
      description: One live authorization the caller granted to a third-party client.
      properties:
        clientId:
          type: string
        clientName:
          description: >-
            The client's registered display name, or None when the registration
            is

            gone.
          type:
            - string
            - 'null'
        createdAtMs:
          format: int64
          type: integer
        id:
          type: string
        lastRefreshedAtMs:
          format: int64
          type:
            - integer
            - 'null'
        loggedInAtMs:
          description: >-
            The first successful token exchange. None means consent was given
            but

            the client never completed the login.
          format: int64
          type:
            - integer
            - 'null'
        refreshCount:
          format: int64
          type: integer
        refreshExpiresAtMs:
          format: int64
          type:
            - integer
            - 'null'
        scopes:
          description: The scopes this grant carries, as granted.
          items:
            type: string
          type: array
      required:
        - id
        - clientId
        - clientName
        - scopes
        - createdAtMs
        - loggedInAtMs
        - lastRefreshedAtMs
        - refreshCount
        - refreshExpiresAtMs
      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

- [DELETE /portal/api/oauth-sessions/{id}](https://gproxy.leenhawk.com/api-reference/portal/delete-portalapioauth-sessions.md)
- [GET /portal/api/sessions](https://gproxy.leenhawk.com/api-reference/portal/get-portalapisessions.md)
- [GET /portal/api/oauth/device](https://gproxy.leenhawk.com/api-reference/portal/get-portalapioauthdevice.md)
- [GET /portal/api/context](https://gproxy.leenhawk.com/api-reference/portal/get-portalapicontext.md)
- [GET /portal/api/keys](https://gproxy.leenhawk.com/api-reference/portal/get-portalapikeys.md)


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