# Process a signed action (broadcast + store).

> For the complete documentation index, see [llms.txt](https://bsvblockchain.com/docs/llms.txt).

**POST** `/actions/process`

Base URL: `https://{host}/storage/v1`

Corresponds to `StorageProvider.processAction(auth, args)`.
Called after the client has signed the raw transaction.  Stores the
completed transaction and optionally broadcasts it.

## Body

Content type: `application/json`

- `isNewTx` (boolean, required)
- `isSendWith` (boolean, required)
- `isNoSend` (boolean, required)
- `isDelayed` (boolean, required)
- `reference` (string)
- `txid` (string)
- `rawTx` (integer[])
- `sendWith` (string[], required)

Example:

```json
{
  "isNewTx": true,
  "isSendWith": true,
  "isNoSend": true,
  "isDelayed": true,
  "reference": "string",
  "txid": "string",
  "rawTx": [
    0
  ],
  "sendWith": [
    "string"
  ]
}
```

## Responses

### 200

Process results (broadcast status, optional send-with results).

- `sendWithResults` (object[])
- `notDelayedResults` (object[])
  - `txid` (string, required)
  - `status` ("success" | "doubleSpend" | "serviceError" | "invalidTx", required)
  - `competingTxs` (string[])
  - `competingBeef` (integer[])
- `log` (string)

Example:

```json
{
  "sendWithResults": [
    {}
  ],
  "notDelayedResults": [
    {
      "txid": "string",
      "status": "success",
      "competingTxs": [
        "string"
      ],
      "competingBeef": [
        0
      ]
    }
  ],
  "log": "string"
}
```

### 400

Bad request — invalid arguments.

- `error` (string, required)
- `code` (string)
  Machine-readable error code (see specs/errors.md).

Example:

```json
{
  "error": "string",
  "code": "string"
}
```

### 401

Authentication required or token invalid.

- `error` (string, required)
- `code` (string)
  Machine-readable error code (see specs/errors.md).

Example:

```json
{
  "error": "string",
  "code": "string"
}
```

### 500

Internal storage error.

- `error` (string, required)
- `code` (string)
  Machine-readable error code (see specs/errors.md).

Example:

```json
{
  "error": "string",
  "code": "string"
}
```