---
title: "Disconnect an account"
method: DELETE
path: "/v1/accounts/{accountId}"
tags: ["Accounts"]
---

# Disconnect an account

`DELETE /v1/accounts/{accountId}`

## Request

- Base URL: `https://api.postzen.dev`
- URL: `https://api.postzen.dev/v1/accounts/{accountId}`
- Auth: HTTP bearer

Disconnects and removes a connected social account. Pending scheduled, queued, and publishing targets for that account are canceled. This endpoint requires a read-write API key.

## Path parameters

- `accountId` string, required

## Response `200`

Account disconnected.

- MessageResponse
  - `message` string, required

## Other responses

- `401`: Missing or invalid API key.
- `403`: The API key does not have sufficient permission or profile access.
- `404`: Resource not found.
- `500`: Unexpected server error.

---

[API](https://skmtc.dev/postzen/apis/postzen-public-api.md) · [All operations](https://skmtc.dev/postzen/apis/postzen-public-api/llms.txt) · [OpenAPI document](https://skmtc.dev/postzen/apis/postzen-public-api/revisions/40863e3710ec?raw)
