> ## 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.

# Mint Admin Handoff

> Mint the one-use code that signs the hub owner in to Admin.

Spends the Admin browser's challenge, then checks that the launching tab, the
launching Contact and User, and the hub's address all match the launch. The
live owner authority is re-read in the same transaction as the write.



## OpenAPI

````yaml /openapi/mio-openapi.json post /api/v1/contact-auth/admin-handoff/mint
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/contact-auth/admin-handoff/mint:
    post:
      tags:
        - contact-auth
      summary: Mint Admin Handoff
      description: >-
        Mint the one-use code that signs the hub owner in to Admin.


        Spends the Admin browser's challenge, then checks that the launching
        tab, the

        launching Contact and User, and the hub's address all match the launch.
        The

        live owner authority is re-read in the same transaction as the write.
      operationId: contact_auth.post_contact_auth_post_contact_auth_admin_handoff_mint
      requestBody:
        content:
          application/vnd.api+json:
            schema:
              $ref: '#/components/schemas/AdminHandoffMintEnvelope'
        required: true
      responses:
        '200':
          content:
            application/vnd.api+json:
              schema:
                $ref: '#/components/schemas/AdminHandoffMintResponse'
          description: Successful Response
        '422':
          content:
            application/vnd.api+json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
      security:
        - HTTPBearer: []
components:
  schemas:
    AdminHandoffMintEnvelope:
      additionalProperties: false
      properties:
        data:
          $ref: '#/components/schemas/AdminHandoffMintRequestResource'
      required:
        - data
      title: AdminHandoffMintEnvelope
      type: object
    AdminHandoffMintResponse:
      additionalProperties: false
      properties:
        data:
          $ref: '#/components/schemas/AdminHandoffMintResource'
      required:
        - data
      title: AdminHandoffMintResponse
      type: object
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Detail
          type: array
      title: HTTPValidationError
      type: object
    AdminHandoffMintRequestResource:
      additionalProperties: false
      properties:
        attributes:
          $ref: '#/components/schemas/_AdminHandoffMintRequestAttributes'
        type:
          const: admin_handoff_requests
          title: Type
          type: string
      required:
        - type
        - attributes
      title: AdminHandoffMintRequestResource
      type: object
    AdminHandoffMintResource:
      additionalProperties: false
      properties:
        attributes:
          $ref: '#/components/schemas/AdminHandoffMintAttributes'
        id:
          title: Id
          type: string
        type:
          const: admin_handoff_codes
          default: admin_handoff_codes
          title: Type
          type: string
      required:
        - id
        - attributes
      title: AdminHandoffMintResource
      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
    _AdminHandoffMintRequestAttributes:
      additionalProperties: false
      properties:
        launch_id:
          pattern: ^[A-Za-z0-9_-]{43}$
          title: Launch Id
          type: string
        request_id:
          pattern: ^[A-Za-z0-9_-]{43}$
          title: Request Id
          type: string
      required:
        - launch_id
        - request_id
      title: _AdminHandoffMintRequestAttributes
      type: object
    AdminHandoffMintAttributes:
      additionalProperties: false
      properties:
        admin_return_url:
          title: Admin Return Url
          type: string
        code:
          title: Code
          type: string
        expires_at:
          format: date-time
          title: Expires At
          type: string
      required:
        - code
        - expires_at
        - admin_return_url
      title: AdminHandoffMintAttributes
      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
    HTTPBearer:
      scheme: bearer
      type: http

````

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