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

# Redeem Admin Handoff

> Exchange an Admin handoff code for a platform session.

The code is spent before the live authority is re-read, so a refusal cannot
reopen it. A browser that already holds another User's platform session gets
409 and nothing changes; there is no way to override that.



## OpenAPI

````yaml /openapi/mio-openapi.json post /api/v1/auth/admin-handoff/redeem
openapi: 3.1.0
info:
  description: >-
    Production API reference for Membership.io. Use the authored guides for
    workflows and the generated endpoint pages for exact parameters and schemas.
  title: Membership.io API
  version: 0.1.0
servers:
  - description: Production
    url: https://api.member.dev
security:
  - bearerAuth: []
paths:
  /api/v1/auth/admin-handoff/redeem:
    post:
      tags:
        - auth
      summary: Redeem Admin Handoff
      description: >-
        Exchange an Admin handoff code for a platform session.


        The code is spent before the live authority is re-read, so a refusal
        cannot

        reopen it. A browser that already holds another User's platform session
        gets

        409 and nothing changes; there is no way to override that.
      operationId: auth.post_auth_post_auth_admin_handoff_redeem
      requestBody:
        content:
          application/vnd.api+json:
            schema:
              $ref: '#/components/schemas/AdminHandoffRedeemEnvelope'
        required: true
      responses:
        '200':
          content:
            application/vnd.api+json:
              schema:
                $ref: '#/components/schemas/AdminHandoffRedeemResponse'
          description: Successful Response
        '422':
          content:
            application/vnd.api+json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
components:
  schemas:
    AdminHandoffRedeemEnvelope:
      additionalProperties: false
      properties:
        data:
          $ref: '#/components/schemas/AdminHandoffRedeemRequestResource'
      required:
        - data
      title: AdminHandoffRedeemEnvelope
      type: object
    AdminHandoffRedeemResponse:
      additionalProperties: false
      properties:
        data:
          $ref: '#/components/schemas/AdminHandoffRedeemResource'
      required:
        - data
      title: AdminHandoffRedeemResponse
      type: object
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Detail
          type: array
      title: HTTPValidationError
      type: object
    AdminHandoffRedeemRequestResource:
      additionalProperties: false
      properties:
        attributes:
          $ref: '#/components/schemas/_AdminHandoffRedeemRequestAttributes'
        type:
          const: admin_handoff_redemptions
          title: Type
          type: string
      required:
        - type
        - attributes
      title: AdminHandoffRedeemRequestResource
      type: object
    AdminHandoffRedeemResource:
      additionalProperties: false
      properties:
        attributes:
          $ref: '#/components/schemas/AdminHandoffRedeemAttributes'
        id:
          title: Id
          type: string
        type:
          const: token_pairs
          default: token_pairs
          title: Type
          type: string
      required:
        - id
        - attributes
      title: AdminHandoffRedeemResource
      type: object
    ValidationError:
      properties:
        ctx:
          title: Context
          type: object
        input:
          title: Input
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          title: Location
          type: array
        msg:
          title: Message
          type: string
        type:
          title: Error Type
          type: string
      required:
        - loc
        - msg
        - type
      title: ValidationError
      type: object
    _AdminHandoffRedeemRequestAttributes:
      properties:
        code:
          maxLength: 128
          minLength: 1
          title: Code
          type: string
        code_verifier:
          pattern: ^[A-Za-z0-9_-]{43,128}$
          title: Code Verifier
          type: string
        state:
          pattern: ^[A-Za-z0-9_-]{43}$
          title: State
          type: string
      required:
        - code
        - state
        - code_verifier
      title: _AdminHandoffRedeemRequestAttributes
      type: object
    AdminHandoffRedeemAttributes:
      additionalProperties: false
      properties:
        access_token:
          title: Access Token
          type: string
        destination_path:
          title: Destination Path
          type: string
        expires_in:
          title: Expires In
          type: integer
        refresh_token:
          title: Refresh Token
          type: string
        token_type:
          title: Token Type
          type: string
      required:
        - access_token
        - refresh_token
        - token_type
        - expires_in
        - destination_path
      title: AdminHandoffRedeemAttributes
      type: object
  securitySchemes:
    bearerAuth:
      bearerFormat: JWT or mio_sk API key
      description: >-
        Send platform JWTs, contact JWTs, or team API keys as `Authorization:
        Bearer <token>`.
      scheme: bearer
      type: http

````

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