Auth Requirements By Endpoint Type
GET /external-api/...:Authorization: Bearer <org_api_key>PATCH /external-api/...:Authorization+X-Cora-Timestamp+X-Cora-Signature
API Key Format
Expected bearer token format:Authorization. The <secret> portion is used for HMAC signing.
Timestamp Window
X-Cora-Timestampmust be within 5 minutes of server time.- Seconds or milliseconds are accepted.
PATCH Signature Algorithm
For each PATCH request:- Build
rawBodyas the exact JSON string sent. - Compute
bodyHash = sha256(rawBody)as hex. - Build canonical payload:
- Compute signature:
- Send it as
X-Cora-Signature.
path_with_query must match the actual request path exactly.
Node.js Signing Example
Auth Error Codes
MISSING_AUTH_HEADER: MissingAuthorizationon API-key-auth endpointMISSING_AUTH_HEADERS: Missing one or more required PATCH auth headersINVALID_API_KEY: Key invalid, revoked, or not foundREQUEST_TIMESTAMP_OUTSIDE_WINDOW: Timestamp outside allowed skewINVALID_REQUEST_SIGNATURE: Signature does not match request payloadAPI_KEY_ORG_MISMATCH: Key does not belong to:organizationIdAUTH_CHECK_FAILED: Internal auth verification failure