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.
- 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.
- OpenAPI 3.1 document
- https:/
/ t. momentic. studio/ api/ v2/ openapi. json - 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
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.
Send a request
Set the TOKEN and ACCOUNT_ID environment variables, then run the example. It asks for the person who owns the token.
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)"const response = await fetch("https://t.momentic.studio/api/v2/users/me", {
headers: {
"Authorization": `Bearer ${process.env.TOKEN}`,
"Harvest-Account-Id": process.env.ACCOUNT_ID,
"User-Agent": "MyApp (admin@example.com)",
},
});
const data = await response.json();import os
import requests
response = requests.get(
"https://t.momentic.studio/api/v2/users/me",
headers={
"Authorization": f"Bearer {os.environ['TOKEN']}",
"Harvest-Account-Id": os.environ["ACCOUNT_ID"],
"User-Agent": "MyApp (admin@example.com)",
},
)
data = response.json(){
"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.
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
- AuthenticationSend a token and your account id with each request, and choose what each token may change.
- PaginationRead a long list page by page, up to 2000 records at a time, by following the next link.
- Rate limitsSend up to 100 requests in 15 seconds with each token, and up to 100 report requests in 15 minutes.
- ErrorsFind out why a request failed from its status code and the message in the response.
- Moving from HarvestSwitch a Harvest integration to the time tracker by changing its base URL, token and account id, then check what works differently.
- Use the API with an AI agentLet an AI agent read your time data with a read-only token and these docs in Markdown.
API objects
- Time entriesList, create, change and delete time entries, and start and stop timers.8 endpoints
- ProjectsList, create and change projects, with their type, hour budget, fee and dates.5 endpoints
- Clients and contactsClients and their contacts: the people invoices go to.10 endpoints
- TasksList, create and change the tasks your team logs time under.5 endpoints
- UsersList the people in your workspace, look up the token's own person, and see which projects each person is on.11 endpoints
- User assignmentsPut people on projects, choose who manages each project, and set each person's rate there.6 endpoints
- Task assignmentsChoose which tasks a project offers and whether each one is billable on that project.6 endpoints
- RolesList and change your teams. The Harvest API calls a team a role.5 endpoints
- Billable and cost ratesRead and add a person's billable rates over time. The API does not return cost rates.6 endpoints
- CompanyRead your workspace's name, week start day and time format.6 endpoints
- ReportsGet hours and billable amounts by client, project, task or person, uninvoiced time, and the budget used on each project.10 endpoints
- Invoices, estimates and expensesSee what the invoice, estimate and expense endpoints return. The API does not read or write these records.45 endpoints