TeamTrace API Guide: Authorization and Endpoint Reference

Created by TeamTrace Support, Modified on Thu, 29 Oct at 5:32 AM by TeamTrace Support

Overview

The TeamTrace API lets you connect your own applications to TeamTrace data. You first authenticate with your client ID and client secret, then use the returned token to call the other endpoints. This article explains how to authorize and how to use each available endpoint: customers, customer tasks, users, leave, screenshots and timesheets.


Before You Begin

  • You need a Client ID (a unique identifier for your application) and a Client Secret (a private key used to verify your application).
  • All requests go to the base URL https://api-info.teamtrace.app.


Endpoints at a Glance

PurposeMethodPath
AuthorizationPOST/api/authorization
Customer listGET/api/v1/fetch-customer-list
Customer task listPOST/api/v1/fetch-customer-task-list
User listGET/api/v1/user/list
Leave listPOST/api/v1/company-leave/list
Employee screenshot fetchPOST/api/v1/screenshot-fetch
Detailed timesheetPOST/api/v1/worklog-summary/detailed-timesheet-report
Field people timesheetPOST/api/v1/worklog-summary/field-people-timesheet


1. API Authorization

Use this endpoint to authenticate your application and gain access to the protected endpoints.

Endpoint: POST https://api-info.teamtrace.app/api/authorization


Steps

  1. Prepare your credentials: your Client ID and Client Secret.
  2. Set the request headers:
    HeaderTypeRequiredDescription
    x-client-idstringYesYour application's unique client ID
    x-client-secretstringYesYour application's secret key
  3. Send a POST request to the endpoint with those headers.
  4. Check the response. With valid credentials you receive a successful response, typically including an authorization token. With incorrect credentials you receive an error response.

Example (cURL)

curl -X POST "https://api-info.teamtrace.app/api/authorization" \
  -H "x-client-id: YOUR_CLIENT_ID" \
  -H "x-client-secret: YOUR_CLIENT_SECRET"



2. Use the Token in Other Requests

Every other endpoint needs the token from the authorization response in the authorization header:

HeaderTypeRequiredDescription
authorizationstringYesAPI authorization token

Endpoints that send a JSON body also need the header Content-Type: application/json.

Pagination: the list endpoints accept page and limit, both integers of 1 or more. If you don't send them on endpoints where they are optional, default backend values may be used.


3. Customer List

Retrieves a list of customers, with optional search filters and pagination.

Endpoint: GET https://api-info.teamtrace.app/api/v1/fetch-customer-list

Query parameterTypeRequiredDescription
customer_statusstringYesACTIVE (current customers) or INACTIVE (past customers)
namestringNoSearch by customer name
company_namestringNoSearch by company name
limitintegerNoResults per page (1 or more)
pageintegerNoPage number (1 or more)

Example (cURL)

curl --request GET "https://api-info.teamtrace.app/api/v1/fetch-customer-list?customer_status=ACTIVE&company_name=Tech&page=1&limit=10" \
  --header "authorization: YOUR_TOKEN"

Response: success returns a filtered list of customers. An error is returned if authorization fails or required parameters are missing or invalid.


4. Customer Task List

Retrieves the tasks for a specific customer, with optional filters and pagination.

Endpoint: POST https://api-info.teamtrace.app/api/v1/fetch-customer-task-list

Query parameters (optional): limit and page, both integers of 1 or more.

Request body (JSON)

FieldTypeRequiredDescription
uuidstringYesCustomer UUID (must be a valid UUID)
task_namestringNoFilter by task name
created_start_datestringNoTasks created on or after this date (YYYY-MM-DD)
created_end_datestringNoTasks created on or before this date (YYYY-MM-DD)

Example (cURL)

curl --request POST "https://api-info.teamtrace.app/api/v1/fetch-customer-task-list?page=1&limit=10" \
  --header "authorization: YOUR_TOKEN" \
  --header "Content-Type: application/json" \
  --data '{
    "uuid": "550e8400-e29b-41d4-a716-446655440000",
    "task_name": "Development",
    "created_start_date": "2026-04-01",
    "created_end_date": "2026-04-30"
  }'

Response: success returns the customer's tasks based on your filters. An error is returned if authorization fails or required fields are missing or invalid.


5. User List

Retrieves a list of users, with optional filters and pagination. If you send no filters, the API returns all users.

Endpoint: GET https://api-info.teamtrace.app/api/v1/user/list

Query parameterTypeRequiredDescription
user_current_statusstringNoFilter by user status (see values below)
limitintegerNoRecords per page (1 or more)
pageintegerNoPage number (1 or more)

User status values

ValueMeaning
PPast users
CCurrent users
"" (empty)All users

Example (cURL)

curl --request GET "https://api-info.teamtrace.app/api/v1/user/list?user_current_status=C&limit=10&page=1" \
  --header "authorization: YOUR_TOKEN"

Response: success returns a list of users based on your filters. An error is returned if authorization fails or parameters are invalid.


6. Leave List

Retrieves employee leave records, with optional filters and pagination.

Endpoint: POST https://api-info.teamtrace.app/api/v1/company-leave/list

Query parameters (optional): limit and page, for example ?limit=10&page=1.

Request body (JSON, all fields optional)

FieldTypeDescription
uuidstringEmployee ID
apply_datestringLeave applied date (YYYY-MM-DD)
from_datestringLeave start date (YYYY-MM-DD)
to_datestringLeave end date (YYYY-MM-DD)
statusstringLeave status (see values below)

Leave status values

ValueMeaning
PPending
CCompleted
RRejected
CNCancelled
"" or nullAll statuses

Example (cURL)

curl -X POST "https://api-info.teamtrace.app/api/v1/company-leave/list?limit=10&page=1" \
  -H "authorization: YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "uuid": "EMP123",
    "apply_date": "2026-04-01",
    "from_date": "2026-04-10",
    "to_date": "2026-04-12",
    "status": "P"
  }'

Response: success returns leave records based on your filters. An error is returned if authorization fails or input is invalid.


7. Employee Screenshot Fetch

Retrieves the screenshots for an employee on a given date.

Endpoint: POST https://api-info.teamtrace.app/api/v1/screenshot-fetch

Headers: Content-Type: application/json, and authorization: your token.

Request body (both fields required)

FieldTypeDescription
datestringFormat YYYY-MM-DD
user_idstring (UUID)Must be a valid UUID

Example (cURL)

curl --request POST \
  --url https://api-info.teamtrace.app/api/v1/screenshot-fetch \
  --header 'Content-Type: application/json' \
  --header 'authorization: YOUR_AUTH_TOKEN' \
  --data '{
    "date": "2026-04-21",
    "user_id": "123e4567-e89b-12d3-a456-426614174000"
  }'

Common mistakes: a missing authorization token, a date not in YYYY-MM-DD format, an invalid UUID, and sending an empty body.

If no screenshots exist for the date, the response is a success with an empty screenshots list. This is not an error, so handle it in your code.


8. Detailed Timesheet

Retrieves the detailed timesheet for users on a given date.

Endpoint: POST https://api-info.teamtrace.app/api/v1/worklog-summary/detailed-timesheet-report

Headers: Content-Type: application/json, and authorization: your token.

Query parameters (both required): page (page number) and limit (items per page), both integers of 1 or more.

Request body

FieldTypeRequiredDescription
datestringYesFormat YYYY-MM-DD
user_idstring (UUID)NoFilter by a specific user

Example (cURL)

curl --request POST \
  --url 'https://api-info.teamtrace.app/api/v1/worklog-summary/detailed-timesheet-report?page=1&limit=10' \
  --header 'Content-Type: application/json' \
  --header 'authorization: YOUR_AUTH_TOKEN' \
  --data '{
    "date": "2026-04-21",
    "user_id": "123e4567-e89b-12d3-a456-426614174000"
  }'

Example success response

{
  "status": "success",
  "page": 1,
  "limit": 10,
  "total": 45,
  "data": [
    {
      "user_id":

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article