---
title: "Preview removing an account"
method: GET
path: "/accounts/{id}/removal"
tags: ["Accounts"]
---

# Preview removing an account

`GET /accounts/{id}/removal`

## Request

- Base URL: `https://api.rizamo.com/v1`
- URL: `https://api.rizamo.com/v1/accounts/{id}/removal`
- Auth: HTTP bearer

What removing the account would do to the posts that use it, counted now, with nothing changed: show it to the person before they confirm. `Remove an account` answers the same counts once it is done.

## Path parameters

- `id` string, required: The account's id (`acc_`).

## Response `200`

OK

- AccountRemoval
  - `posts` object, required: By the post's status now.
    - `scheduled` object, required
      - `posts` integer, required: Posts that use the account. Deleted posts are left out.
      - `movedToDeleted` integer, required: Of those, the ones that go to no other account: they move to Deleted, where they can be restored for 30 days.
    - `drafts` object, required
      - `posts` integer, required: Posts that use the account. Deleted posts are left out.
      - `movedToDeleted` integer, required: Of those, the ones that go to no other account: they move to Deleted, where they can be restored for 30 days.
    - `published` object, required: Published or partly published. A post with other accounts keeps the removed account's published part, with its link and without its numbers.
      - `posts` integer, required: Posts that use the account. Deleted posts are left out.
      - `movedToDeleted` integer, required: Of those, the ones that go to no other account: they move to Deleted, where they can be restored for 30 days.
    - `failed` object, required
      - `posts` integer, required: Posts that use the account. Deleted posts are left out.
      - `movedToDeleted` integer, required: Of those, the ones that go to no other account: they move to Deleted, where they can be restored for 30 days.

## Other responses

- `400`: `invalid_request`: A field is missing or wrong, or the request cannot be done as asked: the message names the field or says what to change.
- `401`: `unauthorized`: No API key or sign-in, or the key does not work: it was deleted, or it expired.
- `403`: `forbidden`: The caller may not do this: the key or agent lacks the scope (the message names it), or the action needs another role or a fresh sign-in.
- `404`: `not_found`: No such object, or it is outside your team or the profiles your key reaches.
- `429`: `rate_limited`: Over one of Rizamo's limits, or a network asked Rizamo to slow down: wait for `Retry-After` seconds, or as long as the message says.
- `500`: `internal`: Our side failed: retry, and send the `requestId` if it keeps failing.
- `503`: `timeout`: The request took too long to work out, most often a report: try again in a moment, or ask a report for a shorter period or one profile.

---

[API](https://skmtc.dev/rizamo/apis/rizamo-api.md) - [All operations](https://skmtc.dev/rizamo/apis/rizamo-api/llms.txt) - [OpenAPI document](https://skmtc.dev/rizamo/apis/rizamo-api/revisions/31b0c1b1ffb5?raw)
