Docs / API objects
Company
Read your workspace's name, week start day and time format.
The company is the workspace the token belongs to.
Retrieve the company
/ api/ v2/ companyDiffers from Harvest
Fields the time tracker has no data for hold their empty value; see the field table.
Returns
Status 200 with a company object.
curl "https://t.momentic.studio/api/v2/company" \
-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/company", {
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/company",
headers={
"Authorization": f"Bearer {os.environ['TOKEN']}",
"Harvest-Account-Id": os.environ["ACCOUNT_ID"],
"User-Agent": "MyApp (admin@example.com)",
},
)
data = response.json(){
"base_uri": "https://tracker.example.com",
"full_domain": "tracker.example.com",
"name": "Example Agency",
"is_active": true,
"week_start_day": "Monday",
"wants_timestamp_timers": false,
"time_format": "decimal",
"date_format": "%Y-%m-%d",
"plan_type": "",
"clock": "12h",
"currency_code_display": "iso_code_none",
"currency_symbol_display": "symbol_before",
"decimal_symbol": ".",
"thousands_separator": ",",
"color_scheme": "",
"weekly_capacity": 144000,
"expense_feature": false,
"invoice_feature": false,
"estimate_feature": false,
"approval_feature": false,
"team_feature": true,
"currency": "USD",
"day_entry_notes_required": null,
"e_invoicing_status": null,
"saml_sign_in_required": false
}Update the company
/ api/ v2/ companyNot supported
Timer mode and weekly capacity are not workspace settings here. Change workspace settings in the app.
Returns
Status 200. No body.
curl -X PATCH "https://t.momentic.studio/api/v2/company" \
-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/company", {
method: "PATCH",
headers: {
"Authorization": `Bearer ${process.env.TOKEN}`,
"Harvest-Account-Id": process.env.ACCOUNT_ID,
"User-Agent": "MyApp (admin@example.com)",
},
});
console.log(response.status);import os
import requests
response = requests.patch(
"https://t.momentic.studio/api/v2/company",
headers={
"Authorization": f"Bearer {os.environ['TOKEN']}",
"Harvest-Account-Id": os.environ["ACCOUNT_ID"],
"User-Agent": "MyApp (admin@example.com)",
},
)
print(response.status_code)The note above says what this endpoint returns.
Retrieve reimbursement settings
/ api/ v2/ company/ reimbursement_settingsNot supported
The time tracker has no expenses. Lists are empty, a single record is not found (404), and a write is refused (422).
Returns
Status 200. No body.
curl "https://t.momentic.studio/api/v2/company/reimbursement_settings" \
-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/company/reimbursement_settings", {
headers: {
"Authorization": `Bearer ${process.env.TOKEN}`,
"Harvest-Account-Id": process.env.ACCOUNT_ID,
"User-Agent": "MyApp (admin@example.com)",
},
});
console.log(response.status);import os
import requests
response = requests.get(
"https://t.momentic.studio/api/v2/company/reimbursement_settings",
headers={
"Authorization": f"Bearer {os.environ['TOKEN']}",
"Harvest-Account-Id": os.environ["ACCOUNT_ID"],
"User-Agent": "MyApp (admin@example.com)",
},
)
print(response.status_code)The note above says what this endpoint returns.
Update reimbursement settings
/ api/ v2/ company/ reimbursement_settingsNot supported
The time tracker has no expenses. Lists are empty, a single record is not found (404), and a write is refused (422).
Returns
Status 200. No body.
curl -X PATCH "https://t.momentic.studio/api/v2/company/reimbursement_settings" \
-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/company/reimbursement_settings", {
method: "PATCH",
headers: {
"Authorization": `Bearer ${process.env.TOKEN}`,
"Harvest-Account-Id": process.env.ACCOUNT_ID,
"User-Agent": "MyApp (admin@example.com)",
},
});
console.log(response.status);import os
import requests
response = requests.patch(
"https://t.momentic.studio/api/v2/company/reimbursement_settings",
headers={
"Authorization": f"Bearer {os.environ['TOKEN']}",
"Harvest-Account-Id": os.environ["ACCOUNT_ID"],
"User-Agent": "MyApp (admin@example.com)",
},
)
print(response.status_code)The note above says what this endpoint returns.
Enroll in e-invoicing
/ api/ v2/ company/ e_invoicingNot supported
The time tracker has no invoices. Lists are empty, a single record is not found (404), and a write is refused (422).
Returns
Status 200. No body.
curl -X POST "https://t.momentic.studio/api/v2/company/e_invoicing" \
-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/company/e_invoicing", {
method: "POST",
headers: {
"Authorization": `Bearer ${process.env.TOKEN}`,
"Harvest-Account-Id": process.env.ACCOUNT_ID,
"User-Agent": "MyApp (admin@example.com)",
},
});
console.log(response.status);import os
import requests
response = requests.post(
"https://t.momentic.studio/api/v2/company/e_invoicing",
headers={
"Authorization": f"Bearer {os.environ['TOKEN']}",
"Harvest-Account-Id": os.environ["ACCOUNT_ID"],
"User-Agent": "MyApp (admin@example.com)",
},
)
print(response.status_code)The note above says what this endpoint returns.
Leave e-invoicing
/ api/ v2/ company/ e_invoicingNot supported
The time tracker has no invoices. Lists are empty, a single record is not found (404), and a write is refused (422).
Returns
Status 200. No body.
curl -X DELETE "https://t.momentic.studio/api/v2/company/e_invoicing" \
-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/company/e_invoicing", {
method: "DELETE",
headers: {
"Authorization": `Bearer ${process.env.TOKEN}`,
"Harvest-Account-Id": process.env.ACCOUNT_ID,
"User-Agent": "MyApp (admin@example.com)",
},
});
console.log(response.status);import os
import requests
response = requests.delete(
"https://t.momentic.studio/api/v2/company/e_invoicing",
headers={
"Authorization": f"Bearer {os.environ['TOKEN']}",
"Harvest-Account-Id": os.environ["ACCOUNT_ID"],
"User-Agent": "MyApp (admin@example.com)",
},
)
print(response.status_code)The note above says what this endpoint returns.
The company object
| Field | Type | Description |
|---|---|---|
base_uristring | string | The address of the time tracker. |
full_domainstring | string | The host name of the time tracker. |
namestring | string | The workspace name. |
is_activeboolean | boolean | True while the workspace is not scheduled for deletion. |
week_start_daystring | string | Sunday or Monday, from the workspace settings. |
wants_timestamp_timersboolean | boolean | False: entries are tracked by duration, with optional start and end times. Both create forms are accepted whatever this says. |
time_formatstring | string | decimal. |
date_formatstring | string | %Y-%m-%d. |
plan_typestring | string | An empty string. The time tracker has no such data, so this is the empty value. |
clockstring | string | 12h. Started and ended times are written like 9:30am. |
currency_code_displaystring | string | iso_code_none. |
currency_symbol_displaystring | string | symbol_before. |
decimal_symbolstring | string | A period. |
thousands_separatorstring | string | A comma. |
color_schemestring | string | An empty string. The time tracker has no such data, so this is the empty value. |
weekly_capacityinteger | integer | 144000 (40 hours), the capacity a new person gets. Capacity is set per person; see weekly_capacity on users. |
expense_featureboolean | boolean | False: the time tracker has no expenses. |
invoice_featureboolean | boolean | False: the time tracker has no invoices. |
estimate_featureboolean | boolean | False: the time tracker has no estimates. |
approval_featureboolean | boolean | False: the time tracker has no timesheet approval. Closed months lock entries instead. |
team_featureboolean | boolean | True: teams are listed as roles. |
currencystring | string | USD. |
day_entry_notes_requireddatetime or null | datetime or null | Null. Harvest gives the time notes became required. The workspace's notes rule is in the app and has no such time. |
e_invoicing_statusstring or null | string or null | Null. The time tracker has no such data, so this is the empty value. |
saml_sign_in_requiredboolean | boolean | False. The time tracker has no such data, so this is the empty value. |