API Reference

ACS

DetailsGET/t-api/acs/profile

Returns basic information about your account

Parameters

No Parameters

Returns

{
  "user_id" : int - Your user ID
  "first_name" : string - Your first name
  "last_name" : string - Your last name
  "email" : string - Your email
  "company_id" : int - Your company ID
}

Companies

DetailsGET/t-api/companies/{company_id}

Get information about a company

Parameters

No Parameters

Returns

{
  "company_id" : int - The ID of the company
  "title" : string - The title of the company
}
DetailsGET/t-api/companies/{company_id}/users

Get a list of the users in a company

Parameters

No Parameters

Returns

{
  "id1" :
{
  "user_id" : int - The user ID, eg: 4
  "first_name" : string - The first name
  "last_name" : string - The last name
  "email" : string - The email
  "company_id" : int - The company ID
}
  "id2" :
{
  "user_id" : int - The user ID, eg: 67
  "first_name" : string - The first name
  "last_name" : string - The last name
  "email" : string - The email
  "company_id" : int - The company ID
}
  "etc" : ...
}
DetailsGET/t-api/companies/{company_id}/projects

Get a list of the projects for a company

Parameters

No Parameters

Returns

{
  "id1" :
{
  "project_id" : int - The project ID
  "company_id" : int - The company ID
  "title" : string - The project title
  "num_entries" : string - The number of entries for the project
}
  "id2" :
{
  "project_id" : int - The project ID
  "company_id" : int - The company ID
  "title" : string - The project title
  "num_entries" : string - The number of entries for the project
}
  "etc" : ...
}
DetailsGET/t-api/companies/{company_id}/entries

Get a list of the time entries for a company

Parameters

No Parameters

Returns

{
  "id1" :
{
  "entry_id" : int - The time entry ID
  "project_id" : int - The project ID
  "description" : string - The description provided for this time entry
  "user_id" : int - The ID of the user who created the time entry
  "start_time" : string - The start time for the time entry, YYYY-MM-DD hh:mm:ss
  "end_time" : string - The end time for the time entry, YYYY-MM-DD hh:mm:ss
}
  "id2" :
{
  "entry_id" : int - The time entry ID
  "project_id" : int - The project ID
  "description" : string - The description provided for this time entry
  "user_id" : int - The ID of the user who created the time entry
  "start_time" : string - The start time for the time entry, YYYY-MM-DD hh:mm:ss
  "end_time" : string - The end time for the time entry, YYYY-MM-DD hh:mm:ss
}
  "etc" : ...
}

Projects

DetailsPOST/t-api/projects/

Create a new project for your company

Parameters

title
Typestring

The title of this project

Returns

{
  "project_id" : int - The new project ID
  "company_id" : int - The new project company ID
  "title" : string - The new project title
  "num_entries" : string - The number of entries for the newly created project
}
DetailsGET/t-api/projects/{project_id}

Get information about a project

Parameters

No Parameters

Returns

{
  "project_id" : int - The project ID
  "company_id" : int - The new company ID
  "title" : string - The project title
  "num_entries" : string - The number of entries for the project
}
DetailsPATCH/t-api/projects/{project_id}

Update a project

Parameters

title
Typestring

The title of this project

Returns

{
  "project_id" : int - The project ID
  "company_id" : int - The new company ID
  "title" : string - The project title
  "num_entries" : string - The number of entries for the project
}
DetailsDELETE/t-api/projects/{project_id}

Delete a project

Parameters

No Parameters

Returns

{
  "deleted" : boolean – indicates if it was deleted
  "project_id" : int - The ID of the item that was deleted
}
DetailsGET/t-api/projects/{project_id}/entries

Get a list of the time entries for a project

Parameters

No Parameters

Returns

{
  "id1" :
{
  "entry_id" : int - The time entry ID
  "project_id" : int - The project ID
  "description" : string - The description provided for this time entry
  "user_id" : int - The ID of the user who created the time entry
  "start_time" : string - The start time for the time entry, YYYY-MM-DD hh:mm:ss
  "end_time" : string - The end time for the time entry, YYYY-MM-DD hh:mm:ss
}
  "id2" :
{
  "entry_id" : int - The time entry ID
  "project_id" : int - The project ID
  "description" : string - The description provided for this time entry
  "user_id" : int - The ID of the user who created the time entry
  "start_time" : string - The start time for the time entry, YYYY-MM-DD hh:mm:ss
  "end_time" : string - The end time for the time entry, YYYY-MM-DD hh:mm:ss
}
  "etc" : ...
}
DetailsPOST/t-api/projects/entries

Create a new time entry for a project

Parameters

description
Typestring

The note/description for this time entry

project_id
TypeInteger

The project for this time entry

user_id
TypeInteger

The user who created this time entry

start_time
Typestring

The start time of the time entry

end_time
Typestring

The end time of the time entry

Returns

{
  "entry_id" : int - The time entry ID
  "project_id" : int - The project ID
  "description" : string - The description provided for this time entry
  "user_id" : int - The ID of the user who created the time entry
  "start_time" : string - The start time for the time entry, YYYY-MM-DD hh:mm:ss
  "end_time" : string - The end time for the time entry, YYYY-MM-DD hh:mm:ss
}
DetailsGET/t-api/projects/entries/{entry_id}

Get information about a time entry

Parameters

No Parameters

Returns

{
  "entry_id" : int - The time entry ID
  "project_id" : int - The project ID
  "description" : string - The description provided for this time entry
  "user_id" : int - The ID of the user who created the time entry
  "start_time" : string - The start time for the time entry, YYYY-MM-DD hh:mm:ss
  "end_time" : string - The end time for the time entry, YYYY-MM-DD hh:mm:ss
}
DetailsPATCH/t-api/projects/entries/{entry_id}

Update a time entry

Parameters

description
Typestring

The note/description for this time entry

project_id
TypeInteger

The project for this time entry

user_id
TypeInteger

The user who created this time entry

start_time
Typestring

The start time of the time entry

end_time
Typestring

The end time of the time entry

Returns

{
  "entry_id" : int - The time entry ID
  "project_id" : int - The project ID
  "description" : string - The description provided for this time entry
  "user_id" : int - The ID of the user who created the time entry
  "start_time" : string - The start time for the time entry, YYYY-MM-DD hh:mm:ss
  "end_time" : string - The end time for the time entry, YYYY-MM-DD hh:mm:ss
}
DetailsDELETE/t-api/projects/entries/{entry_id}

Delete a time entry

Parameters

No Parameters

Returns

{
  "deleted" : boolean – indicates if it was deleted
  "entry_id" : int - The ID of the item that was deleted
}
Developer Console