Skip to content

Docs / API reference

API reference

Read and write time entries, projects, clients and people from your own scripts. The API uses the Harvest API v2 paths and objects, so a tool built for Harvest works after you change its base URL and token.

Each request sends a workspace API token, and each response is JSON.

View as Markdown
Base URL
https://t.momentic.studio/api/v2
Account id
Copy it from Settings, API tokens and send it in the Harvest-Account-Id header.
Docs index for AI agents
https://t.momentic.studio/llms.txt
Coming from Harvest
Moving from Harvest shows what to change in a Harvest integration.

Quick start

  1. Create a token

    In the app, open Settings, API tokens and create a token. Copy the token and the account id from that page. The app shows the token once.

  2. Send a request

    Set the TOKEN and ACCOUNT_ID environment variables, then run the example. It asks for the person who owns the token.

  3. Read the response

    The response is that person's user record. Users explains each field.

curl "https://t.momentic.studio/api/v2/users/me" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Harvest-Account-Id: $ACCOUNT_ID" \
  -H "User-Agent: MyApp (admin@example.com)"
Response200
{
  "id": 1001,
  "first_name": "Alex",
  "last_name": "Example",
  "employee_id": null,
  "email": "alex@example.com",
  "telephone": "",
  "timezone": "Central Time (US & Canada)",
  "has_access_to_all_future_projects": false,
  "is_contractor": false,
  "is_active": true,
  "weekly_capacity": 144000,
  "default_hourly_rate": 150,
  "cost_rate": null,
  "roles": [
    "Design"
  ],
  "access_roles": [
    "member"
  ],
  "permissions_profile": "Member",
  "permissions_claims": [
    "timers:read:own",
    "timers:write:own"
  ],
  "can_create_projects": false,
  "calendar_integration_enabled": false,
  "calendar_integration_source": null,
  "avatar_url": "",
  "created_at": "2026-01-05T15:00:00Z",
  "updated_at": "2026-01-05T15:00:00Z"
}

Use with an AI agent

Paste these instructions into your agent and give it a read-only token. Use the API with an AI agent explains which scopes to choose and how to revoke the token.

Prompt
Read https://t.momentic.studio/llms.txt and the pages it links to before you call the API. The API follows Harvest API v2 paths, methods and objects under https://t.momentic.studio/api/v2, and its OpenAPI document is at https://t.momentic.studio/api/v2/openapi.json. Send the token from the environment variable TIME_TRACKER_TOKEN as Authorization: Bearer <token>, the account id from TIME_TRACKER_ACCOUNT_ID as Harvest-Account-Id, and a User-Agent that names you, and make only GET requests unless I ask for a change.

API reference

API objects