Connect your own tools and AI agents to Inclox. Log time, plan and complete to-dos, see who is working right now and pull hours reports, from a script, Zapier/Make, your CRM, or an AI assistant like Claude, ChatGPT, Cursor or Gemini.
| REST API | https://inclox.com/api/v1 |
| MCP server (for AI agents) | https://inclox.com/mcp (Streamable HTTP) |
| Authentication | Authorization: Bearer icx_live_… |
| Plans | Team and Business |
| Rate limit | 120 requests per minute per key (REST and MCP together) |
| OpenAPI 3.1 | openapi.json |
Connect your AI agent
- In the Inclox dashboard open Settings → API & integrations (workspace owner).
- Click Create key, give it a name and pick what the agent may do. Copy the key: it is shown only once.
- Add Inclox to your agent with one of the snippets below. Then ask, for example: "Who is tracking right now?", "Log 45 minutes for Ann yesterday 14:00–14:45, note: client call", "Create a to-do for Ben: prepare the Q4 report, due Friday" or "How many hours did each person work last week?"
Claude Code
claude mcp add --transport http inclox https://inclox.com/mcp --header "Authorization: Bearer icx_live_YOUR_KEY"
Cursor, VS Code, Windsurf and other clients with a JSON config
{ "mcpServers": { "inclox": { "url": "https://inclox.com/mcp", "headers": { "Authorization": "Bearer icx_live_YOUR_KEY" } } } }
Gemini CLI (~/.gemini/settings.json)
{ "mcpServers": { "inclox": { "httpUrl": "https://inclox.com/mcp", "headers": { "Authorization": "Bearer icx_live_YOUR_KEY" } } } }
Claude Desktop (via the mcp-remote bridge, in claude_desktop_config.json)
{ "mcpServers": { "inclox": { "command": "npx", "args": ["mcp-remote", "https://inclox.com/mcp", "--header", "Authorization: Bearer icx_live_YOUR_KEY"] } } }
ChatGPT (developer mode, custom connector): server URL https://inclox.com/mcp, authentication by header Authorization: Bearer icx_live_YOUR_KEY. Connectors that only offer OAuth sign-in cannot connect yet (see Not included yet).
Any other agent: give it the OpenAPI description (openapi.json) and the key.
Treat a key like a password. Anyone with it can act on your workspace within its permissions. Give each agent its own key with only the permissions it needs, and revoke keys you no longer use.
MCP tools
| Tool | Permission | What it does |
|---|---|---|
get_workspace | workspace:read | Name, plan, time zone, daily goal |
list_members | workspace:read | People and their ids |
get_presence | workspace:read | Who is tracking right now |
list_time_entries, get_time_entry | time:read | Read time |
create_time_entry | time:write | Add manual time |
update_time_entry, delete_time_entry | time:write | Note on any entry; times only on manual entries |
list_todos, get_todo | todos:read | Read to-dos and their steps |
create_todo, update_todo, delete_todo | todos:write | Plan, change, complete, delete |
get_time_report | reports:read | Hours per person / day |
An agent only sees the tools its key allows. Refusals (missing permission, not found, overlap, plan) come back as a tool result with isError: true and the same error code as the REST API, so the agent can read and react. Write tools accept an optional idempotency_key.
API keys and permissions
- Only the workspace owner creates and revokes keys. Admins can see the list. A key belongs to the workspace, not to a person.
- A key looks like
icx_live_followed by 32 letters and digits. Inclox stores only a SHA-256 hash and the first 15 characters, so a lost key cannot be shown again. Revoke it and create a new one. - Up to 10 active keys per workspace. Revoking takes effect on the next request.
- Every key works on one workspace. Ids of other workspaces are answered with
404 not_found, exactly like ids that do not exist. - On the Free plan (also after a downgrade) every key answers
402 plan_requiredand webhooks pause. Nothing is deleted. After upgrading the same keys work again.
| Permission | Allows |
|---|---|
workspace:read | GET /workspace, /members, /members/{id}, /presence |
time:read | GET /time-entries, /time-entries/{id} |
time:write | POST /time-entries, PATCH and DELETE /time-entries/{id} |
todos:read | GET /todos, /todos/{id} |
todos:write | POST /todos, PATCH and DELETE /todos/{id} |
reports:read | GET /reports/time, /exports/time-entries |
webhooks:write | GET, POST /webhooks, DELETE /webhooks/{id} |
REST API
All requests and responses are JSON (UTF-8). Send the key in the Authorization header. The API is meant for servers and agents. Browsers get no CORS permission, so a key never has to sit in a web page.
curl https://inclox.com/api/v1/me -H "Authorization: Bearer icx_live_YOUR_KEY"
Endpoints
| Method and path | Permission | Notes |
|---|---|---|
GET /me | any | Check a key: workspace, plan, permissions |
GET /workspace | workspace:read | Name, plan, time zone, daily goal, seats |
GET /members | workspace:read | limit 1–200, offset |
GET /members/{id} | workspace:read | |
GET /presence | workspace:read | Who is tracking now (same rule as the live dashboard) |
GET /time-entries | time:read | from, to (YYYY-MM-DD, workspace time zone), member_id, limit 1–500, offset |
POST /time-entries | time:write | Manual time, see below |
GET /time-entries/{id} | time:read | |
PATCH /time-entries/{id} | time:write | note on any entry; started_at/ended_at on manual entries |
DELETE /time-entries/{id} | time:write | Manual entries only |
GET /todos | todos:read | member_id, completed, top_level, parent_id, due_before, limit, offset |
POST /todos | todos:write | title + member_id (a to-do) or parent_id (a step) |
GET /todos/{id} | todos:read | With steps and attachment names |
PATCH /todos/{id} | todos:write | title, description, due_date, completed, member_id |
DELETE /todos/{id} | todos:write | With its steps; to-dos with files: delete in the dashboard |
GET /reports/time | reports:read | from, to (max 366 days), member_id, group_by = member, day or member_day, format = json or csv |
GET /exports/time-entries | reports:read | Every entry of a range as CSV (default) or JSON |
GET /webhooks, POST /webhooks | webhooks:write | See Webhooks |
DELETE /webhooks/{id} | webhooks:write |
Lists return limit, offset and has_more. Ask for the next page with offset = offset + limit.
Adding time
Inclox is proof-of-work tracking. Time recorded by the trackers can be read, and its note can be changed, but it cannot be edited or deleted through the API. Time added through the API shows up as manual time in the dashboard ("source": "api" in the API). An entry is 1 minute to 24 hours long, may not end in the future and may not overlap time the person already has (409 overlaps_existing).
curl -X POST https://inclox.com/api/v1/time-entries -H "Authorization: Bearer icx_live_YOUR_KEY" -H "Content-Type: application/json" -H "Idempotency-Key: 2f1c7c0e-crm-call-8812" -d '{"member_id":"4b9e…","started_at":"2026-11-03T14:00:00+01:00","duration_seconds":2700,"note":"Client call"}'
Send started_at + ended_at, or one of them + duration_seconds. Timestamps need a time zone (Z or +01:00). The calendar day (date) is derived in the workspace time zone, the same way the trackers do it.
Idempotency
For POST, PATCH and DELETE you can send an Idempotency-Key header (1–255 visible characters, e.g. a UUID). If a request is retried with the same key within 24 hours, Inclox returns the first response again with Idempotent-Replayed: true instead of creating a second entry. The same key with a different request gets 422 idempotency_key_reused; while the first request is still running, 409 idempotency_in_progress. Keys are separate per API key. Server errors (5xx) are not stored, so you can retry them with the same key.
Errors
Every error has the same shape:
{ "error": "insufficient_scope", "message": "This API key lacks the time:write scope.", "required_scope": "time:write" }
| Status | error | Meaning |
|---|---|---|
| 400 | invalid_json, invalid_body, invalid_range, invalid_date, invalid_limit, invalid_offset, invalid_group_by, invalid_format, invalid_idempotency_key, invalid_webhook_url, invalid_events | The request is wrong; message says how. Unknown fields are refused, not ignored. |
| 401 | unauthorized, invalid_api_key | No key, or unknown / revoked key |
| 402 | plan_required | The workspace plan has no API access |
| 403 | insufficient_scope | The key lacks required_scope |
| 404 | not_found | No such item in this workspace (also for items of other workspaces) |
| 405 | method_not_allowed | See the Allow header |
| 409 | overlaps_existing, tracked_entry_immutable, has_attachments, endpoint_limit, idempotency_in_progress | Conflict with existing data |
| 413 | payload_too_large, export_too_large | Body over 64 KB, or more than 50,000 rows in an export |
| 422 | member_not_found, parent_not_found, member_cannot_track, idempotency_key_reused | A referenced id is not in this workspace, or similar |
| 429 | rate_limited | Wait Retry-After seconds |
| 502, 503 | upstream_error, api_unavailable | Temporary; retry |
Every authenticated response carries X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset (Unix seconds).
Webhooks
Inclox sends a signed POST to your URL when something happens, no matter where it happened: in a tracker, in the dashboard, through the API or through an agent. Add endpoints under Settings → API & integrations or with POST /webhooks ({"url": "https://…", "events": ["time_entry.created"], "description": "CRM"}). The signing secret (whsec_…) is shown once. Up to 5 endpoints per workspace.
| Event | When | data |
|---|---|---|
time_entry.created | A session ends in a tracker, or time is added | { "time_entry": {…} } |
time_entry.updated | Times or note changed | { "time_entry": {…} } |
time_entry.deleted | An entry was deleted | { "time_entry": { "id", "member_id", "date" } } |
todo.created | A to-do or step was created | { "todo": {…} } |
todo.updated | Title, description, due date, assignee changed, or re-opened | { "todo": {…} } |
todo.completed | A to-do was ticked off | { "todo": {…} } |
todo.deleted | A to-do was deleted | { "todo": { "id", "title", "member_id", "parent_id" } } |
ping | The Send test button | { "message": "…" } |
Body: { "id": "evt_…", "type": "time_entry.created", "api_version": "2026-11-01", "created_at": "…", "workspace_id": "…", "data": {…} }. Headers: X-Inclox-Event, X-Inclox-Delivery, X-Inclox-Signature, User-Agent: inclox-webhooks/1.
- Events are sent within about a minute. Answer with any 2xx within 5 seconds. Redirects are not followed.
- Failed deliveries are retried after 1 min, 5 min, 30 min, 2 h and 12 h (6 attempts), with the identical body. Deduplicate on
id. Order is not guaranteed, usecreated_at. - The dashboard shows the last 25 deliveries. Response bodies are never stored, and the log is deleted after 30 days.
- Allowed URLs:
https://, port 443, a public host name. IP addresses,localhost,.local,.internaland similar names are refused, and every delivery checks again that the host resolves only to public addresses.
Verify the signature. X-Inclox-Signature: t=<unix seconds>,v1=<hex> where v1 = HMAC-SHA256(secret, "<t>.<raw body>"). Use the raw body bytes, compare in constant time, and reject a t older than 5 minutes.
import crypto from "node:crypto";
export function verifyInclox(secret, header, rawBody, toleranceSec = 300) {
const parts = Object.fromEntries(header.split(",").map((kv) => kv.split("=", 2)));
const t = Number(parts.t);
if (!t || !parts.v1 || Math.abs(Date.now() / 1000 - t) > toleranceSec) return false;
const expected = crypto.createHmac("sha256", secret).update(t + "." + rawBody).digest("hex");
return parts.v1.length === expected.length && crypto.timingSafeEqual(Buffer.from(parts.v1), Buffer.from(expected));
}
import hmac, hashlib, time
def verify_inclox(secret: str, header: str, raw_body: bytes, tolerance: int = 300) -> bool:
parts = dict(p.split("=", 1) for p in header.split(","))
t = int(parts.get("t", 0))
if not t or abs(time.time() - t) > tolerance:
return False
expected = hmac.new(secret.encode(), f"{t}.".encode() + raw_body, hashlib.sha256).hexdigest()
return hmac.compare_digest(parts.get("v1", ""), expected)
Not included yet
- OAuth sign-in for MCP. Agents authenticate with an API key in a header. Connectors that only support an OAuth flow cannot connect yet.
- Screenshots, devices, payroll and pay rates are not available through the API.
- Inviting or removing people, workspace settings and billing stay in the dashboard.
- File attachments of to-dos: names only, no upload or download.
Questions or a missing endpoint? Write to info@inclox.com.