---
title: "Request deletion of a connected account"
method: POST
path: "/v1/data-deletion/requests"
tags: ["data-deletion"]
---

# Request deletion of a connected account

`POST /v1/data-deletion/requests`

## Request

- Base URL: `https://api.patricia.app` (the document declares no server; this is the origin it was published from)
- URL: `https://api.patricia.app/v1/data-deletion/requests`
- Auth: HTTP bearer

## Headers

- `X-Tenant-Id` string, nullable

## Request body

- DataDeletionCreate: Exactly one subject per request, named by the field that identifies it. Two subjects, not one field with a kind beside it: each identifier has its own type and its own refusals, and a shared ``subject_id: str`` would let a caller send a Slack id under the account kind and reach a resolver built for uuids.
  - `integration_account_id` string, uuid, nullable
  - `slack_user_id` string, nullable

## Response `200`

Successful Response

- DataDeletionCreated
  - `state` 'received' | 'failed'
  - `confirmation_code` string, required
  - `status_url` string, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/patricia/apis/patricia-api.md) · [All operations](https://skmtc.dev/patricia/apis/patricia-api/llms.txt) · [OpenAPI document](https://skmtc.dev/patricia/apis/patricia-api/revisions/0dfb44495ea1?raw)
