Astravue API
  1. Task Timer
Astravue API
  • Welcome to the Astravue API
  • Auth
    • Get Access and Refresh Token
      POST
    • Refresh Access Token
      POST
  • Personal Tasks
    • Get task by ID
      GET
    • Update a task
      PUT
    • Delete a task
      DELETE
    • Get all tasks
      GET
    • Create a task
      POST
  • Spaces
    • Get space by ID
      GET
    • Update a space
      PUT
    • Delete a space
      DELETE
    • Get all spaces
      GET
    • Create a new space
      POST
  • Projects
    • Get project details by ID
      GET
    • Update a project
      PUT
    • Delete a project
      DELETE
    • Get all projects in a space
      GET
    • Create a new project
      POST
  • Project Tasks
    • Get a project task by ID
    • Update a project task
    • Delete a project task
    • Get all tasks in a project
    • Create a project task
  • Task Timer
    • Get timers for a user in a task
      GET
    • Get active timers for a user
      GET
    • Update a timer
      PUT
    • Stop timer for a task
      PUT
    • Delete a timer entry
      DELETE
    • Start timer for a personal task
      POST
    • Add a time range entry for a personal task
      POST
    • Add manual time entry for a personal task
      POST
    • Start timer for a project task
      POST
    • Add range timer for a project task
      POST
    • Add manual time entry for a project task
      POST
  • Task Comments
    • Get comments for a task
  • Project Subtasks
    • Get all subtasks for a project task
  • Personal Subtasks
    • Get all subtasks for a personal task
  • Tasks Checklist
    • Get all checklists for a subtask
    • Get all checklists for a parent task
  1. Task Timer

Add a time range entry for a personal task

POST
https://api.astravue.com/v1/time-track/tasks/{taskId}/range
Logs a time entry based on a start and end timestamp. Useful when you know the exact time window.

Request

Authorization
Add the parameter
Authorization
to Headers
,whose value is to concatenate the Token after the Bearer.
Example:
Authorization: Bearer ********************
Path Params

Header Params

Body Params application/json

Examples

Responses

🟢200OK
application/json
Time range added successfully
Body

Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.astravue.com/v1/time-track/tasks//range' \
--header 'X-Org-Id;' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "startTime": 1754505900000,
    "endTime": 1754551800000,
    "billingType": true,
    "notes": "Pair programming and debugging session"
}'
Response Response Example
{
    "success": true,
    "message": "Operation completed successfully",
    "code": 200,
    "data": {
        "tenantId": 0,
        "trackId": 0,
        "trackerType": "string",
        "startTime": "2019-08-24T14:15:22Z",
        "endTime": "2019-08-24T14:15:22Z",
        "timePeriod": 0,
        "taskId": 0,
        "parentTaskId": 0,
        "title": "string",
        "task": {},
        "projectId": 0,
        "spaceId": 0,
        "billingType": true,
        "notes": "string",
        "user": {},
        "createdTime": "2019-08-24T14:15:22Z",
        "when": "2019-08-24T14:15:22Z"
    },
    "timestamp": "2023-01-01T12:00:00Z"
}
Previous
Start timer for a personal task
Next
Add manual time entry for a personal task
Built with