# Revoke a transaction

Revokes a blockchain transaction. Only the transaction initiator (or authorized signer) can revoke a transaction that has not yet been committed to the blockchain.

📘 [Learn more ](/resources/using-the-teos-api/concepts/transaction.md)about transactions.

#### Request Endpoint:

```http
POST /odata/v1.0/Transactions({key})/Revoke
```

#### Parameters

| **Parameter** | **Type**      | **Description**                                        | **Mandatory** |
| ------------- | ------------- | ------------------------------------------------------ | ------------- |
| key           | string (UUID) | The unique identifier of the transaction to be revoked | ✅             |

**Example:**

```json
301f8350-efcb-4a23-775a-08daa8492516
```

#### Request Body

**Media type:** `application/json`

Mandatory fields in body:

| **Parameter** | **Type** | **Description**                                                               | **Mandatory** |
| ------------- | -------- | ----------------------------------------------------------------------------- | ------------- |
| Signature     | string   | Digital signature of the revoking user to authenticate the revocation request | ✅             |

#### Example Value:

```json
{
  "Signature": "0xf675887e6d9c963db90a6fb0a0274bcdf084d2de0f3e1ca31c8aa63873c88fe2722804f04e325e48c0ad24a6ecd72154a03f4f3003664a6e7420d3bfa9a885601c"
}
```

#### Responses

| **Code** | **Description**                                                      |
| -------- | -------------------------------------------------------------------- |
| 204      | No Content. Transaction successfully revoked                         |
| 400      | Bad Request. Invalid transaction Id or signature                     |
| 401      | Unauthorized. Requester is not authorized to revoke this transaction |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://teos-docs.coreledger.net/guides/transactions/revoke-a-transaction.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
