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

# Create cross-domain auth handoff redirect

> Creates a one-time OAuth authorization code redirect for cross-domain sign-in handoff using PKCE.



## OpenAPI

````yaml /openapi/client.json post /auth/oauth/cross-domain/authorize
openapi: 3.1.0
info:
  title: Hexclave REST API
  version: 1.0.0
  description: >-
    The Hexclave REST API. All request headers are documented as canonical
    `X-Hexclave-*`; the equivalent `X-Stack-*` aliases are accepted on every
    endpoint for backwards compatibility. Response headers
    `X-Hexclave-actual-status`, `X-Hexclave-known-error`, and
    `X-Hexclave-request-id` are emitted alongside their legacy `X-Stack-*`
    equivalents.
servers:
  - url: https://api.hexclave.com/api/v1
    description: Hexclave REST API
security: []
paths:
  /auth/oauth/cross-domain/authorize:
    post:
      tags:
        - Oauth
      summary: Create cross-domain auth handoff redirect
      description: >-
        Creates a one-time OAuth authorization code redirect for cross-domain
        sign-in handoff using PKCE.
      parameters:
        - name: x-stack-publishable-client-key
          in: header
          schema:
            type: string
          required: true
        - name: x-stack-refresh-token
          in: header
          schema:
            type: string
          required: true
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                redirect_uri:
                  type: string
                state:
                  type: string
                code_challenge:
                  type: string
                code_challenge_method:
                  type: string
                  enum:
                    - S256
                  default: S256
                after_callback_redirect_url:
                  type: string
              required:
                - redirect_uri
                - state
                - code_challenge
              example: {}
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties:
                  redirect_url:
                    type: string
                required:
                  - redirect_url

````