Check x-api-signature

You can test your signature in x-api-signature within this method.

Check x-api-signature

post
Header parameters
x-api-public-keystringOptional

Public API-key

x-api-signaturestringOptional

Signing the request body with a private API-key

Content-typestringOptional

Request content type

Example: application/json
Body
anyOptional
Responses
200Success
application/json
post
POST /api-gateway/test-signature HTTP/1.1
Host: ocp.onchainpay.io
Content-Type: application/json
Accept: */*
200Success
{
  "success": true,
  "response": {
    "errors": [
      "No public key passed."
    ],
    "checkSignatureResult": true,
    "signature": "04dac7cb9a6c764cfa07793ab723d28b4e8d4c12def98eed7472734d0d894110",
    "receivedBody": "{\"some\":\"param\",\"another\":\"param\",\"nonce\":\"eaec8251-f65d-4d39-a7cc-5374782f7db6\"}"
  }
}

Last updated