Skip to content

Docs / API objects

Clients and contacts

Clients and their contacts: the people invoices go to.

View as Markdown

List clients

GET/api/v2/clients
Scope
reports:read

Differs from Harvest

Owners, admins and managers; a member is refused (403). address is null and currency is USD.

Query parameters

Query parameters of List clients
NameTypeDescription
is_activebooleanOptionalbooleantrue for active records only, false for archived only. Another value is ignored, as in Harvest.
updated_sincedatetimeOptionaldatetimeOnly records changed at or after this ISO 8601 date-time. A value that is not a date-time is refused with 400.
pageintegerOptionalintegerThe page to return, from 1. Default 1. A page past the end returns no records.
per_pageintegerOptionalintegerRecords per page, 1 to 2000. Default 2000. Another value is refused with 400.

Returns

Status 200 with a page of client objects under clients, and the pagination fields.

curl "https://t.momentic.studio/api/v2/clients" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Harvest-Account-Id: $ACCOUNT_ID" \
  -H "User-Agent: MyApp (admin@example.com)"
Response200
{
  "clients": [
    {
      "id": 2001,
      "name": "Example Client",
      "is_active": true,
      "address": null,
      "statement_key": "",
      "currency": "USD",
      "created_at": "2026-01-05T15:00:00Z",
      "updated_at": "2026-01-05T15:00:00Z"
    }
  ],
  "per_page": 2000,
  "total_pages": 1,
  "total_entries": 1,
  "next_page": null,
  "previous_page": null,
  "page": 1,
  "links": {
    "first": "https://t.momentic.studio/api/v2/clients?page=1&per_page=2000&ref=first",
    "next": null,
    "previous": null,
    "last": "https://t.momentic.studio/api/v2/clients?page=1&per_page=2000&ref=last"
  }
}

Retrieve a client

GET/api/v2/clients/{client_id}
Scope
reports:read

Differs from Harvest

Returns

Status 200 with a client object.

curl "https://t.momentic.studio/api/v2/clients/2001" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Harvest-Account-Id: $ACCOUNT_ID" \
  -H "User-Agent: MyApp (admin@example.com)"
Response200
{
  "id": 2001,
  "name": "Example Client",
  "is_active": true,
  "address": null,
  "statement_key": "",
  "currency": "USD",
  "created_at": "2026-01-05T15:00:00Z",
  "updated_at": "2026-01-05T15:00:00Z"
}

Create a client

POST/api/v2/clients
Scope
clients:write

Differs from Harvest

address and currency are ignored.

Body, as JSON or form fields

Body fields of Create a client
NameTypeDescription
namestringRequiredstringThe client's name, up to 200 characters.
is_activebooleanOptionalbooleanfalse creates it archived.

Returns

Status 201 with a client object.

curl -X POST "https://t.momentic.studio/api/v2/clients" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Harvest-Account-Id: $ACCOUNT_ID" \
  -H "User-Agent: MyApp (admin@example.com)" \
  -H "Content-Type: application/json" \
  -d '{"name":"Example Client"}'
Response201
{
  "id": 2001,
  "name": "Example Client",
  "is_active": true,
  "address": null,
  "statement_key": "",
  "currency": "USD",
  "created_at": "2026-01-05T15:00:00Z",
  "updated_at": "2026-01-05T15:00:00Z"
}

Update a client

PATCH/api/v2/clients/{client_id}
Scope
clients:write

Differs from Harvest

Changes name and is_active. address and currency are ignored.

Body, as JSON or form fields

Body fields of Update a client
NameTypeDescription
namestringOptionalstringThe client's name.
is_activebooleanOptionalbooleanfalse archives the client and its projects; true restores it.

Returns

Status 200 with a client object.

curl -X PATCH "https://t.momentic.studio/api/v2/clients/2001" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Harvest-Account-Id: $ACCOUNT_ID" \
  -H "User-Agent: MyApp (admin@example.com)"
Response200
{
  "id": 2001,
  "name": "Example Client",
  "is_active": true,
  "address": null,
  "statement_key": "",
  "currency": "USD",
  "created_at": "2026-01-05T15:00:00Z",
  "updated_at": "2026-01-05T15:00:00Z"
}

Delete a client

DELETE/api/v2/clients/{client_id}
Scope
clients:write

Not supported

Archive with is_active false. Deleting clients is not offered by the app.

Returns

Status 200. No body.

curl -X DELETE "https://t.momentic.studio/api/v2/clients/2001" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Harvest-Account-Id: $ACCOUNT_ID" \
  -H "User-Agent: MyApp (admin@example.com)"
Response

The note above says what this endpoint returns.

List contacts

GET/api/v2/contacts
Scope
reports:read

Differs from Harvest

Owners, admins and managers; a member is refused (403). A contact has one name and one phone number: first_name is the first word of the name, the phone is phone_office, and phone_mobile and fax are empty. invoice_recipient_status is none: invoice recipients are chosen per client in the app.

Query parameters

Query parameters of List contacts
NameTypeDescription
client_idintegerOptionalintegerOnly this client's contacts.
updated_sincedatetimeOptionaldatetimeOnly records changed at or after this ISO 8601 date-time. A value that is not a date-time is refused with 400.
pageintegerOptionalintegerThe page to return, from 1. Default 1. A page past the end returns no records.
per_pageintegerOptionalintegerRecords per page, 1 to 2000. Default 2000. Another value is refused with 400.

Returns

Status 200 with a page of contact objects under contacts, and the pagination fields.

curl "https://t.momentic.studio/api/v2/contacts" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Harvest-Account-Id: $ACCOUNT_ID" \
  -H "User-Agent: MyApp (admin@example.com)"
Response200
{
  "contacts": [
    {
      "id": 8001,
      "client": {
        "id": 2001,
        "name": "Example Client"
      },
      "title": "Finance lead",
      "first_name": "Pat",
      "last_name": "Example",
      "email": "pat@example.com",
      "phone_office": "555-0100",
      "phone_mobile": "",
      "fax": "",
      "invoice_recipient_status": "none",
      "created_at": "2026-01-05T15:00:00Z",
      "updated_at": "2026-01-05T15:00:00Z"
    }
  ],
  "per_page": 2000,
  "total_pages": 1,
  "total_entries": 1,
  "next_page": null,
  "previous_page": null,
  "page": 1,
  "links": {
    "first": "https://t.momentic.studio/api/v2/contacts?page=1&per_page=2000&ref=first",
    "next": null,
    "previous": null,
    "last": "https://t.momentic.studio/api/v2/contacts?page=1&per_page=2000&ref=last"
  }
}

Retrieve a contact

GET/api/v2/contacts/{contact_id}
Scope
reports:read

Differs from Harvest

Returns

Status 200 with a contact object.

curl "https://t.momentic.studio/api/v2/contacts/1" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Harvest-Account-Id: $ACCOUNT_ID" \
  -H "User-Agent: MyApp (admin@example.com)"
Response200
{
  "id": 8001,
  "client": {
    "id": 2001,
    "name": "Example Client"
  },
  "title": "Finance lead",
  "first_name": "Pat",
  "last_name": "Example",
  "email": "pat@example.com",
  "phone_office": "555-0100",
  "phone_mobile": "",
  "fax": "",
  "invoice_recipient_status": "none",
  "created_at": "2026-01-05T15:00:00Z",
  "updated_at": "2026-01-05T15:00:00Z"
}

Create a contact

POST/api/v2/contacts
Scope
clients:write

Differs from Harvest

email is required here: the app sends invoices to contacts by email. phone_office, or else phone_mobile, is kept as the one phone number; fax is ignored. A client has one contact per email address.

Body, as JSON or form fields

Body fields of Create a contact
NameTypeDescription
client_idintegerRequiredintegerThe client.
first_namestringRequiredstringFirst name.
last_namestringOptionalstringLast name.
emailstringRequiredstringEmail.
titlestringOptionalstringTitle.
phone_officestringOptionalstringPhone number.
phone_mobilestringOptionalstringUsed when phone_office is not sent.

Returns

Status 201 with a contact object.

curl -X POST "https://t.momentic.studio/api/v2/contacts" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Harvest-Account-Id: $ACCOUNT_ID" \
  -H "User-Agent: MyApp (admin@example.com)" \
  -H "Content-Type: application/json" \
  -d '{"client_id":2001,"first_name":"Alex","email":"alex@example.com"}'
Response201
{
  "id": 8001,
  "client": {
    "id": 2001,
    "name": "Example Client"
  },
  "title": "Finance lead",
  "first_name": "Pat",
  "last_name": "Example",
  "email": "pat@example.com",
  "phone_office": "555-0100",
  "phone_mobile": "",
  "fax": "",
  "invoice_recipient_status": "none",
  "created_at": "2026-01-05T15:00:00Z",
  "updated_at": "2026-01-05T15:00:00Z"
}

Update a contact

PATCH/api/v2/contacts/{contact_id}
Scope
clients:write

Differs from Harvest

Changes first_name, last_name, title, email and the phone number. client_id and fax are ignored: a contact stays with its client.

Body, as JSON or form fields

Body fields of Update a contact
NameTypeDescription
first_namestringOptionalstringFirst name.
last_namestringOptionalstringLast name.
emailstringOptionalstringEmail.
titlestringOptionalstringTitle.
phone_officestringOptionalstringPhone number.

Returns

Status 200 with a contact object.

curl -X PATCH "https://t.momentic.studio/api/v2/contacts/1" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Harvest-Account-Id: $ACCOUNT_ID" \
  -H "User-Agent: MyApp (admin@example.com)"
Response200
{
  "id": 8001,
  "client": {
    "id": 2001,
    "name": "Example Client"
  },
  "title": "Finance lead",
  "first_name": "Pat",
  "last_name": "Example",
  "email": "pat@example.com",
  "phone_office": "555-0100",
  "phone_mobile": "",
  "fax": "",
  "invoice_recipient_status": "none",
  "created_at": "2026-01-05T15:00:00Z",
  "updated_at": "2026-01-05T15:00:00Z"
}

Delete a contact

DELETE/api/v2/contacts/{contact_id}
Scope
clients:write

Returns

Status 200. No body.

curl -X DELETE "https://t.momentic.studio/api/v2/contacts/1" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Harvest-Account-Id: $ACCOUNT_ID" \
  -H "User-Agent: MyApp (admin@example.com)"
Response 200

No body.

The client object

Fields of the client object
FieldTypeDescription
idintegerintegerThe client's id.
namestringstringThe client's name.
is_activebooleanbooleanFalse when the client is archived.
addressstring or nullstring or nullNull. The time tracker has no such data, so this is the empty value.
statement_keystringstringAn empty string. The time tracker has no such data, so this is the empty value.
currencystringstringUSD.
created_atdatetimedatetimeWhen the record was created.
updated_atdatetimedatetimeWhen the record was last changed.

The contact object

Fields of the contact object
FieldTypeDescription
idintegerintegerThe contact's id.
clientobject (client_ref)object (client_ref)The contact's client.
titlestringstringThe contact's title, or an empty string.
first_namestringstringThe first word of the contact's name.
last_namestringstringThe rest of the contact's name.
emailstringstringThe contact's email.
phone_officestringstringThe contact's phone number, or an empty string. The time tracker keeps one phone number per contact.
phone_mobilestringstringAn empty string. The time tracker keeps one phone number per contact, returned as phone_office.
faxstringstringAn empty string. The time tracker has no such data, so this is the empty value.
invoice_recipient_statusstringstringnone. Invoice recipients are chosen per client in the app, not on the contact.
created_atdatetimedatetimeWhen the record was created.
updated_atdatetimedatetimeWhen the record was last changed.

The client ref object

Fields of the client ref object
FieldTypeDescription
idintegerintegerThe client's id.
namestringstringThe client's name.