> ## Documentation Index
> Fetch the complete documentation index at: https://omniflow-vpn.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Post v1accountpreferencesunsubscribe

> Stops marketing messages. Transactional messages about a payment, an expiry, or a support reply continue, because they are the ones a customer needs in order to keep using what they bought.



## OpenAPI

````yaml https://raw.githubusercontent.com/kewldan/omniflow/main/api/openapi.yaml post /v1/account/preferences/unsubscribe
openapi: 3.0.3
info:
  title: Omniflow API
  version: 1.0.0
  description: >-
    Customer, commerce, payment, wallet, fulfillment, and operations API for
    Omniflow.
servers: []
security: []
paths:
  /v1/account/preferences/unsubscribe:
    post:
      tags:
        - account
      description: >-
        Stops marketing messages. Transactional messages about a payment, an
        expiry, or a support reply continue, because they are the ones a
        customer needs in order to keep using what they bought.
      operationId: unsubscribeAccount
      parameters:
        - $ref: '#/components/parameters/CSRFToken'
      responses:
        '200':
          description: Unsubscribed
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccountPreferences'
components:
  parameters:
    CSRFToken:
      in: header
      name: X-CSRF-Token
      required: true
      description: >-
        Echoes the token from the current session. Required on every unsafe
        method.
      schema:
        type: string
  schemas:
    AccountPreferences:
      type: object
      required:
        - locale
        - notifications
        - marketing
        - contacts
      properties:
        locale:
          type: string
          enum:
            - auto
            - ru
            - en
        notifications:
          type: object
          required:
            - expiry
            - traffic
            - renewal
            - news
          properties:
            expiry:
              type: boolean
            traffic:
              type: boolean
            renewal:
              type: boolean
            news:
              type: boolean
        quietHours:
          type: object
          description: Absent when unset.
          required:
            - startHour
            - endHour
          properties:
            startHour:
              type: integer
              minimum: 0
              maximum: 23
            endHour:
              type: integer
              minimum: 0
              maximum: 23
        marketing:
          type: object
          required:
            - enabled
          properties:
            enabled:
              type: boolean
            decidedAt:
              type: string
              format: date-time
            source:
              type: string
              description: Which surface recorded the decision.
            policyVersion:
              type: string
        contacts:
          type: array
          description: Flags only. The address itself is never returned.
          items:
            type: object
            required:
              - id
              - kind
              - verified
              - transactional
              - marketing
              - createdAt
            properties:
              id:
                type: string
                format: uuid
              kind:
                type: string
                enum:
                  - email
                  - phone
                  - telegram
              verified:
                type: boolean
              transactional:
                type: boolean
              marketing:
                type: boolean
              createdAt:
                type: string
                format: date-time
        suppression:
          type: object
          required:
            - reason
            - createdAt
          properties:
            reason:
              type: string
              enum:
                - customer_request
                - bounced
                - complaint
                - operator
            createdAt:
              type: string
              format: date-time

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.