---
updatedAt: 2026-05-28T07:48:54.000Z
agentTools:
  projectIndex: https://finp2p-docs.ownera.io/llms.txt
---

# create a signing request

create a signature request to sign the payload hash

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "title": "Custody Adapter Specification",
    "description": "This is the API specification for the Custody Adapter, it provides abstraction on top of various industry key management/custody solutions.",
    "termsOfService": "https://ownera.io/terms/",
    "contact": {
      "email": "support@ownera.io"
    },
    "version": "0.28"
  },
  "tags": [
    {
      "name": "signatures",
      "description": "Signature management"
    }
  ],
  "paths": {
    "/signatures": {
      "post": {
        "tags": [
          "signatures"
        ],
        "summary": "create a signing request",
        "description": "create a signature request to sign the payload hash",
        "operationId": "createSignatureRequest",
        "parameters": [
          {
            "in": "header",
            "name": "Idempotency-Key",
            "description": "hex encoding of a 32-byte payload consisting of 24 random bytes + 8-byte epoch timestamp (seconds)",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateSignatureRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "successful operation",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/signatureResponse"
                }
              }
            }
          },
          "202": {
            "description": "Operation is pending",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OperationBase"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/APIErrors"
                },
                "example": {
                  "errors": [
                    {
                      "code": 1002,
                      "message": "Invalid request format"
                    }
                  ]
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiAnyError"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiAnyError"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/APIErrors"
                },
                "example": {
                  "errors": [
                    {
                      "code": 1101,
                      "message": "Resource id not found: \"example-id-123\""
                    }
                  ]
                }
              }
            }
          },
          "405": {
            "description": "Method Not Allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/APIErrors"
                },
                "example": {
                  "errors": [
                    {
                      "code": 1006,
                      "message": "Method not allowed"
                    }
                  ]
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/APIErrors"
                },
                "example": {
                  "errors": [
                    {
                      "code": 1205,
                      "message": "Idempotency key expired"
                    }
                  ]
                }
              }
            }
          },
          "415": {
            "description": "Unsupported Media Type",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/APIErrors"
                },
                "example": {
                  "errors": [
                    {
                      "code": 1005,
                      "message": "Unsupported media type"
                    }
                  ]
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/APIErrors"
                },
                "example": {
                  "errors": [
                    {
                      "code": 2202,
                      "message": "Internal service failure"
                    }
                  ]
                }
              }
            }
          },
          "502": {
            "description": "Bad Gateway",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/APIErrors"
                },
                "example": {
                  "errors": [
                    {
                      "code": 2201,
                      "message": "External service failure"
                    }
                  ]
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiAnyError"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiAnyError"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "signatureResponse": {
        "type": "object",
        "required": [
          "signature",
          "type"
        ],
        "properties": {
          "signature": {
            "type": "string",
            "description": "the hex representation of the signature",
            "x-allowEmpty": true
          },
          "type": {
            "type": "string",
            "enum": [
              "signatureResponse"
            ]
          }
        }
      },
      "signatureTemplate": {
        "type": "object",
        "oneOf": [
          {
            "$ref": "#/components/schemas/hashListTemplate"
          },
          {
            "$ref": "#/components/schemas/EIP712Template"
          }
        ],
        "discriminator": {
          "propertyName": "type",
          "mapping": {
            "hashList": "#/components/schemas/hashListTemplate",
            "EIP712": "#/components/schemas/EIP712Template"
          }
        }
      },
      "hashListTemplate": {
        "description": "ordered list of hash groups",
        "required": [
          "type",
          "hashGroups",
          "hash"
        ],
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "hashList"
            ]
          },
          "hashGroups": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/hashGroup"
            }
          },
          "hash": {
            "type": "string",
            "description": "hex representation of the combined hash groups hash value",
            "x-allowEmpty": true
          }
        }
      },
      "hashGroup": {
        "type": "object",
        "required": [
          "fields",
          "hash"
        ],
        "properties": {
          "hash": {
            "type": "string",
            "description": "hex representation of the hash group hash value",
            "x-allowEmpty": true
          },
          "fields": {
            "description": "list of fields by order they appear in the hash group",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/field"
            }
          }
        }
      },
      "field": {
        "type": "object",
        "required": [
          "name",
          "type",
          "value"
        ],
        "description": "describing a field in the hash group",
        "properties": {
          "name": {
            "type": "string",
            "description": "name of field",
            "pattern": ".*\\S.*",
            "x-autoMinLength": true
          },
          "type": {
            "type": "string",
            "enum": [
              "string",
              "int",
              "bytes"
            ],
            "description": "type of field"
          },
          "value": {
            "type": "string",
            "description": "hex representation of the field value",
            "x-allowEmpty": true
          }
        }
      },
      "EIP712Domain": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "x-allowEmpty": true
          },
          "version": {
            "type": "string",
            "x-allowEmpty": true
          },
          "chainId": {
            "type": "integer",
            "format": "uint64"
          },
          "verifyingContract": {
            "type": "string",
            "format": "address",
            "x-allowEmpty": true
          }
        }
      },
      "EIP712TypedValue": {
        "oneOf": [
          {
            "$ref": "#/components/schemas/EIP712TypeString"
          },
          {
            "$ref": "#/components/schemas/EIP712TypeInteger"
          },
          {
            "$ref": "#/components/schemas/EIP712TypeBool"
          },
          {
            "$ref": "#/components/schemas/EIP712TypeByte"
          },
          {
            "$ref": "#/components/schemas/EIP712TypeObject"
          },
          {
            "$ref": "#/components/schemas/EIP712TypeArray"
          }
        ]
      },
      "EIP712Types": {
        "type": "object",
        "properties": {
          "definitions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/EIP712TypeDefinition"
            }
          }
        }
      },
      "EIP712TypeDefinition": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "x-allowEmpty": true
          },
          "fields": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/EIP712FieldDefinition"
            }
          }
        }
      },
      "EIP712FieldDefinition": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "x-allowEmpty": true
          },
          "type": {
            "type": "string",
            "x-allowEmpty": true
          }
        }
      },
      "EIP712Template": {
        "required": [
          "type",
          "domain",
          "message",
          "primaryType",
          "types",
          "hash"
        ],
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "EIP712"
            ]
          },
          "domain": {
            "$ref": "#/components/schemas/EIP712Domain"
          },
          "message": {
            "type": "object",
            "additionalProperties": {
              "$ref": "#/components/schemas/EIP712TypedValue"
            }
          },
          "types": {
            "$ref": "#/components/schemas/EIP712Types"
          },
          "primaryType": {
            "type": "string",
            "x-allowEmpty": true
          },
          "hash": {
            "type": "string",
            "description": "hex representation of template hash",
            "x-allowEmpty": true
          }
        }
      },
      "signatureRequestReference": {
        "type": "object",
        "oneOf": [
          {
            "$ref": "#/components/schemas/ExecutionPlanReference"
          }
        ],
        "discriminator": {
          "propertyName": "type",
          "mapping": {
            "executionPlanRef": "#/components/schemas/ExecutionPlanReference"
          }
        }
      },
      "ExecutionPlanReference": {
        "type": "object",
        "required": [
          "type",
          "id"
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "executionPlanRef"
            ]
          },
          "id": {
            "type": "string",
            "description": "execution plan resource id",
            "pattern": ".*\\S.*",
            "x-autoMinLength": true
          }
        }
      },
      "CreateSignatureRequest": {
        "required": [
          "finId",
          "template"
        ],
        "type": "object",
        "properties": {
          "finId": {
            "$ref": "#/components/schemas/finId"
          },
          "template": {
            "$ref": "#/components/schemas/signatureTemplate"
          },
          "reference": {
            "$ref": "#/components/schemas/signatureRequestReference"
          }
        }
      },
      "EIP712TypeString": {
        "type": "string",
        "pattern": "^(?:$|0([^x].*)?|[^0].*)$",
        "x-allowEmpty": true
      },
      "EIP712TypeByte": {
        "type": "string",
        "pattern": "^0x[0-9a-fA-F]+$",
        "minLength": 3,
        "maxLength": 320
      },
      "EIP712TypeInteger": {
        "type": "integer"
      },
      "EIP712TypeBool": {
        "type": "boolean"
      },
      "EIP712TypeObject": {
        "type": "object",
        "additionalProperties": {
          "$ref": "#/components/schemas/EIP712TypedValue"
        }
      },
      "EIP712TypeArray": {
        "type": "array",
        "items": {
          "$ref": "#/components/schemas/EIP712TypedValue"
        }
      },
      "randomPollingInterval": {
        "type": "object",
        "required": [
          "type"
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "random"
            ]
          }
        }
      },
      "absolutePollingInterval": {
        "type": "object",
        "required": [
          "type",
          "time"
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "absolute"
            ]
          },
          "time": {
            "type": "integer",
            "description": "absolute time as epoch time seconds"
          }
        }
      },
      "relativePollingInterval": {
        "type": "object",
        "required": [
          "type",
          "duration"
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "relative"
            ]
          },
          "duration": {
            "type": "string",
            "description": "ISO-8601 duration format",
            "example": "PT5M (5Min duration), P1DT30M (1 Day and 30 Minutes )",
            "pattern": ".*\\S.*",
            "x-autoMinLength": true
          }
        }
      },
      "pollingResultsStrategy": {
        "type": "object",
        "required": [
          "type",
          "polling"
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "poll"
            ]
          },
          "polling": {
            "type": "object",
            "oneOf": [
              {
                "$ref": "#/components/schemas/randomPollingInterval"
              },
              {
                "$ref": "#/components/schemas/absolutePollingInterval"
              },
              {
                "$ref": "#/components/schemas/relativePollingInterval"
              }
            ],
            "discriminator": {
              "propertyName": "type",
              "mapping": {
                "random": "#/components/schemas/randomPollingInterval",
                "absolute": "#/components/schemas/absolutePollingInterval",
                "relative": "#/components/schemas/relativePollingInterval"
              }
            }
          }
        }
      },
      "callbackEndpoint": {
        "type": "object",
        "required": [
          "type"
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "endpoint"
            ]
          }
        }
      },
      "callbackResultsStrategy": {
        "type": "object",
        "required": [
          "type",
          "callback"
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "callback"
            ]
          },
          "callback": {
            "type": "object",
            "oneOf": [
              {
                "$ref": "#/components/schemas/callbackEndpoint"
              }
            ],
            "discriminator": {
              "propertyName": "type",
              "mapping": {
                "endpoint": "#/components/schemas/callbackEndpoint"
              }
            }
          }
        }
      },
      "OperationMetadata": {
        "type": "object",
        "description": "additional metadata regarding the operation",
        "properties": {
          "operationResponseStrategy": {
            "description": "denote the expected response strategy of the operation, i.e. how would completion and results of the operation should be handled \noptional, if not provided [polling strategy](#/components/schema/pollingResultsStrategy) will be use with [random interval](#/components/schema/randomPollingInterval)\n",
            "type": "object",
            "oneOf": [
              {
                "$ref": "#/components/schemas/pollingResultsStrategy"
              },
              {
                "$ref": "#/components/schemas/callbackResultsStrategy"
              }
            ],
            "discriminator": {
              "propertyName": "type",
              "mapping": {
                "poll": "#/components/schemas/pollingResultsStrategy",
                "callback": "#/components/schemas/callbackResultsStrategy"
              }
            }
          }
        }
      },
      "OperationBase": {
        "type": "object",
        "required": [
          "cid",
          "isCompleted"
        ],
        "properties": {
          "cid": {
            "type": "string",
            "description": "unique correlation id which identify the operation",
            "x-allowEmpty": true
          },
          "isCompleted": {
            "type": "boolean",
            "description": "flag indicating if the operation completed, if true then error or response must be present (but not both)",
            "default": false
          },
          "operationMetadata": {
            "$ref": "#/components/schemas/OperationMetadata"
          }
        }
      },
      "APIError": {
        "type": "object",
        "required": [
          "code",
          "message"
        ],
        "properties": {
          "code": {
            "type": "integer",
            "description": "Error code indicating the specific failure - for more information see [API Errors](./api-error-codes-reference).\n"
          },
          "message": {
            "type": "string",
            "description": "A descriptive message providing context about the error.",
            "pattern": ".*\\S.*",
            "x-autoMinLength": true
          }
        }
      },
      "APIErrors": {
        "type": "object",
        "required": [
          "errors"
        ],
        "properties": {
          "errors": {
            "type": "array",
            "minItems": 1,
            "items": {
              "$ref": "#/components/schemas/APIError"
            }
          }
        }
      },
      "AssetMetadataAndConfigError": {
        "type": "object",
        "required": [
          "code",
          "message"
        ],
        "properties": {
          "code": {
            "type": "integer",
            "enum": [
              4108
            ]
          },
          "message": {
            "type": "string",
            "enum": [
              "Asset metadata and config cannot be provided at the same time"
            ]
          }
        }
      },
      "GeneralClientError": {
        "type": "object",
        "required": [
          "code",
          "message"
        ],
        "properties": {
          "code": {
            "type": "integer",
            "enum": [
              1000
            ]
          },
          "message": {
            "type": "string",
            "enum": [
              "General client error"
            ]
          }
        }
      },
      "ApiErrorClient4XX": {
        "type": "object",
        "deprecated": true,
        "description": "**Deprecated.** Use the standard `APIErrors` schema instead. All 4xx error\nresponses now follow the shared error format with Ownera error codes.\n",
        "required": [
          "status",
          "errors",
          "type"
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "error"
            ]
          },
          "status": {
            "type": "integer",
            "enum": [
              400,
              401,
              403,
              404,
              409
            ],
            "x-go-json-ignore": true,
            "x-enumNames": [
              "value"
            ]
          },
          "errors": {
            "type": "array",
            "items": {
              "oneOf": [
                {
                  "$ref": "#/components/schemas/AssetMetadataAndConfigError"
                },
                {
                  "$ref": "#/components/schemas/GeneralClientError"
                }
              ]
            }
          }
        }
      },
      "GeneralServerError": {
        "type": "object",
        "required": [
          "code",
          "message"
        ],
        "properties": {
          "code": {
            "type": "integer",
            "enum": [
              2000
            ]
          },
          "message": {
            "type": "string",
            "enum": [
              "General server error"
            ]
          }
        }
      },
      "ApiErrorServer5XX": {
        "type": "object",
        "deprecated": true,
        "description": "**Deprecated.** Use the standard `APIErrors` schema instead. All 5xx error\nresponses now follow the shared error format with Ownera error codes.\n",
        "required": [
          "status",
          "errors",
          "type"
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "error"
            ]
          },
          "status": {
            "type": "integer",
            "enum": [
              500,
              502,
              503,
              504
            ],
            "x-go-json-ignore": true,
            "x-enumNames": [
              "value"
            ]
          },
          "errors": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/GeneralServerError"
            }
          }
        }
      },
      "ApiAnyError": {
        "deprecated": true,
        "description": "**Deprecated.** Use the standard `APIErrors` schema instead. All error\nresponses now follow the shared error format with Ownera error codes.\n",
        "allOf": [
          {
            "oneOf": [
              {
                "$ref": "#/components/schemas/ApiErrorClient4XX"
              },
              {
                "$ref": "#/components/schemas/ApiErrorServer5XX"
              }
            ]
          },
          {
            "type": "object",
            "required": [
              "type"
            ],
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "error"
                ]
              }
            }
          }
        ]
      },
      "finId": {
        "type": "string",
        "format": "finid",
        "description": "Existing owner hex representation of a secp256k1 public key 33 bytes compressed",
        "pattern": "^[0-9a-f]*$",
        "minLength": 64,
        "maxLength": 66,
        "x-autoMinLength": true
      }
    }
  }
}
```