Militime API

Introduction

The Militime API lets you read and write your organization's data with a per-organization access token.

The Militime API is a REST API for programmatic access to your organization's data — clients, projects, time entries, team members, teams and reports. Every request is authenticated with a per-organization access token and is automatically scoped to that organization.

There's also a Model Context Protocol (MCP) server exposing the same surface as tools, so AI agents like Claude and Cursor can work with your Militime data directly.

Base URL

https://app.militime.ai/api/v1

Quick start

  1. In Militime, open Settings → Developers and create an API key. Copy the token (shown once) — it looks like mt_live_….
  2. Send it as a bearer token:
curl https://app.militime.ai/api/v1/me \
  -H "Authorization: Bearer mt_live_your_token"
{
  "object": "token",
  "workspace_id": "ws_123",
  "key_id": "key_abc",
  "name": "Zapier production",
  "scopes": ["clients:read", "time_entries:read", "time_entries:write"]
}

Conventions

  • JSON everywhere. Requests with a body send Content-Type: application/json; responses are always JSON.
  • snake_case fields. Every resource uses snake_case property names and carries an object type discriminator (e.g. "object": "client").
  • Organization scoping is automatic. A token only ever sees and mutates the organization it belongs to — you never pass a workspace id.
  • Timestamps are ISO 8601 (UTC), e.g. 2026-07-06T14:20:00.000Z.

OpenAPI

A machine-readable OpenAPI 3.1 description is served at /api/v1/openapi.json for use with codegen tools, Postman and Insomnia.