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

> Exchange a handoff code for a Contact token pair; never invokes provisioning flows.



## OpenAPI

````yaml /openapi/mio-openapi.json post /api/v1/contact-auth/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/contact-auth/handoff/redeem:
    post:
      tags:
        - contact-auth
      summary: Redeem Hub Handoff
      description: >-
        Exchange a handoff code for a Contact token pair; never invokes
        provisioning flows.
      operationId: contact_auth.post_contact_auth_post_contact_auth_handoff_redeem
      requestBody:
        content:
          application/vnd.api+json:
            schema:
              $ref: '#/components/schemas/HubHandoffRedeemEnvelope'
        required: true
      responses:
        '200':
          content:
            application/vnd.api+json:
              schema:
                $ref: '#/components/schemas/HubHandoffRedeemResponse'
          description: Successful Response
        '422':
          content:
            application/vnd.api+json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
components:
  schemas:
    HubHandoffRedeemEnvelope:
      additionalProperties: false
      properties:
        data:
          $ref: '#/components/schemas/HubHandoffRedeemRequestResource'
      required:
        - data
      title: HubHandoffRedeemEnvelope
      type: object
    HubHandoffRedeemResponse:
      additionalProperties: false
      properties:
        data:
          $ref: '#/components/schemas/HubHandoffRedeemResource'
      required:
        - data
      title: HubHandoffRedeemResponse
      type: object
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Detail
          type: array
      title: HTTPValidationError
      type: object
    HubHandoffRedeemRequestResource:
      additionalProperties: false
      properties:
        attributes:
          $ref: '#/components/schemas/_HubHandoffRedeemRequestAttributes'
        type:
          const: hub_handoff_redemptions
          title: Type
          type: string
      required:
        - type
        - attributes
      title: HubHandoffRedeemRequestResource
      type: object
    HubHandoffRedeemResource:
      additionalProperties: false
      properties:
        attributes:
          $ref: '#/components/schemas/HubHandoffRedeemAttributes'
        id:
          title: Id
          type: string
        type:
          const: token_pairs
          default: token_pairs
          title: Type
          type: string
      required:
        - id
        - attributes
      title: HubHandoffRedeemResource
      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
    _HubHandoffRedeemRequestAttributes:
      additionalProperties: false
      properties:
        code:
          maxLength: 512
          minLength: 1
          title: Code
          type: string
        code_verifier:
          pattern: ^[A-Za-z0-9_-]{43,128}$
          title: Code Verifier
          type: string
        replace_session:
          anyOf:
            - $ref: '#/components/schemas/HubHandoffSessionAcknowledgement'
            - type: 'null'
          description: >-
            Send only after the person agrees to replace the Contact session
            this browser holds. Echo exactly errors[0].meta.current_session from
            the 409 hub_handoff_session_replacement_required answer.
        state:
          pattern: ^[A-Za-z0-9_-]{43}$
          title: State
          type: string
      required:
        - code
        - state
        - code_verifier
      title: _HubHandoffRedeemRequestAttributes
      type: object
    HubHandoffRedeemAttributes:
      additionalProperties: false
      properties:
        access_token:
          title: Access Token
          type: string
        destination_path:
          title: Destination Path
          type: string
        expires_in:
          title: Expires In
          type: integer
        purpose:
          enum:
            - view
            - preview
          title: Purpose
          type: string
        refresh_token:
          title: Refresh Token
          type: string
        token_type:
          const: bearer
          default: bearer
          title: Token Type
          type: string
      required:
        - access_token
        - refresh_token
        - expires_in
        - destination_path
        - purpose
      title: HubHandoffRedeemAttributes
      type: object
    HubHandoffSessionAcknowledgement:
      additionalProperties: false
      properties:
        contact_id:
          maxLength: 36
          minLength: 1
          title: Contact Id
          type: string
        token_version:
          minimum: 0
          title: Token Version
          type: integer
      required:
        - contact_id
        - token_version
      title: HubHandoffSessionAcknowledgement
      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.