---
title: "Request deletion"
url: "https://real-estate-agency.apim.eu/apis/leads/versions/d1fa19e4-3a7d-4b6b-aac0-9ec016571b4b/operations/requestLeadDeletion"
---

> Full API specification: https://real-estate-agency.apim.eu/apis/leads/versions/d1fa19e4-3a7d-4b6b-aac0-9ec016571b4b.md

# Request deletion

`POST` `/leads/{leadId}/deletion`

Operation ID: `requestLeadDeletion`

Carries out a data subject's rights request immediately. Personal fields are permanently removed; activity that must be retained for tax purposes remains pseudonymized.

## Path parameters

- `leadId` (string, required)

## Request body (required)

Content types: `application/json`

## Responses

- `202` - Deletion initiated

## OpenAPI definition

```yaml
openapi: 3.0.3
info:
  title: Leads & Inquiries
  version: 1.0.0
servers:
  - url: https://api.realestateagency.example/v1
    description: Production
  - url: https://sandbox.api.realestateagency.example/v1
    description: Sandbox
paths:
  /leads/{leadId}/deletion:
    parameters:
      - name: leadId
        in: path
        required: true
        schema:
          type: string
          example: lead_71ab
    post:
      tags:
        - Leads
      summary: Request deletion
      description: |
        Carries out a data subject's rights request immediately. Personal
        fields are permanently removed; activity that must be retained for
        tax purposes remains pseudonymized.
      operationId: requestLeadDeletion
      security:
        - apiKey: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - reason
              properties:
                reason:
                  type: string
                  enum:
                    - data_subject_request
                    - retention_expired
                    - duplicate
                source:
                  type: string
                  example: email dated 2026-08-18
      responses:
        "202":
          description: Deletion initiated
          content:
            application/json:
              schema:
                type: object
                properties:
                  lead_id:
                    type: string
                  anonymized_at:
                    type: string
                    format: date-time
security:
  - apiKey: []
components:
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: apikey
      description: |
        Every call carries an API key in the `apikey` header. You generate the
        key in the Real Estate portal under "My Apps"; it's shown exactly once.

        Each key has the scopes it's allowed to use attached to it. If one is
        missing, the API responds with `403` and `code: "scope_missing"`; the
        missing scope is in `details[].field`.
```
