Overview
The offline sync endpoint receives audit log entries produced by on-device agents operating with consent bundles. The server verifies the Ed25519 signatures and hash chain integrity, then reconciles entries with the cloud audit log.Sync Offline Audit Entries
Upload a batch of offline audit log entries to the Grantex cloud.Request Headers
Request Body
SignedAuditEntry Schema
Example Request
Response — 200 OK
Response Fields
Error Array Schema
Each element in theerrors array:
Error Codes for Rejected Entries
Error Responses (HTTP Level)
Batch Processing
The endpoint processes entries in order. If an entry fails validation, subsequent entries in the same batch may still be accepted if their hash chain is internally consistent. Recommended batch sizes:
Maximum entries per request: 1000.
Sync Flow
The recommended sync flow:Idempotency
Syncing the same entries multiple times is safe. The server deduplicates by(bundleId, seq) pair. If an entry with the same sequence number already exists and has a matching hash, it is silently accepted. If the hash differs, it is rejected with DUPLICATE_SEQ.
SDK Examples
Rate Limits
The rate limit applies per API key. If you need higher throughput, use larger batch sizes rather than more frequent requests.