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

# Handle OAuth Redirect



## OpenAPI

````yaml /openapi/rollout.json get /oauth/redirect
openapi: 3.1.2
info:
  title: Universal API Documentation
  description: Development documentation
  version: '1.0'
servers:
  - url: https://universal.rollout.com/api
security: []
paths:
  /oauth/redirect:
    get:
      summary: Handle OAuth Redirect
      operationId: getOauthRedirect
      parameters:
        - name: state
          in: query
          required: true
          schema:
            type: string
      responses:
        '200':
          description: >-
            A page that posts the outcome to the window that opened it and
            closes, or, with no opener, redirects to the return URI
          content:
            text/html:
              schema:
                type: string
        '400':
          description: >-
            The state doesn't decrypt: the sign-in link is invalid or was
            started from another environment
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    enum:
                      - invalid_state
                  message:
                    type: string
                required:
                  - error
                  - message

````

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