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

# End user session

> Ends the user's Endaoment browser session (OpenID Connect end-session / logout).

Redirect the user's browser here when they sign out of your application. Optionally pass `post_logout_redirect_uri` to return the user to your app after logout.



## OpenAPI

````yaml https://api.endaoment.org/oas-json get /session/end
openapi: 3.0.0
info:
  title: Endaoment API
  description: >-
    The official Endaoment API endpoints. Dev (canary) = newest features;
    Staging (stable) = pre-production.
  version: 0.0.0-dev
  contact: {}
servers:
  - url: https://api.endaoment.org
    description: Production
security: []
tags:
  - name: Partner Endpoints
    description: Tech-platform partner server-to-server APIs
  - name: Authentication
    description: OAuth callers, API keys, and session verification
  - name: Funds
    description: Donor-advised fund lifecycle
  - name: Donations
    description: Donation pledges, supported assets, and impact totals
  - name: Portfolios
    description: Investment portfolio catalog
  - name: Nonprofit Organizations
    description: Nonprofit lookup, subprojects, and missing-org intake
  - name: Grant Transfers
    description: Grant and entity transfers
  - name: Collaboration
    description: Collaborator recommendations and fund collaboration
  - name: Activity
    description: Public and scoped activity feeds
paths:
  /session/end:
    servers:
      - url: https://auth.endaoment.org
        description: Production
      - url: https://auth.dev.endaoment.org
        description: Development
      - url: https://auth.staging.endaoment.org
        description: Staging
    get:
      tags:
        - Authentication
      summary: End user session
      description: >-
        Ends the user's Endaoment browser session (OpenID Connect end-session /
        logout).


        Redirect the user's browser here when they sign out of your application.
        Optionally pass `post_logout_redirect_uri` to return the user to your
        app after logout.
      operationId: OAuthController_endSession
      parameters:
        - name: id_token_hint
          in: query
          required: false
          schema:
            type: string
          description: >-
            ID token previously issued to the user. Helps Endaoment identify
            which session to end.
        - name: post_logout_redirect_uri
          in: query
          required: false
          schema:
            type: string
            format: uri
          description: Registered URL to redirect the user after logout completes.
          example: http://localhost:5454/logged-out
        - name: state
          in: query
          required: false
          schema:
            type: string
          description: Opaque value returned to your app on the post-logout redirect.
      responses:
        '302':
          description: >-
            Redirect to Endaoment logout confirmation or to
            `post_logout_redirect_uri`
        '400':
          description: Invalid logout parameters

````