---
title: "Void an e-signature envelope"
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.cloudraker.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Void an e-signature envelope

Path: CloudRaker Workspace API › Space Runs

`POST /spaces/{spaceId}/runs/{runId}/void`

Cancels a pending envelope: every signing link dies immediately and the run terminates as `failed` with `Voided by sender`. Requires `space:contribute` (denied → 403). Optional body `{ reason }`. 409 once the envelope is finalizing/completed/failed — there is no safe abort mid-seal.

## Authentication

- `bearerAuth`, http, header `Authorization`

## Path parameters

- `spaceId` (`voidSpaceRunEnvelope.path.spaceId`; string, required)
- `runId` (`voidSpaceRunEnvelope.path.runId`; string, required)

## Request body

_Optional._

- `reason` (`voidSpaceRunEnvelope.reason`; string, optional) — Recorded on the audit trail.

## Example request

```json
{
  "reason": "string"
}
```

## Code samples

### cURL

```bash
curl --request POST \
  --url 'https://api.cloudraker.com/spaces/<spaceId>/runs/<runId>/void' \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "reason": "string"
}
'
```

### TypeScript

```typescript
const url = 'https://api.cloudraker.com/spaces/<spaceId>/runs/<runId>/void';
const options = {
  method: 'POST',
  headers: {'Content-Type': 'application/json', Authorization: 'Bearer <token>'},
  body: JSON.stringify({reason: 'string'})
};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "https://api.cloudraker.com/spaces/<spaceId>/runs/<runId>/void"

payload = { "reason": "string" }
headers = {
    "Content-Type": "application/json",
    "Authorization": "Bearer <token>"
}

response = requests.post(url, json=payload, headers=headers)

print(response.text)
```

## Responses

### 200

The envelope was voided.

#### Example

```json
{
  "data": {
    "voided": true
  }
}
```

- `data` (`voidSpaceRunEnvelope.response.200.data`; object, required)
  - `voided` (`voidSpaceRunEnvelope.response.200.data.voided`; boolean, required)


Source: https://docs.cloudraker.com/workspace/api/space-runs/void-space-run-envelope/index.md
