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

# Read-only delete-account preview



## OpenAPI

````yaml /openapi/mio-openapi.json get /api/v1/contact-auth/me/hubs/{hub_id}/delete-account
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/me/hubs/{hub_id}/delete-account:
    get:
      tags:
        - hub-memberships
      summary: Read-only delete-account preview
      operationId: >-
        hub_memberships.get_hub_memberships_get_contact_auth_me_hubs_by_hub_id_delete_account
      parameters:
        - in: path
          name: hub_id
          required: true
          schema:
            title: Hub Id
            type: string
      responses:
        '200':
          content:
            application/vnd.api+json:
              schema:
                $ref: '#/components/schemas/AccountDeletionPreviewResponse'
          description: Successful Response
        '422':
          content:
            application/vnd.api+json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
      security:
        - HTTPBearer: []
components:
  schemas:
    AccountDeletionPreviewResponse:
      properties:
        data:
          $ref: '#/components/schemas/AccountDeletionPreviewResource'
        included:
          anyOf:
            - items: {}
              type: array
            - type: 'null'
          title: Included
        links:
          anyOf:
            - $ref: '#/components/schemas/JsonApiLinks'
            - type: 'null'
        meta:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Meta
      required:
        - data
      title: AccountDeletionPreviewResponse
      type: object
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Detail
          type: array
      title: HTTPValidationError
      type: object
    AccountDeletionPreviewResource:
      description: |-
        JSON:API resource object for the delete-account preview.

        type is "account_deletion_previews" — snake_case + plural, mirroring
        the existing "account_deletions" convention (POST's request type) by
        naming the noun this resource represents: a preview of an account
        deletion. Distinct from "account_deletions" because this is a
        different resource shape (read-only projection vs. the mutating
        request envelope) even though both concern the same underlying action.
      properties:
        attributes:
          $ref: '#/components/schemas/AccountDeletionPreviewAttributes'
        id:
          title: Id
          type: string
        links:
          anyOf:
            - $ref: '#/components/schemas/JsonApiLinks'
            - type: 'null'
        meta:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Meta
        relationships:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Relationships
        type:
          const: account_deletion_previews
          default: account_deletion_previews
          title: Type
          type: string
      required:
        - id
        - attributes
      title: AccountDeletionPreviewResource
      type: object
    JsonApiLinks:
      properties:
        self:
          anyOf:
            - type: string
            - type: 'null'
          title: Self
      title: JsonApiLinks
      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
    AccountDeletionPreviewAttributes:
      properties:
        can_delete:
          title: Can Delete
          type: boolean
        paid_through:
          anyOf:
            - format: date-time
              type: string
            - type: 'null'
          title: Paid Through
        plan:
          enum:
            - none
            - recurring
            - lifetime
          title: Plan
          type: string
      required:
        - plan
        - can_delete
      title: AccountDeletionPreviewAttributes
      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

````