auth.signature_invalid
HTTP 401 Signature does not match
When it happens
Section titled “When it happens”In signed mode, the X-Zemo-Signature header does not match the request we received.
What to do
Section titled “What to do”Build the canonical string exactly as the Authentication guide shows: method, path, sorted and re-encoded query, timestamp, nonce, SHA-256 of the raw body. Sign the bytes you send, not a re-serialised copy of the JSON. Compare your code with the published test vectors.
Sending the same request again gives the same answer until the cause is fixed.
Details
Section titled “Details”- HTTP status: 401 Unauthorized
- Where you can meet it: Customer API (
/v1) - Code:
auth.signature_invalid(stable: match on the code, not on the title or detail text)
Example response
Section titled “Example response”{ "type": "https://docs.zemodata.com/errors/auth.signature_invalid", "title": "Signature does not match", "status": 401, "code": "auth.signature_invalid", "detail": "…", "request_id": "req_01JD3K8ZQ4V6W9XG2M5N7P0R1S", "errors": []}See Errors for how problem responses work, and all error codes.