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
| Purpose | Method | Path |
| Authorization | POST | /api/authorization |
| Customer list | GET | /api/v1/fetch-customer-list |
| Customer task list | POST | /api/v1/fetch-customer-task-list |
| User list | GET | /api/v1/user/list |
| Leave list | POST | /api/v1/company-leave/list |
| Employee screenshot fetch | POST | /api/v1/screenshot-fetch |
| Detailed timesheet | POST | /api/v1/worklog-summary/detailed-timesheet-report |
| Field people timesheet | POST | /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
- Prepare your credentials: your Client ID and Client Secret.
- Set the request headers:
Header Type Required Description x-client-id string Yes Your application's unique client ID x-client-secret string Yes Your application's secret key - Send a POST request to the endpoint with those headers.
- 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:
| Header | Type | Required | Description |
| authorization | string | Yes | API 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 parameter | Type | Required | Description |
| customer_status | string | Yes | ACTIVE (current customers) or INACTIVE (past customers) |
| name | string | No | Search by customer name |
| company_name | string | No | Search by company name |
| limit | integer | No | Results per page (1 or more) |
| page | integer | No | Page 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)
| Field | Type | Required | Description |
| uuid | string | Yes | Customer UUID (must be a valid UUID) |
| task_name | string | No | Filter by task name |
| created_start_date | string | No | Tasks created on or after this date (YYYY-MM-DD) |
| created_end_date | string | No | Tasks 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 parameter | Type | Required | Description |
| user_current_status | string | No | Filter by user status (see values below) |
| limit | integer | No | Records per page (1 or more) |
| page | integer | No | Page number (1 or more) |
User status values
| Value | Meaning |
| P | Past users |
| C | Current 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)
| Field | Type | Description |
| uuid | string | Employee ID |
| apply_date | string | Leave applied date (YYYY-MM-DD) |
| from_date | string | Leave start date (YYYY-MM-DD) |
| to_date | string | Leave end date (YYYY-MM-DD) |
| status | string | Leave status (see values below) |
Leave status values
| Value | Meaning |
| P | Pending |
| C | Completed |
| R | Rejected |
| CN | Cancelled |
| "" or null | All 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)
| Field | Type | Description |
| date | string | Format YYYY-MM-DD |
| user_id | string (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
| Field | Type | Required | Description |
| date | string | Yes | Format YYYY-MM-DD |
| user_id | string (UUID) | No | Filter 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
Feedback sent
We appreciate your effort and will try to fix the article