API & Webhooks
Automate code issuance and warranty registration, and receive real-time events, with the Traciqo REST API. Endpoints follow the Frappe method convention and accept and return JSON.
https://traciqo.com. API access is available on plans that include it; generate and rotate keys from your dashboard under Settings โ API.Authentication
Authenticate every request with your API key and secret, sent as headers:
Alternatively, use a standard token header:
Each workspace has independent live and sandbox key pairs. The key you use determines which environment the request runs against.
Sandbox
Use your sandbox key pair to create test codes and warranties without affecting live data or plan usage. Requests made with a sandbox key are flagged automatically. You can also force sandbox behaviour with a header:
Responses & errors
Successful responses wrap the result in a message object, following the Frappe convention:
Errors return a non-2xx status with a JSON body describing the problem. Common cases: 401/403 for invalid keys or insufficient plan permission, and 417 for validation errors such as exceeding your plan's code limit.
Create codes
Generate a batch of authentication codes. Quantity is limited by your plan for live requests.
| Parameter | Type | Description | |
|---|---|---|---|
batch_name | string | required | Label/batch identifier for the generated codes. |
quantity | integer | optional | Number of codes to create. Defaults to 1. |
product_id | string | conditional | Required when creating dashboard-visible codes tied to a product. |
is_sandbox | boolean | optional | Create as test data. Forced true when a sandbox key is used. |
Activate warranty
Register and activate a warranty for a specific serial number.
| Parameter | Type | Description | |
|---|---|---|---|
serial_number | string | required | Serial of the unit to activate. |
customer_name | string | required | Customer's full name. |
customer_email | string | required | Customer's email for confirmation and reminders. |
customer_phone | string | optional | Customer's phone number. |
API usage stats
Retrieve your recent API usage for the authenticated workspace.
Returns request counts and recent activity. Use rotate_api_secret to roll a compromised secret.
Webhooks
Webhooks let Traciqo notify your systems the moment something happens โ a code is created, a warranty is registered, or a product is scanned. Configure endpoints in your dashboard under Settings โ Webhooks, where you can register a URL, choose which events to receive, and run a Ping Test. Separate endpoints can be configured for live and sandbox.
Deliveries are sent as POST requests and are dispatched asynchronously. Every attempt is recorded and viewable in your webhook logs.
Events
| Event | Triggered when |
|---|---|
Code Created | One or more authentication codes are generated. |
Warranty Registered | A customer registers / activates a warranty. |
Scan Captured | A code's verification page is scanned. |
Ping Test | Sent when you trigger a test from the dashboard. |
Payload
Each delivery sends a JSON body and two headers:
X-Traciqo-Eventโ the event name (e.g.Warranty Registered).X-Traciqo-Signatureโ an HMAC-SHA256 signature of the raw request body (see below).
Verifying signatures
Always verify the signature before trusting a payload. Compute an HMAC-SHA256 of the raw request body using your webhook's secret, then compare it (constant-time) to the X-Traciqo-Signature header.