Developers

Your time data, in your own tools.

A simple, read-only REST API for payroll systems, BI dashboards and anything else you build. Available on the Business plan.

1. Make a key

An owner or admin opens Settings → API keys in TimeSurgen and makes a key. The key is shown once, so copy it to a safe place. Turn a key off any time and it stops working straight away.

2. Send it with every request

Put the key in the Authorization header. All answers are JSON.

curl https://api.timesurgen.com/api/v1/time-entries?start=2026-11-01&end=2026-11-30 \
  -H "Authorization: Bearer tsk_your_key_here"

3. Read the answer

Lists come in pages. Use limit (1 to 1000, default 200) and offset to move through them. has_more tells you when there is another page.

{
  "start": "2026-11-01",
  "end": "2026-11-30",
  "data": [
    {
      "id": "01a2…",
      "user_id": "01a1…",
      "project_id": "01a3…",
      "date": "2026-11-03",
      "started_at": "2026-11-03T04:00:00+00:00",
      "ended_at": "2026-11-03T06:30:00+00:00",
      "minutes": 150,
      "billable": true,
      "note": "Homepage design",
      "running": false
    }
  ],
  "total": 412, "limit": 200, "offset": 0, "has_more": true
}
Endpoints

Everything you need, read-only.

The API never changes your data. Dates are YYYY-MM-DD in your company's time zone; times are ISO 8601 in UTC.

RequestWhat you get
GET /api/v1/companyYour company. Name, time zone, currency and office hours.
GET /api/v1/peoplePeople. Everyone in the company with role, department and job title. Filter with active=true or false.
GET /api/v1/projectsProjects. Projects with client, billable flag, hourly rate, budget and tasks. Filter with status.
GET /api/v1/time-entriesTime entries. Every entry with start, end, minutes, project, task and note. Filter with start, end, user_id and project_id (up to 366 days).
GET /api/v1/attendanceAttendance. Per person per day: status, first in, last out, worked, late and left-early minutes, leave and holidays (up to 92 days).
GET /api/v1/timesheetsTimesheets. Submitted, approved and sent-back timesheets. Filter with status and since.
GET /api/v1/leaveLeave. Leave requests with type, dates, days and status. Filter with status, start and end.

Limits and errors

Each key can make 120 requests a minute. Above that you get 429 with a Retry-After header in seconds.

401 means the key is missing, wrong or turned off. 403 means the company is not on the Business plan or is paused. 422 means a filter is not valid, for example a date range that is too long. Every error has a plain detail message.

Machine-readable spec

An OpenAPI 3 description of the API is at https://api.timesurgen.com/api/v1/openapi.json. Load it into Postman, Insomnia or a code generator.

Privacy

The API returns the same company data an owner sees in the app. Screenshots and the apps people use are not available through the API.

Bring your own AI

Ask your own AI assistant about your team.

TimeSurgen speaks the Model Context Protocol (MCP). Connect any MCP-compatible assistant with a company API key and ask questions from the tools you already use.

Connect

Add a remote MCP server in your assistant with this address and an API key from Settings → API keys sent as a Bearer token.

{
  "mcpServers": {
    "timesurgen": {
      "type": "http",
      "url": "https://api.timesurgen.com/api/v1/mcp",
      "headers": { "Authorization": "Bearer tsk_your_key_here" }
    }
  }
}

What it can read

Company overview and people, hours by project, client, person or day, attendance, leave, approvals waiting, today's briefing, burnout signals and project forecasts. Every tool is read-only.

Screenshots and the apps people use are never shared. The connector needs the Business plan, like the API.

Make every hour count.

Create your company, invite your team and see the first hours land today.