# createSignature

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

**POST** `/createSignature`

Base URL: `http://localhost:3321`

Creates a signature

## Body

Content type: `application/json`

- `seekPermission` (boolean)
- `data` (integer[])
- `hashToDirectlySign` (integer[])
- `protocolID` (any[])
- `keyID` (string)
- `privilegedReason` (string)
- `counterparty` (string)
- `privileged` (boolean)

Example:

```json
{
  "seekPermission": true,
  "data": [
    0
  ],
  "hashToDirectlySign": [
    0
  ],
  "protocolID": [
    null
  ],
  "keyID": "string",
  "privilegedReason": "string",
  "counterparty": "string",
  "privileged": false
}
```

## Responses

### 200

The signature

- `signature` (integer[])

Example:

```json
{
  "signature": [
    0
  ]
}
```

### 400

Invalid input

### 500

Internal server error