Tracknicity Connect API
Connect is currently being tested. Some integrations and billing scenarios still require end-to-end verification.
Overview
Tracknicity Connect lets your company read and update Tracknicity data from other software. It includes:
- A REST API under
https://api.tracknicity.com/v1. - API keys for your own integrations.
- OAuth 2.0 (authorization code with PKCE) for AI assistants.
- A remote MCP server so Claude and ChatGPT can work with your Tracknicity data.
- Webhooks that tell your systems when records change.
- Paginated JSON exports of the data you can read.
Quick start
- A company admin enables Connect and creates a read-only API key in Settings > Tracknicity Connect. Copy the key when it appears; it is shown only once.
- On macOS or Linux, open Terminal and run the commands below. Paste the key at the prompt and press Enter. The key will not be displayed.
echo "Paste your API key:"
read -rs TRACKNICITY_API_KEY
curl -H "Authorization: Bearer $TRACKNICITY_API_KEY" \
https://api.tracknicity.com/v1/me
unset TRACKNICITY_API_KEY
The response identifies the company, user and credential. To list inventory, use /v1/items instead of /v1/me. If you receive 401, check that the key was copied correctly and has not been revoked. A 403 response can mean Connect or the user's membership is inactive, or the user lacks permission; check the error code.
Treat the key like a password: never share it in chat, commit it to source control, or put it in browser or mobile app code. If it is lost or exposed, revoke it and create another. API keys are for your own server-side integrations; assistants connect using OAuth instead.
Enabling Connect
A company admin turns Connect on in Tracknicity from Settings > Tracknicity Connect or Settings > Billing & subscription.
- During a company trial: you can turn Connect on without a charge. If Connect is still on when you subscribe, the add-on is included in your subscription.
- On a paid subscription: Connect is added to your current subscription. Review the displayed billing details before confirming.
- Turning it off: removal takes effect at your next renewal. There is no refund for the current period, and Connect keeps working until then. You can cancel a scheduled removal before it happens.
- Switching between monthly and yearly billing keeps Connect on.
Turning Connect off does not delete your API keys, assistant connections or webhook subscriptions. The API rejects requests while Connect is inactive, and they work again when Connect is turned back on.
After Connect is on, admins manage it in the Tracknicity Connect group of Settings:
| Settings page | What you do there |
|---|---|
| Tracknicity Connect | Create and revoke API keys. |
| Connect webhooks | Create and revoke webhook subscriptions. Review delivery history. |
| Connect usage | See this month's calls by source and request a higher allowance. |
Every user (not only admins) can see and disconnect their own AI assistants in Settings > Connected assistants.
Authentication
Send a credential in the Authorization header on every request:
Authorization: Bearer <credential>
There are two kinds of credential.
| Credential | Who creates it | Used for | Format |
|---|---|---|---|
| API key | A company admin, in Settings | Your own scripts and integrations calling /v1 | tnc_live_<32 hex>_<64 hex> |
| OAuth access token | Issued when a user approves an AI assistant | The Tracknicity MCP server (Claude, ChatGPT) | tnc_at_... |
API keys
- Only company admins can create, list and revoke keys.
- Give each key a name of 1 to 80 characters. The name appears on the usage page as the call source, so name keys after the system that uses them.
- Choose a scope when you create the key:
- Read-only keys can call every
GETendpoint. - Read-write keys can also call the write endpoints.
- Read-only keys can call every
- The full key is shown once, when you create it. Copy it then. Tracknicity stores only a hash of the key and cannot show it again. If you lose a key, revoke it and create a new one.
- A key acts as the admin who created it. Each request uses that person's current membership and permissions. If the admin leaves the company or is deactivated, the key stops working (
403 membership_inactive). - Revoking a key takes effect on the next request. Revoked keys stay listed for audit.
- The settings page shows when each key was created and last used.
Keep keys out of source control and client-side code. Treat them like passwords.
OAuth 2.0 for AI assistants
Tracknicity runs its own OAuth 2.0 authorization server at https://api.tracknicity.com. It is built for the Tracknicity MCP server. Claude and ChatGPT use it automatically when you add Tracknicity as a connector, so most users never see these details.
Today, OAuth access tokens are issued only for the MCP resource https://api.tracknicity.com/mcp. The /v1 API rejects them if you send them directly. For your own REST integrations, use an API key.
Flow summary
- The client discovers the server from
GET /.well-known/oauth-protected-resourceandGET /.well-known/oauth-authorization-server. - The client registers itself with Dynamic Client Registration (
POST /oauth/register). Client metadata documents (CIMD) are not supported. - The client sends the user to
GET /oauth/authorizewithresponse_type=code,client_id, an exact registeredredirect_uri, a space-separatedscope, a non-emptystate, an S256code_challenge,code_challenge_method=S256andresource=https://api.tracknicity.com/mcp. Only S256 PKCE is accepted. - The user signs in to Tracknicity, picks a company and approves or denies the request on the consent screen. The consent request expires after 10 minutes.
- The client exchanges the code at
POST /oauth/tokenwithcode,redirect_uri,code_verifierandresource. Public clients registered withtoken_endpoint_auth_method=noneincludeclient_idin the form body. Clients registered withclient_secret_basicauthenticate using HTTP Basic with their client ID and secret; the secret is returned only at registration and stored only as a hash. The same client authentication is required for refresh and revocation. PKCE is required for both client types. - The client refreshes with
grant_type=refresh_tokenwhen it was grantedoffline_access.
| Endpoint | Purpose |
|---|---|
GET /.well-known/oauth-authorization-server | Authorization server metadata (RFC 8414). |
GET /.well-known/oauth-protected-resource | Protected resource metadata for the MCP resource. |
POST /oauth/register | Dynamic Client Registration. Returns 201 with a client_id. |
GET /oauth/authorize | Starts authorization. Redirects to the consent screen. |
POST /oauth/token | Authorization code and refresh token grants. |
POST /oauth/revoke | Revokes a token and the whole connection it belongs to. |
Redirect URIs. Registered redirect URIs must match exactly. The server accepts the Claude and ChatGPT callbacks, loopback URIs (localhost, 127.0.0.1, [::1]) with an explicit path for local development, and any extra HTTPS URIs Tracknicity has added to its allowlist.
Token lifetimes
| Token | Lifetime | Notes |
|---|---|---|
| Authorization code | Single use | Bound to the client, redirect URI, PKCE verifier and resource. |
| Access token | 15 minutes | |
| Refresh token | 30 days | Only with offline_access. Rotates on every use. Reusing an old refresh token revokes the whole connection. |
Tracknicity stores only hashes of codes and tokens.
Scopes
| Scope | Allows | Extra requirement |
|---|---|---|
connect:me | GET /v1/me | |
inventory:read | Items, item stock, purchase orders, serial numbers and tool checkouts | |
projects:read | Project list and project detail | |
time:read | Project time summaries | User needs the budget vs actual hours permission. |
financials:read | Inventory valuation | User must be an admin or have the financial insights permission. |
time:write | Logging time (POST /v1/time-entries) | |
transactions:write | Parts requests, stock movements and tool check-in | |
items:cost | Adds item cost to item responses | User needs the item cost permission. |
items:price | Adds item price to item responses | User needs the item price permission. |
offline_access | Issues a refresh token |
A request must include at least one data scope (any of the first seven). If the user lacks the permission a requested scope needs, consent fails. Permissions are checked again on every request, so removing a permission in Tracknicity takes effect immediately.
Consent. The consent screen shows the client name, the redirect host and the requested scopes. The user chooses one company. Only companies where the user is an active member and Connect is active are offered. Each approval creates one connection for that user, company and client.
Disconnecting assistants. A user can disconnect any assistant from Settings > Connected assistants. The list shows each connection's company, client name, scopes, creation time and last use. Disconnecting invalidates its access and refresh tokens immediately. A client can also call POST /oauth/revoke.
If Connect is turned off, connections stay saved but requests are rejected until Connect is active again.
Base URL
https://api.tracknicity.com/v1
All requests use HTTPS. Responses are JSON.
Request and response envelopes
A successful response wraps its payload in data:
{
"data": {
"company": { "id": "acme-av" },
"user": { "id": "u_123", "admin": true, "permissions": { "viewItemCostAmount": true } },
"credential": { "id": "4f1c...", "name": "ERP sync", "scope": "read-only" }
}
}
An error response uses error with a code and a message. Some errors add fields such as billingUrl, requestMoreUrl or scope:
{
"error": {
"code": "connect_not_active",
"message": "Tracknicity Connect is not active for this company.",
"billingUrl": "https://app.tracknicity.com/dashboard#/company/settings?section=billing"
}
}
Write endpoints require Content-Type: application/json and a JSON object body of 256 KB or less.
Pagination
List endpoints return a page of results and a cursor.
| Query parameter | Meaning |
|---|---|
limit | Results per page. Defaults to 25. The maximum is 50; larger values return 50. Must be a positive integer. |
cursor | The nextCursor value from the previous page. Leave it out for the first page. |
{
"data": {
"items": [ ... ],
"pagination": { "limit": 50, "nextCursor": "eyJ2IjoxLCJyZXNvdXJjZSI6Iml0ZW1zIi..." }
}
}
When nextCursor is null, you have reached the last page. Cursors are opaque. Each cursor belongs to one endpoint and one set of filters. Reusing it with a different endpoint or filter returns 400 invalid_cursor. Results are ordered by record ID.
GET /v1/projects/{projectId} pages two lists at once. It uses stagedCursor and deliveredCursor instead of cursor, and returns pagination.stagedItemsNextCursor and pagination.deliveredItemsNextCursor.
Every page is a separate request and counts toward your monthly calls.
Endpoints
"API key" shows the minimum key scope. "OAuth scope" applies to tokens used through the MCP server.
Read endpoints
| Method and path | API key | OAuth scope | Query parameters |
|---|---|---|---|
GET /v1/me | read-only | connect:me | none |
GET /v1/items | read-only | inventory:read | search, limit, cursor |
GET /v1/items/{itemId}/stock | read-only | inventory:read | limit, cursor |
GET /v1/projects | read-only | projects:read | limit, cursor |
GET /v1/projects/{projectId} | read-only | projects:read | limit, stagedCursor, deliveredCursor |
GET /v1/projects/{projectId}/time-summary | read-only | time:read | none |
GET /v1/purchase-orders | read-only | inventory:read | projectId, poNumber, limit, cursor |
GET /v1/staging-area | read-only | inventory:read | projectId, limit, cursor |
GET /v1/serial-numbers | read-only | inventory:read | serialNumber (required), limit, cursor |
GET /v1/tool-checkouts | read-only | inventory:read | limit, cursor |
GET /v1/inventory-valuation | read-only | financials:read | startDate and endDate (required), limit, cursor |
GET /v1/me
Checks a credential. Returns the company, the user, the user's effective permissions and the credential.
{
"data": {
"company": { "id": "acme-av" },
"user": {
"id": "u_123",
"admin": false,
"permissions": {
"viewItemCostAmount": true,
"viewItemSellAmount": true,
"viewBudgetVsActualHours": true,
"viewFinancialInsights": false
}
},
"credential": { "id": "4f1c0b...", "name": "ERP sync", "scope": "read-only" }
}
}
For an OAuth connection, credential also has "type": "oauth", and scope lists the granted scopes.
GET /v1/items
Searches active inventory items. search (up to 200 characters) matches model, manufacturer, part number, UPC or description, without regard to case. Leave it out to list all items. cost and price appear only when the user has the matching permission (and, for OAuth, the items:cost or items:price scope).
{
"data": {
"items": [
{
"id": "p_8fK2",
"name": "Acme: AMP-200",
"model": "AMP-200",
"manufacturer": "Acme",
"partNumber": "AMP200-BLK",
"upc": "012345678905",
"description": "Two-channel amplifier",
"quantity": 12,
"cost": 410,
"price": 649
}
],
"pagination": { "limit": 25, "nextCursor": null }
}
}
GET /v1/items/{itemId}/stock
Returns one item and its stock by location (warehouses, vans and staging).
{
"data": {
"item": { "id": "p_8fK2", "name": "Acme: AMP-200", "model": "AMP-200", "quantity": 12 },
"locations": [
{ "id": "loc_main", "name": "Main warehouse", "quantity": 9, "minStockQty": 2, "maxStockQty": 20, "subLocation": "Shelf B" },
{ "id": "loc_van3", "name": "Van 3", "quantity": 3 }
],
"pagination": { "limit": 25, "nextCursor": null }
}
}
GET /v1/projects
Lists active projects. active reflects the stored project flag.
{
"data": {
"projects": [
{ "id": "c_501", "name": "Smith Residence: Theater", "active": true, "shortName": "Theater", "customerId": "c_500" }
],
"pagination": { "limit": 25, "nextCursor": null }
}
}
serviceOrder and stagingArea appear when they are set on the project.
GET /v1/projects/{projectId}
Returns one project, its parent customer when there is one, and two independently paginated lists: items staged for the project over time (including items since delivered) and items delivered to it. Quantities come from purchase-order and stock-history records. Lines that exist only in D-Tools are not included.
inStagingArea lists what is in the staging area for the project right now, in the same shape as GET /v1/staging-area without project. It returns at most 100 lines, and inStagingAreaTruncated is true when there are more.
{
"data": {
"project": {
"id": "c_501",
"name": "Smith Residence: Theater",
"active": true,
"customer": { "id": "c_500", "name": "Smith Residence" }
},
"stagedItems": [
{ "id": "po_77", "name": "Acme - AMP-200", "stagedQuantity": 2, "deliveredQuantity": 0, "itemId": "p_8fK2", "poNumber": "1042", "deliveryComplete": false }
],
"deliveredItems": [],
"inStagingArea": [
{
"id": "po_77",
"item": { "id": "p_8fK2", "name": "Acme - AMP-200" },
"stagingArea": { "id": "rack-2", "name": "Rack 2" },
"fromStock": false,
"poNumber": "1042",
"orderedQuantity": 2,
"receivedQuantity": 2,
"deliveredQuantity": 0,
"stagedQuantity": 2
}
],
"inStagingAreaTruncated": false,
"notes": "stagedItems lists everything received or staged for this project over timeā¦",
"pagination": { "limit": 25, "stagedItemsNextCursor": null, "deliveredItemsNextCursor": null }
}
}
GET /v1/projects/{projectId}/time-summary
Compares budgeted hours (from the project's labor estimate lines) with actual logged hours. The user needs the budget vs actual hours permission.
{
"data": {
"project": { "id": "c_501", "name": "Smith Residence: Theater", "active": true },
"budgetedHours": 40,
"actualHours": 31.5
}
}
GET /v1/purchase-orders
Lists purchase-order lines with ordered, received and delivered quantities. Filter by projectId, by poNumber (exact match, any case) or both. Deleted, rejected and from-stock lines are not included.
{
"data": {
"purchaseOrders": [
{
"id": "po_77",
"poNumber": "1042",
"project": { "id": "c_501", "name": "Smith Residence: Theater" },
"item": { "id": "p_8fK2", "name": "Acme - AMP-200" },
"orderedQuantity": 2,
"receivedQuantity": 2,
"deliveredQuantity": 0
}
],
"pagination": { "limit": 25, "nextCursor": null }
}
}
GET /v1/staging-area
Lists everything in the staging area: lines that have been received, including items staged from stock, but not fully delivered. This matches the Staging area report. Each line shows its staging sub-location. A line uses its own active sub-location first, then its project's, and otherwise Default. Filter by projectId. Deleted and rejected lines are not included.
{
"data": {
"stagedItems": [
{
"id": "po_77",
"project": { "id": "c_501", "name": "Smith Residence: Theater" },
"item": { "id": "p_8fK2", "name": "Acme - AMP-200" },
"stagingArea": { "id": "rack-2", "name": "Rack 2" },
"fromStock": false,
"poNumber": "1042",
"orderedQuantity": 2,
"receivedQuantity": 2,
"deliveredQuantity": 0,
"stagedQuantity": 2
}
],
"pagination": { "limit": 25, "nextCursor": null }
}
}
GET /v1/serial-numbers
Finds an exact serial number (any case, up to 250 characters). serialNumber is required here. The export version lets you page through all serial numbers.
{
"data": {
"serialNumbers": [
{
"id": "sn_9",
"serialNumber": "AMP200-00031",
"item": { "id": "p_8fK2", "name": "Acme - AMP-200" },
"project": { "id": "c_501", "name": "Smith Residence: Theater" },
"location": "Equipment rack",
"macAddress": "00:1A:2B:3C:4D:5E",
"ipAddress": "192.168.1.40"
}
],
"pagination": { "limit": 25, "nextCursor": null }
}
}
GET /v1/tool-checkouts
Lists tools that are currently checked out. Archived tools are not included.
{
"data": {
"toolCheckouts": [
{
"id": "t_12",
"name": "Cable certifier",
"make": "Acme",
"model": "CC-9",
"serialNumber": "CC9-221",
"category": "Test equipment",
"assignment": {
"type": "user",
"assignedTo": "Jordan Lee",
"assignedToId": "u_456",
"assignedByName": "Sam Park",
"assignedById": "u_123",
"checkedOutAt": "2026-11-30T15:04:00Z"
}
}
],
"pagination": { "limit": 25, "nextCursor": null }
}
}
GET /v1/inventory-valuation
Returns valuation records between two dates, inclusive. Both startDate and endDate are required and use YYYY-MM-DD. startDate must not be after endDate. The user must be an admin or have the financial insights permission.
{
"data": {
"valuations": [
{ "id": "2026-11-30", "date": "2026-11-30", "inventoryValue": 182340.5, "stagingValue": 22110, "combinedValue": 204450.5 }
],
"pagination": { "limit": 25, "nextCursor": null }
}
}
GET /v1/mcp/auth-check
Used by the Tracknicity MCP service. Returns {"data":{"authenticated":true}} for a valid credential with active Connect. You do not need it for your own integrations.
Write endpoints
| Method and path | API key | OAuth scope | Body field | What it does |
|---|---|---|---|---|
POST /v1/time-entries | read-write | time:write | entry | Creates a time entry for the credential's user, in Pending approval. |
POST /v1/part-requests | read-write | transactions:write | request | Creates a parts request to the office for a location or project. |
POST /v1/stock-movements | read-write | transactions:write | movement | Moves stock from a location to another location or a project, optionally as staged items. |
POST /v1/tools/{toolId}/check-in | read-write | transactions:write | checkIn | Checks in a tool that is currently checked out. |
Preview, then confirm
Every write takes two calls. Nothing is saved until the second call.
- Preview. Send
"phase": "preview"and the payload. Do not send aconfirmationToken. The response shows what will happen and returns a one-timeconfirmationToken. - Commit. Send
"phase": "commit", the exact same payload and theconfirmationToken.
POST /v1/time-entries
Authorization: Bearer tnc_live_...
Content-Type: application/json
{
"phase": "preview",
"entry": {
"customerID": "c_501",
"itemServiceID": "svc_install",
"date": "2026-12-04",
"durationSeconds": 7200,
"notes": "Rack wiring"
}
}
{
"data": {
"phase": "preview",
"preview": {
"entry": { "customerID": "c_501", "itemServiceID": "svc_install", "date": "2026-12-04", "durationSeconds": 7200, "notes": "Rack wiring", "userId": "u_123", "approvalStatus": "pending" },
"project": { "id": "c_501", "name": "Theater" },
"serviceItem": { "id": "svc_install", "name": "Installation labor" }
},
"confirmationToken": "9b0c...64 hex characters...",
"expiresAt": "2026-12-04T21:10:00+00:00"
}
}
{
"phase": "commit",
"entry": { "customerID": "c_501", "itemServiceID": "svc_install", "date": "2026-12-04", "durationSeconds": 7200, "notes": "Rack wiring" },
"confirmationToken": "9b0c..."
}
{ "data": { "phase": "completed", "result": { "entryId": "te_3301" } } }
Rules for confirmation tokens:
- A token expires 5 minutes after the preview.
- It is bound to the company, the user, the operation, the exact payload and the channel (direct API or MCP). A different payload returns
409 confirmation_mismatch. - Committing the same token again returns the original result (
"phase": "completed"). It does not create a duplicate. - An expired or unknown token returns
409 invalid_confirmation. - Stock and tool state are checked again at commit. A commit can fail if stock or the tool changed after the preview.
Write records created through Connect show Via API or Via MCP in the Tracknicity apps.
POST /v1/time-entries
entry field | Required | Notes |
|---|---|---|
customerID | yes | Project ID. |
itemServiceID | yes | Labor or service item ID. |
date | yes | YYYY-MM-DD. |
durationSeconds | yes | 1 to 31,536,000. Without timeRange, it must be a multiple of 900 (15 minutes). |
notes | no | Up to 2,000 characters. |
timeRange | no | { startAt, endAt, timeZone, breakSeconds }. startAt and endAt are UTC ISO timestamps. breakSeconds must be 0 (break deductions are not supported), so durationSeconds must equal the elapsed time between startAt and endAt. |
If your company requires start and end times, you must send timeRange. Commit result: { "entryId": "..." }.
POST /v1/part-requests
request field | Required | Notes |
|---|---|---|
items | yes | 1 to 50 items. Catalog items: { manufacturer, model, quantity, partID }. Custom items: { manufacturer, model, quantity, isCustom: true }. quantity is 1 to 100,000. |
toLocationId | one of these | Warehouse or van location ID. Use "" when sending toClientId. |
toClientId | one of these | Project ID. Use "" when sending toLocationId. |
The requester and destination name are filled in by Tracknicity. The usual new-request notification is sent. Preview shows destination, items and requester. Commit result: { "requestId": "..." }.
POST /v1/stock-movements
movement field | Required | Notes |
|---|---|---|
fromLocationId | yes | Source warehouse or van. |
destinationType | yes | location or project. |
destinationId | yes | Destination location or project ID. |
items | yes | 1 to 50 { partId, quantity } pairs. quantity is 1 to 100,000. |
staged | yes | true stages the items for the project and creates the related stock purchase-order lines. Only allowed when destinationType is project. |
Tracknicity checks available stock at the source. Preview shows the source, destination, staged and, for each item, availableAtSource and remainingAtSource. Commit result: { "historyIds": [ ... ] }.
POST /v1/tools/{toolId}/check-in
checkIn field | Required | Notes |
|---|---|---|
notes | no | Check-in note for the tool history. |
Send "checkIn": {} when there is no note. The tool must still be checked out at commit. Preview shows the tool, who has it, and where it returns to. Commit result: { "toolId": "...", "historyId": "..." }.
Exports
Exports are paginated JSON endpoints, not file downloads or background jobs. Each export route takes the same query parameters and returns the same envelope as its read route. You fetch every page with the returned cursor.
| Export route | Same as |
|---|---|
GET /v1/exports/items | GET /v1/items |
GET /v1/exports/items/{itemId}/stock | GET /v1/items/{itemId}/stock |
GET /v1/exports/projects | GET /v1/projects |
GET /v1/exports/projects/{projectId} | GET /v1/projects/{projectId} |
GET /v1/exports/projects/{projectId}/time-summary | GET /v1/projects/{projectId}/time-summary |
GET /v1/exports/purchase-orders | GET /v1/purchase-orders |
GET /v1/exports/staging-area | GET /v1/staging-area |
GET /v1/exports/serial-numbers | GET /v1/serial-numbers |
GET /v1/exports/tool-checkouts | GET /v1/tool-checkouts |
GET /v1/exports/inventory-valuation | GET /v1/inventory-valuation |
Differences from the read routes:
serialNumberis optional on/v1/exports/serial-numbers. Leave it out to page through all serial numbers.- Exports appear under their
/v1/exports/...path in request logs.
Scopes, permissions, page limits and metering are the same. Each page counts as one call.
Webhooks
Webhooks send a small signed message to your HTTPS endpoint when a record changes. The message contains IDs only. Call the API if you need the record's details.
Managing subscriptions
Company admins manage webhooks in Settings > Connect webhooks.
- Give the subscription a name (1 to 80 characters), an HTTPS URL (up to 2,048 characters) and one or more event types.
- The URL must use a public host. Tracknicity rejects
localhost,.localnames, URLs with credentials or fragments, and hosts that resolve to private or reserved IP addresses. - A company can have up to 20 active subscriptions.
- The signing secret is shown once, when you create the subscription. To change it, revoke the subscription and create a new one.
- Delivery history shows each delivery's event, status, attempt count, response status code and error code. It pages 25 records at a time (up to 50). Response bodies are not stored.
Creating a subscription requires active Connect.
Event types
type | action values | resource.type | Fires when |
|---|---|---|---|
inventory.item | created, updated, deleted | item | An inventory item changes. |
inventory.location_stock | created, updated, deleted | location_stock | An item's stock record at a location changes. |
project | created, updated, deleted | project | A project changes. |
purchase_order | created, updated, deleted | purchase_order | A purchase-order line changes. |
time_entry | created, updated, deleted | time_entry | A time entry changes. |
tool_checkout | checked_out, checked_in | tool | A tool is checked out or checked in. |
Payload
Each delivery is a POST with Content-Type: application/json:
{
"id": "evt_3a7f...64 hex characters...",
"version": 1,
"type": "tool_checkout",
"action": "checked_in",
"occurredAt": "2026-12-04T20:15:30.123Z",
"companyId": "acme-av",
"resource": { "type": "tool", "id": "t_12" }
}
| Header | Value |
|---|---|
Tracknicity-Event-Id | The event id. |
Tracknicity-Timestamp | Unix time in seconds when this attempt was signed. |
Tracknicity-Signature | v1= followed by a hex HMAC-SHA256 signature. |
Verifying signatures
Compute HMAC-SHA256 with your signing secret as the key, over this string:
{Tracknicity-Timestamp}.{Tracknicity-Event-Id}.{raw request body}
Hex-encode the result and compare it with the value after v1= using a constant-time comparison. Use the raw body bytes exactly as received, before any JSON parsing.
import { createHmac, timingSafeEqual } from 'node:crypto';
function verifyTracknicityWebhook(rawBody, headers, secret) {
const timestamp = headers['tracknicity-timestamp'];
const eventId = headers['tracknicity-event-id'];
const signature = (headers['tracknicity-signature'] ?? '').replace(/^v1=/, '');
const expected = createHmac('sha256', secret)
.update(`${timestamp}.${eventId}.${rawBody}`)
.digest('hex');
return signature.length === expected.length &&
timingSafeEqual(Buffer.from(signature), Buffer.from(expected));
}
Also check that the timestamp is recent, and store event IDs you have processed so you can ignore repeats.
Delivery and retries
- Respond with any
2xxstatus within 10 seconds to mark the delivery as delivered. Keep your response body under 64 KB. - Redirects are not followed. A
3xx,4xxor5xxresponse, a timeout or a connection error counts as a failure. - Failed deliveries are retried with exponential backoff: about 1, 2, 4, 8, 16 and 32 minutes, then every hour.
- Retries stop 24 hours after the event was queued. The delivery is then marked expired.
- While Connect is inactive, no new events are queued and pending deliveries pause. They still expire at the 24-hour deadline.
- Revoking a subscription cancels its pending deliveries.
- Deliveries can arrive out of order. Use
occurredAtand fetch the current record from the API when order matters. - Webhook deliveries do not count toward your monthly API calls.
Rate limits and metering
What counts
| Counts toward the monthly allowance | Does not count |
|---|---|
Every /v1 request made with a valid API key or OAuth token, including requests that return an error (403, 404, 429 and so on) | Requests with a missing, invalid, revoked or expired credential (401) |
| Each export page | Webhook deliveries |
| Each MCP tool call that reaches the API | Normal use of the Tracknicity apps |
Limits
| Limit | Value |
|---|---|
| Monthly allowance | 100,000 calls per company |
| Per-minute rate | 120 requests per minute per company, across all keys and connections |
| Per-minute rate after the monthly allowance is used | 10 requests per minute |
The per-minute window is each calendar minute (UTC). The monthly window starts on your subscription's billing day at midnight UTC, including for yearly plans. Before you have a billing day, it starts on your trial start day. In shorter months the window starts on the last day of the month.
You are never charged for overage. When you reach 100,000 calls, the API keeps serving up to 10 requests per minute until the next window starts.
Company admins and the owner get one email when usage passes 80%, and a banner appears in the dashboard. Admins can ask for a higher allowance from Settings > Connect usage. Tracknicity reviews each request.
Headers
Every response to a request with a valid credential includes:
| Header | Meaning |
|---|---|
X-RateLimit-Limit | Requests allowed this minute (120, or 10 after the monthly allowance is used). |
X-RateLimit-Remaining | Requests left this minute. |
X-RateLimit-Reset | Unix time in seconds when the current minute window ends. |
Retry-After | Seconds to wait. Sent only with a 429. |
429 responses
Below the monthly allowance, going over 120 per minute returns:
{ "error": { "code": "rate_limit_exceeded", "message": "The request limit has been reached. Retry after the reset time." } }
After the monthly allowance is used, going over 10 per minute returns:
{
"error": {
"code": "monthly_limit_reached",
"message": "Your company has used its monthly Tracknicity Connect calls. An admin can request more.",
"requestMoreUrl": "https://app.tracknicity.com/dashboard#/company/settings?section=connect-usage"
}
}
Wait for Retry-After seconds before you retry.
Connect not active
If Connect is off, scheduled removal has taken effect, the company is inactive or its trial has ended, every request returns 403:
{
"error": {
"code": "connect_not_active",
"message": "Tracknicity Connect is not active for this company.",
"billingUrl": "https://app.tracknicity.com/dashboard#/company/settings?section=billing"
}
}
MCP server
The Tracknicity MCP server lets AI assistants search and update your Tracknicity data in a conversation.
https://api.tracknicity.com/mcp
The server is a client of the /v1 API. It never reads the database directly. Each tool call is one /v1 request and is metered the same way. It supports the 2026-07-28 discovery flow and stateless 2025-11-25 clients. Sign-in uses the OAuth flow above.
Connecting from Claude
- In Claude, add a custom connector and enter
https://api.tracknicity.com/mcp. - Claude opens the Tracknicity sign-in and consent page.
- Sign in, choose your company and approve the requested access.
Connecting from ChatGPT
- In ChatGPT, add a new connector (app) and enter
https://api.tracknicity.com/mcp. Availability and menu names can depend on your ChatGPT plan and settings; the production flow is still being verified. - ChatGPT opens the Tracknicity sign-in and consent page.
- Sign in, choose your company and approve the requested access.
Any active company member can connect an assistant once an admin has turned on Connect. The assistant can only do what that user can do, within the scopes they approved. To remove access, use Settings > Connected assistants.
Tools
| Tool | Type | OAuth scope | What it does |
|---|---|---|---|
search_items | Read | inventory:read | Searches inventory by manufacturer, model, part number, UPC or description. |
get_item_locations | Read | inventory:read | Shows one item's stock across warehouses, vans and staging. |
list_projects | Read | projects:read | Lists active projects with names and IDs. |
get_project | Read | projects:read | Shows one project with its staged and delivered items. |
get_purchase_orders | Read | inventory:read | Lists purchase-order lines with ordered, received and delivered counts. Filters by project, PO number or both. |
list_staging_area | Read | inventory:read | Lists everything in the staging area, including items staged from stock, with each line's sub-location and staged quantity. Filters by project. |
get_serial_number | Read | inventory:read | Finds the item, project, install location, MAC and IP address for an exact serial number. |
list_tool_checkouts | Read | inventory:read | Lists checked-out tools, who has each one and since when. |
get_time_summary | Read | time:read | Compares budgeted and actual hours for one project. |
get_inventory_valuation | Read | financials:read | Returns inventory, staging and combined value between two dates. |
log_time | Write | time:write | Creates a time entry for you in Pending approval. |
create_part_request | Write | transactions:write | Requests parts from the office for a location or project. |
check_out_item | Write | transactions:write | Moves inventory from a warehouse or van to another location or a project. |
stage_items | Write | transactions:write | Stages inventory for a project and creates the related stock purchase-order lines. |
check_in_tool | Write | transactions:write | Checks in a tool that is currently checked out. |
Read tools are marked readOnlyHint: true. Write tools are marked destructiveHint: true. List tools accept limit (1 to 50, default 25) and cursor.
Confirming writes
Write tools never save on the first call.
- The assistant calls the tool with
confirmset tofalse. Tracknicity returns a preview and aconfirmationToken. Nothing is saved. - The assistant shows you the preview and asks you to approve it.
- Only after you approve does the assistant call the tool again with the same fields, the
confirmationTokenandconfirm: true.
The token expires after 5 minutes and works only for the exact same request. If you change anything, the assistant must preview again.
Messages the assistant may show
| Situation | Message |
|---|---|
| Monthly allowance used and over 10 per minute | "Your company has used its monthly Tracknicity Connect calls. An admin can request more at {usage page}." |
| Connect not active | "Tracknicity Connect is not active for your company. An admin can review billing settings at {billing page}." |
| Over 120 per minute | "Tracknicity Connect is temporarily rate limited. Retry after N seconds." |
| Token expired or revoked | "The Tracknicity connection needs to be renewed. Reconnect the assistant and try again." |
Error codes
/v1 API
| Status | Code | Meaning |
|---|---|---|
| 400 | invalid_request | Body is not a JSON object, is empty, is over 256 KB, or has unsupported fields. |
| 400 | invalid_json | Body is not valid JSON. |
| 400 | invalid_limit | limit is not a positive integer. |
| 400 | invalid_cursor | Cursor is malformed or belongs to another endpoint or filter. |
| 400 | invalid_search | search is not a string of 200 characters or fewer. |
| 400 | invalid_item_id | Item ID in the path is invalid. |
| 400 | invalid_project_id | Project ID is invalid. |
| 400 | invalid_po_number | poNumber is longer than 100 characters. |
| 400 | invalid_serial_number | serialNumber is missing or longer than 250 characters. |
| 400 | invalid_date_range | A date is not a valid YYYY-MM-DD date, or startDate is after endDate. |
| 400 | invalid_time_entry | The time entry or time range has unsupported fields. |
| 400 | invalid_part_request | The parts request has unsupported fields. |
| 400 | invalid_stock_movement | The stock movement or one of its items is invalid. |
| 400 | invalid_tool_check_in | The tool check-in or tool ID is invalid. |
| 400 | invalid_confirmation | Confirmation token is missing or malformed, or was sent with a preview. |
| 400 | invalid_write | The write request could not be prepared. |
| 401 | invalid_api_key | API key is missing, malformed, unknown or revoked. |
| 401 | invalid_token | OAuth token is invalid, expired, revoked or issued for another resource. |
| 403 | connect_not_active | Connect is not active for the company. Includes billingUrl. |
| 403 | membership_inactive | The credential's user is no longer an active company member. |
| 403 | insufficient_scope | The API key is read-only, or the OAuth token lacks the scope in scope. |
| 403 | permission_denied | The user lacks the Tracknicity permission for this data. |
| 404 | not_found | The endpoint, item or project does not exist. |
| 409 | invalid_confirmation | Confirmation token is unknown or expired. |
| 409 | confirmation_mismatch | Confirmation token does not match this user, operation or payload. |
| 415 | unsupported_media_type | Write request did not use application/json. |
| 429 | rate_limit_exceeded | Over 120 requests this minute. |
| 429 | monthly_limit_reached | Monthly allowance used and over 10 requests this minute. Includes requestMoreUrl. |
| 502 | invalid_write_service_response | The write could not be confirmed. Retry the commit with the same token. |
| 503 | write_service_unavailable | Writes are temporarily unavailable. |
| 503 | service_unavailable | The API is temporarily unavailable. |
| 503 | usage_unavailable, rate_limit_unavailable, billing_anchor_unavailable, connect_configuration_invalid | Usage or billing state could not be read. Retry later or contact support. |
Write validation errors come from Tracknicity's write service. They use the same error envelope with codes such as invalid-argument (400), failed-precondition (400, for example not enough stock or a tool that is not checked out), permission-denied (403), not-found (404) and already-exists (409). Read the message for details.
OAuth endpoints
OAuth errors use the standard { "error": "...", "error_description": "..." } form.
| Status | Code | Meaning |
|---|---|---|
| 400 | invalid_request | A required parameter is missing or invalid. |
| 400 | invalid_client_metadata | Registration metadata is invalid. |
| 400 | invalid_redirect_uri | Redirect URI is not allowed. |
| 400 | invalid_scope | Unknown or duplicate scope, or no data scope requested. |
| 400 | invalid_grant | Code or refresh token is invalid, expired, already used, or does not match the PKCE verifier. |
| 400 | invalid_target | resource is not the Tracknicity MCP resource. |
| 400 | unauthorized_client | The client is not registered for this grant type. |
| 401 | invalid_client | Client authentication failed. |
| 403 | membership_inactive | The user is no longer an active company member. |
| 404 | connection_not_found | The connection does not exist or belongs to someone else. |
| 404 | request_not_found | The consent request does not exist. |
| 410 | request_expired | The consent request is older than 10 minutes or was already used. |
Support
Email support@tracknicity.com. Include your company name, the endpoint or tool, the time of the request (UTC) and the error code. Never send an API key, access token or webhook secret.