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

# Confirm unsubscribe (browser form)

> Writes the hub-scope suppression and emits EmailUnsubscribed(method='link_click').

The token in the form body is the credential, as the GET link's was before.
Idempotent — resubmitting does NOT create a duplicate suppression row.
Renders the branded success page (unsubscribe_confirmed.html), or the plain
inline one when the hub is gone or has a blank slug.

Status codes:
  200 — unsubscribed (HTML)
  400 — missing, invalid or expired token (HTML error page, no token echoing)



## OpenAPI

````yaml /openapi/mio-openapi.json post /unsubscribe/confirm
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:
  /unsubscribe/confirm:
    post:
      tags:
        - email-unsubscribe
      summary: Confirm unsubscribe (browser form)
      description: >-
        Writes the hub-scope suppression and emits
        EmailUnsubscribed(method='link_click').


        The token in the form body is the credential, as the GET link's was
        before.

        Idempotent — resubmitting does NOT create a duplicate suppression row.

        Renders the branded success page (unsubscribe_confirmed.html), or the
        plain

        inline one when the hub is gone or has a blank slug.


        Status codes:
          200 — unsubscribed (HTML)
          400 — missing, invalid or expired token (HTML error page, no token echoing)
      operationId: email_unsubscribe.post_email_unsubscribe_post_unsubscribe_confirm
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/post_unsubscribe_confirm'
      responses:
        '200':
          content:
            text/html:
              schema:
                type: string
          description: Successful Response
        '422':
          content:
            application/vnd.api+json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
components:
  schemas:
    post_unsubscribe_confirm:
      properties:
        t:
          anyOf:
            - type: string
            - type: 'null'
          description: Signed unsubscribe JWT token.
          title: T
      title: Body_email-unsubscribe.post_unsubscribe_confirm
      type: object
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Detail
          type: array
      title: HTTPValidationError
      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
  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.