> ## Documentation Index
> Fetch the complete documentation index at: https://funnelfox.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Anonymize profiles

> Permanently removes personally identifiable information (PII) from one or more profiles and all of their sessions. Built for GDPR/CCPA "right to erasure" requests.

To trigger the endpoint, pass an object containing the profile IDs in the request body.

The operation runs in a single transaction and is all-or-nothing: if any profile ID is unknown or belongs to another project, nothing is changed and a `404` is returned.

Clears each profile's email, phone number, and stored password hashes, and wipes the IP address, user agent, submitted form answers, postal code, and tracking cookies from every associated session. Transactions and subscriptions are retained.



## OpenAPI

````yaml /swagger/openapi.json post /profiles/anonymize
openapi: 3.0.0
info:
  title: Public API
  version: 1.0.0
servers:
  - url: https://api.funnelfox.io/public/v1
security: []
paths:
  /profiles/anonymize:
    post:
      summary: Anonymize profiles
      description: >-
        Permanently removes personally identifiable information (PII) from one
        or more profiles and all of their sessions. Built for GDPR/CCPA "right
        to erasure" requests.


        To trigger the endpoint, pass an object containing the profile IDs in
        the request body.


        The operation runs in a single transaction and is all-or-nothing: if any
        profile ID is unknown or belongs to another project, nothing is changed
        and a `404` is returned.


        Clears each profile's email, phone number, and stored password hashes,
        and wipes the IP address, user agent, submitted form answers, postal
        code, and tracking cookies from every associated session. Transactions
        and subscriptions are retained.
      operationId: AnonymizeProfiles
      parameters:
        - in: header
          name: Fox-Secret
          required: true
          description: Project Secret Key
          schema:
            type: string
            example: secret_
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                '':
                  type: array
                  description: Profile IDs to anonymize. Provide between 1 and 100 IDs.
                  items:
                    type: string
                  minItems: 1
                  maxItems: 100
                  x-go-name: ProfileIDs
                  example:
                    - 01H8XGJWBWBAQ4ZZ1Q5Z9Z9Z9
      responses:
        '200':
          description: Profiles anonymized
          content:
            application/json:
              schema:
                type: object
                required:
                  - message
                properties:
                  message:
                    type: string
                    example: Anonymized 3 profiles
        '400':
          description: Request error
          content:
            application/json:
              schema:
                type: object
                required:
                  - message
                properties:
                  message:
                    type: string
        '401':
          description: Authentication error
          content:
            application/json:
              schema:
                type: object
                required:
                  - message
                properties:
                  message:
                    type: string
        '404':
          description: One or more profiles not found
          content:
            application/json:
              schema:
                type: object
                required:
                  - message
                properties:
                  message:
                    type: string
                  not_found:
                    type: array
                    items:
                      type: string
                    description: >-
                      Profile IDs that were not found or belong to another
                      project. Nothing was changed.

````