# verifySignature

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

**POST** `/verifySignature`

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

Verifies a signature

## Body

Content type: `application/json`

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

Example:

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

## Responses

### 200

The verification result

- `valid` (boolean)

Example:

```json
{
  "valid": true
}
```

### 400

Invalid input

### 500

Internal server error