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
  • Notifications and Mentions
    • Get all notifications and mentions
    • Mark notification/mentions as read
    • Delete multiple notifications
  1. Task Timer

Add range timer for a project task

POST
https://api.astravue.com/v1/time-track/projects/{projectId}/tasks/{taskId}/range
Adds a time range entry to a project task using start and end timestamps.
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.astravue.com/v1/time-track/projects//tasks//range' \
--header 'X-Org-Id;' \
--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"
}

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
Range timer added successfully
Body

Previous
Start timer for a project task
Next
Add manual time entry for a project task
Built with