FAQ: RHA Request Signing

1. What is the X-COP-Signature-256 header?

It is a signature that lets you verify an RHA request was sent by StraitsX and was not modified in transit. The value is an HMAC-SHA256 of the raw request body, keyed with your RHA secret, sent as sha256=<hex digest>. This is the same type of signature used on our webhooks.

The header is sent from 30 Nov 2026 on Sandbox and 1 Dec 2026 on Production, only for clients that have registered an RHA secret with us.

2. Do I need to change my integration?

No. The header is additive and your existing integration keeps working. If your endpoint performs strict header checking, please make sure it accepts the new header.

Verifying the signature is optional, but we strongly recommend it. If you choose not to verify it, the security of your RHA endpoint remains your responsibility.

3. Is the RHA secret the same as my RHA API key?

No. The RHA secret is a new, separate value used only to sign the request payload. Your RHA API key is still sent in the Authorization: Bearer <API key> header as before.

4. How do I set up an RHA secret?

Generate the secret on your side and share it with our Integration Engineers through Slack DM, the same way you share your RHA API key and webhook secret.

We recommend using separate secrets for Sandbox and Production.

5. When will the header start being sent after I register a secret?

You can let us know your preferred time for the secret to be loaded. The header will be sent on RHA requests after that time. This lets you deploy your verification logic first. You can test your implementation on Sandbox before enabling it on Production.

6. How do I verify the signature?

  1. Read the raw request body before any JSON parsing or re-serialization.
  2. Compute HMAC-SHA256 of the raw body using your RHA secret.
  3. Compare sha256=<hex digest> with the X-COP-Signature-256 header using a constant-time comparison.
  4. Reject the request if they do not match.

The signature is computed over the raw body bytes exactly as sent, with no trimming and no field reordering. The hex digest is always lowercase.

7. Which RHA requests carry the signature?

All RHA requests carry the X-COP-Signature-256 header once your secret is registered.

8. What if I do not register an RHA secret?

Your RHA requests will not include the X-COP-Signature-256 header. Everything else stays the same.

9. Can I rotate my RHA secret?

Rotation is currently not supported. We will always calculate the hex digest using only the latest secret provided to us. Regardless, your system must be ready to validate the received hex digest against both your old and new key so that the rotation does not result in any downtime. Secret rotations are normally attended events and our engineers will be on standby to address any issues as required during the ceremony.

10. What happens if I decline a request because the signature does not match?

We do not retry the request. The transaction will fail for the cardholder.


Did this page help you?