> ## 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 Hub Handoff

> Mint a code for a registered hub browser and the User who launched it.



## OpenAPI

````yaml /openapi/mio-openapi.json post /api/v1/contact-auth/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/handoff/mint:
    post:
      tags:
        - contact-auth
      summary: Mint Hub Handoff
      description: Mint a code for a registered hub browser and the User who launched it.
      operationId: contact_auth.post_contact_auth_post_contact_auth_handoff_mint
      requestBody:
        content:
          application/vnd.api+json:
            schema:
              $ref: '#/components/schemas/HubHandoffMintEnvelope'
        required: true
      responses:
        '200':
          content:
            application/vnd.api+json:
              schema:
                $ref: '#/components/schemas/HubHandoffMintResponse'
          description: Successful Response
        '422':
          content:
            application/vnd.api+json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
      security:
        - HTTPBearer: []
components:
  schemas:
    HubHandoffMintEnvelope:
      additionalProperties: false
      properties:
        data:
          $ref: '#/components/schemas/HubHandoffMintRequestResource'
      required:
        - data
      title: HubHandoffMintEnvelope
      type: object
    HubHandoffMintResponse:
      additionalProperties: false
      properties:
        data:
          $ref: '#/components/schemas/HubHandoffMintResource'
      required:
        - data
      title: HubHandoffMintResponse
      type: object
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Detail
          type: array
      title: HTTPValidationError
      type: object
    HubHandoffMintRequestResource:
      additionalProperties: false
      properties:
        attributes:
          $ref: '#/components/schemas/_HubHandoffMintRequestAttributes'
        type:
          const: hub_handoff_requests
          title: Type
          type: string
      required:
        - type
        - attributes
      title: HubHandoffMintRequestResource
      type: object
    HubHandoffMintResource:
      additionalProperties: false
      properties:
        attributes:
          $ref: '#/components/schemas/HubHandoffMintAttributes'
        id:
          title: Id
          type: string
        type:
          const: hub_handoff_codes
          default: hub_handoff_codes
          title: Type
          type: string
      required:
        - id
        - attributes
      title: HubHandoffMintResource
      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
    _HubHandoffMintRequestAttributes:
      additionalProperties: false
      properties:
        destination_path:
          anyOf:
            - maxLength: 2048
              type: string
            - type: 'null'
          deprecated: true
          title: Destination Path
        hub_id:
          anyOf:
            - maxLength: 36
              type: string
            - type: 'null'
          deprecated: true
          title: Hub Id
        launch_id:
          anyOf:
            - pattern: ^[A-Za-z0-9_-]{43}$
              type: string
            - type: 'null'
          title: Launch Id
        purpose:
          anyOf:
            - maxLength: 16
              type: string
            - type: 'null'
          deprecated: true
          title: Purpose
        request_id:
          anyOf:
            - pattern: ^[A-Za-z0-9_-]{43}$
              type: string
            - type: 'null'
          title: Request Id
      title: _HubHandoffMintRequestAttributes
      type: object
    HubHandoffMintAttributes:
      additionalProperties: false
      properties:
        code:
          title: Code
          type: string
        expires_at:
          format: date-time
          title: Expires At
          type: string
        handoff_url:
          title: Handoff Url
          type: string
        purpose:
          enum:
            - view
            - preview
          title: Purpose
          type: string
        target_origin:
          title: Target Origin
          type: string
      required:
        - code
        - expires_at
        - target_origin
        - handoff_url
        - purpose
      title: HubHandoffMintAttributes
      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.