Hoppa till innehållet

Erase a person

POST/v1/erasures

TypeScript account.erasures.create({ address })

Python account.erasures.create(address=...)

PHP $account->erasures->create(address: $address)

Java account.erasures().create(address)

Key ak_… an account key

Erases one person's data from every server of the account, as a request under the right to erasure asks. The content of every message to or from the address, sent and received, is deleted, and the address becomes a pseudonym in the message log. The answer is the pending erasure; Sendora carries it out within a minute, and reading it by its id shows the outcome. Erasing an address again changes nothing more. It blocks nothing: later mail to or from the address is sent and received as before.

Request body

{
  "address": "anna@example.com"
}
  • addressstring (email)required

    The person's e-mail address.

Responses

Every field of a response is always present. A field that can be null says so in its type.

202A request to erase one person's data from the account.

Example

{
  "erasureId": "6f1d2c3b-4a5e-4f60-8b7a-9c8d7e6f5a41",
  "status": "pending",
  "createdAt": "2026-10-04T12:00:00.000Z",
  "completedAt": null,
  "pseudonym": null,
  "messages": null,
  "receivedMessages": null
}
  • erasureIdstring (uuid)
  • status"pending" | "done"

    pending until Sendora has erased the person, done after.

  • createdAtstring (date-time)
  • completedAtstring (date-time) or null

    When the erasure was done; null while pending.

  • pseudonymstring or null

    What now stands where the address was written in the message log; null while pending.

  • messagesinteger or null

    Sent messages to the address whose content was deleted; null while pending.

  • receivedMessagesinteger or null

    Received messages from, naming or to the address whose content was deleted; null while pending.

Errors

Every error answers error, the code, and message, a sentence for a person. A code that adds fields is shown in full below the table.

CodeStatusMeaning
invalid_request400The body, the query or a header does not match what the route takes.
unauthorized401The key is missing, malformed or revoked.
wrong_token_kind403The key is of the other kind: a server key (sk_) where an account key (ak_) is needed, or the reverse. The message names the kind the operation takes.
not_for_connections403A connected app called an operation that no tool of the MCP server calls. An API key can.
read_only_connection403A connected app may only read here: the account is read only through a connection, and a live server takes changes only if the person allowed them when connecting.
test_server_only403A connected app may create a secret, or do what cannot be undone, on a test server only.
  • WWW-Authenticateheader on 401"Bearer"

    Always Bearer: send the key as Authorization: Bearer <key>.

invalid_request

Example

{
  "error": "invalid_request",
  "message": "The request is invalid: to.0: Invalid email address",
  "issues": [
    {
      "path": "to.0",
      "message": "Invalid email address"
    }
  ]
}
  • issuesarray of object

    One entry per invalid field; absent when a header is wrong.

    • pathstringrequired

      The field, dotted, such as to.0.email; empty when the whole body is wrong.

    • messagestringrequired