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

# Reset Password

> Consume a password_reset link, set new password, return fresh tokens.



## OpenAPI

````yaml /openapi/mio-openapi.json post /api/v1/contact-auth/reset
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/reset:
    post:
      tags:
        - contact-auth
      summary: Reset Password
      description: Consume a password_reset link, set new password, return fresh tokens.
      operationId: contact_auth.post_contact_auth_post_contact_auth_reset
      parameters:
        - in: header
          name: User-Agent
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: User-Agent
      requestBody:
        content:
          application/vnd.api+json:
            schema:
              $ref: '#/components/schemas/PasswordResetRequestEnvelope'
        required: true
      responses:
        '200':
          content:
            application/vnd.api+json:
              schema:
                $ref: '#/components/schemas/TokenPairResponse'
          description: Successful Response
        '422':
          content:
            application/vnd.api+json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
components:
  schemas:
    PasswordResetRequestEnvelope:
      additionalProperties: false
      properties:
        data:
          $ref: '#/components/schemas/PasswordResetResource'
      required:
        - data
      title: PasswordResetRequestEnvelope
      type: object
    TokenPairResponse:
      additionalProperties: false
      properties:
        data:
          $ref: '#/components/schemas/TokenPairResource'
      required:
        - data
      title: TokenPairResponse
      type: object
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Detail
          type: array
      title: HTTPValidationError
      type: object
    PasswordResetResource:
      additionalProperties: false
      properties:
        attributes:
          $ref: '#/components/schemas/PasswordResetAttributes'
        type:
          const: password_resets
          title: Type
          type: string
      required:
        - type
        - attributes
      title: PasswordResetResource
      type: object
    TokenPairResource:
      additionalProperties: false
      properties:
        attributes:
          $ref: '#/components/schemas/TokenPairAttributes'
        id:
          title: Id
          type: string
        type:
          const: token_pairs
          default: token_pairs
          title: Type
          type: string
      required:
        - id
        - attributes
      title: TokenPairResource
      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
    PasswordResetAttributes:
      additionalProperties: false
      properties:
        new_password:
          maxLength: 4096
          minLength: 8
          title: New Password
          type: string
        token:
          maxLength: 512
          minLength: 1
          title: Token
          type: string
      required:
        - token
        - new_password
      title: PasswordResetAttributes
      type: object
    TokenPairAttributes:
      additionalProperties: false
      properties:
        access_token:
          title: Access Token
          type: string
        expires_in:
          title: Expires In
          type: integer
        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
      title: TokenPairAttributes
      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

````