---
title: "Creates a signature"
method: POST
path: "/createSignature"
tags: ["HTTPWalletJSON"]
---

# Creates a signature

`POST /createSignature`

## Request body

- object
  - `seekPermission` boolean
  - `data` integer[]
  - `hashToDirectlySign` integer[]
  - `protocolID` unknown[]
    - unknown
  - `keyID` string
  - `privilegedReason` string
  - `counterparty` string
  - `privileged` boolean

## Response `200`

The signature

- object
  - `signature` integer[]

## Other responses

- `400` — Invalid input
- `500` — Internal server error

## Changes

- **2024-12-12** `b3194b485433` — 1 breaking, 1 info
  - the `protocolID` request property's minItems was increased to `2`
  - added `subschema #1, subschema #2` to the `protocolID` request property 'prefixItems' list
- **2024-12-10** `354750509065` — 1 breaking
  - removed `subschema #1, subschema #2` from the `protocolID` request property 'prefixItems' list

[Change history](https://skmtc.dev/bsv-blockchain/apis/wallet-json-api/changes/createSignature/post.md)

---

[API](https://skmtc.dev/bsv-blockchain/apis/wallet-json-api.md) · [All operations](https://skmtc.dev/bsv-blockchain/apis/wallet-json-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/bsv-blockchain/wallet-json-api/revisions/4b04a6edb128/schema)
