Admin API

Tasks

Admin API endpoints for creating and managing tasks

Use the Tasks endpoints to list, create, retrieve, update, and delete tasks within the organization associated with your Admin API key.

Endpoints

MethodEndpointDescription
GET/tasksList tasks with filtering and pagination
POST/tasksCreate a task
GET/tasks/{taskId}Get a single task
PATCH/tasks/{taskId}Update a task
DELETE/tasks/{taskId}Delete a task

Test the API

The POST, PATCH, and DELETE testers change live organization data. Your API key is stored only in this browser's local storage, so use the tester on a trusted device.

GET
/tasks

Authorization

BearerAuth
AuthorizationBearer <token>

API key from the Tiquo dashboard (Settings > Developer > Admin API)

In: header

Query Parameters

limit?integer
Default50
Range1 <= value <= 100

Response Body

application/json

application/json

application/json

application/json

curl -X GET "https://api.tiquo.app/api/v1/tasks"
{
  "success": true,
  "data": [
    {
      "id": "string",
      "type": "note",
      "title": "string",
      "content": "string",
      "categoryId": "string",
      "categoryName": "string",
      "locationId": "string",
      "locationName": "string",
      "isTask": true,
      "taskDueDate": "2019-08-24T14:15:22Z",
      "taskRecurrence": {
        "frequency": "daily",
        "customIntervalDays": 1
      },
      "taskRecurrenceCompletedCount": 0,
      "taskStatus": "pending",
      "taskCompletedAt": "2019-08-24T14:15:22Z",
      "taskCompletedBy": "string",
      "isPinned": true,
      "isInternal": true,
      "customerIds": [
        "string"
      ],
      "enquiryIds": [
        "string"
      ],
      "orderIds": [
        "string"
      ],
      "sublocationIds": [
        "string"
      ],
      "companyIds": [
        "string"
      ],
      "staffIds": [
        "string"
      ],
      "staffNames": [
        "string"
      ],
      "createdAt": "2019-08-24T14:15:22Z",
      "createdBy": "string",
      "createdByName": "string",
      "updatedAt": "2019-08-24T14:15:22Z",
      "updatedBy": "string",
      "updatedByName": "string"
    }
  ],
  "pagination": {
    "hasMore": true,
    "nextCursor": "string",
    "pageSize": 0
  },
  "timestamp": "2019-08-24T14:15:22Z"
}
{
  "success": false,
  "error": "string",
  "timestamp": "2019-08-24T14:15:22Z"
}
{
  "success": false,
  "error": "string",
  "timestamp": "2019-08-24T14:15:22Z"
}
{
  "success": false,
  "error": "string",
  "timestamp": "2019-08-24T14:15:22Z"
}
POST
/tasks

Authorization

BearerAuth
AuthorizationBearer <token>

API key from the Tiquo dashboard (Settings > Developer > Admin API)

In: header

Request Body

application/json

title?string
content*string
categoryId?string
locationId?string
taskDueDate?string
Formatdate-time
taskRecurrence?
status?string
Default"pending"
Value in"pending"
isPinned?boolean
isInternal?boolean
customerIds?array<>
enquiryIds?array<>
orderIds?array<>
sublocationIds?array<>
companyIds?array<>
staffIds?array<>
staffNames?array<>

Response Body

application/json

application/json

application/json

application/json

curl -X POST "https://api.tiquo.app/api/v1/tasks" \  -H "Content-Type: application/json" \  -d '{    "content": "string"  }'
{
  "success": true,
  "data": {
    "id": "string",
    "type": "note",
    "title": "string",
    "content": "string",
    "categoryId": "string",
    "categoryName": "string",
    "locationId": "string",
    "locationName": "string",
    "isTask": true,
    "taskDueDate": "2019-08-24T14:15:22Z",
    "taskRecurrence": {
      "frequency": "daily",
      "customIntervalDays": 1
    },
    "taskRecurrenceCompletedCount": 0,
    "taskStatus": "pending",
    "taskCompletedAt": "2019-08-24T14:15:22Z",
    "taskCompletedBy": "string",
    "isPinned": true,
    "isInternal": true,
    "customerIds": [
      "string"
    ],
    "enquiryIds": [
      "string"
    ],
    "orderIds": [
      "string"
    ],
    "sublocationIds": [
      "string"
    ],
    "companyIds": [
      "string"
    ],
    "staffIds": [
      "string"
    ],
    "staffNames": [
      "string"
    ],
    "createdAt": "2019-08-24T14:15:22Z",
    "createdBy": "string",
    "createdByName": "string",
    "updatedAt": "2019-08-24T14:15:22Z",
    "updatedBy": "string",
    "updatedByName": "string"
  },
  "timestamp": "2019-08-24T14:15:22Z"
}
{
  "success": false,
  "error": "string",
  "timestamp": "2019-08-24T14:15:22Z"
}
{
  "success": false,
  "error": "string",
  "timestamp": "2019-08-24T14:15:22Z"
}
{
  "success": false,
  "error": "string",
  "timestamp": "2019-08-24T14:15:22Z"
}
GET
/tasks/{taskId}

Authorization

BearerAuth
AuthorizationBearer <token>

API key from the Tiquo dashboard (Settings > Developer > Admin API)

In: header

Path Parameters

taskId*string

Task document ID

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://api.tiquo.app/api/v1/tasks/string"
{
  "success": true,
  "data": {
    "id": "string",
    "type": "note",
    "title": "string",
    "content": "string",
    "categoryId": "string",
    "categoryName": "string",
    "locationId": "string",
    "locationName": "string",
    "isTask": true,
    "taskDueDate": "2019-08-24T14:15:22Z",
    "taskRecurrence": {
      "frequency": "daily",
      "customIntervalDays": 1
    },
    "taskRecurrenceCompletedCount": 0,
    "taskStatus": "pending",
    "taskCompletedAt": "2019-08-24T14:15:22Z",
    "taskCompletedBy": "string",
    "isPinned": true,
    "isInternal": true,
    "customerIds": [
      "string"
    ],
    "enquiryIds": [
      "string"
    ],
    "orderIds": [
      "string"
    ],
    "sublocationIds": [
      "string"
    ],
    "companyIds": [
      "string"
    ],
    "staffIds": [
      "string"
    ],
    "staffNames": [
      "string"
    ],
    "createdAt": "2019-08-24T14:15:22Z",
    "createdBy": "string",
    "createdByName": "string",
    "updatedAt": "2019-08-24T14:15:22Z",
    "updatedBy": "string",
    "updatedByName": "string"
  },
  "timestamp": "2019-08-24T14:15:22Z"
}
{
  "success": false,
  "error": "string",
  "timestamp": "2019-08-24T14:15:22Z"
}
{
  "success": false,
  "error": "string",
  "timestamp": "2019-08-24T14:15:22Z"
}
{
  "success": false,
  "error": "string",
  "timestamp": "2019-08-24T14:15:22Z"
}
{
  "success": false,
  "error": "string",
  "timestamp": "2019-08-24T14:15:22Z"
}
PATCH
/tasks/{taskId}

Authorization

BearerAuth
AuthorizationBearer <token>

API key from the Tiquo dashboard (Settings > Developer > Admin API)

In: header

Path Parameters

taskId*string

Request Body

application/json

status?string
Value in"pending" | "completed" | "cancelled"
taskDueDate?|
Formatdate-time
taskRecurrence?
expectedTaskDueDate?string

The currently displayed due date. Include this when completing a repeating task to make retries idempotent.

Formatdate-time
[key: string]?any

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X PATCH "https://api.tiquo.app/api/v1/tasks/string" \  -H "Content-Type: application/json" \  -d '{}'
{
  "success": true,
  "data": {
    "id": "string",
    "type": "note",
    "title": "string",
    "content": "string",
    "categoryId": "string",
    "categoryName": "string",
    "locationId": "string",
    "locationName": "string",
    "isTask": true,
    "taskDueDate": "2019-08-24T14:15:22Z",
    "taskRecurrence": {
      "frequency": "daily",
      "customIntervalDays": 1
    },
    "taskRecurrenceCompletedCount": 0,
    "taskStatus": "pending",
    "taskCompletedAt": "2019-08-24T14:15:22Z",
    "taskCompletedBy": "string",
    "isPinned": true,
    "isInternal": true,
    "customerIds": [
      "string"
    ],
    "enquiryIds": [
      "string"
    ],
    "orderIds": [
      "string"
    ],
    "sublocationIds": [
      "string"
    ],
    "companyIds": [
      "string"
    ],
    "staffIds": [
      "string"
    ],
    "staffNames": [
      "string"
    ],
    "createdAt": "2019-08-24T14:15:22Z",
    "createdBy": "string",
    "createdByName": "string",
    "updatedAt": "2019-08-24T14:15:22Z",
    "updatedBy": "string",
    "updatedByName": "string"
  },
  "timestamp": "2019-08-24T14:15:22Z"
}
{
  "success": false,
  "error": "string",
  "timestamp": "2019-08-24T14:15:22Z"
}
{
  "success": false,
  "error": "string",
  "timestamp": "2019-08-24T14:15:22Z"
}
{
  "success": false,
  "error": "string",
  "timestamp": "2019-08-24T14:15:22Z"
}
{
  "success": false,
  "error": "string",
  "timestamp": "2019-08-24T14:15:22Z"
}
DELETE
/tasks/{taskId}

Authorization

BearerAuth
AuthorizationBearer <token>

API key from the Tiquo dashboard (Settings > Developer > Admin API)

In: header

Path Parameters

taskId*string

Response Body

application/json

application/json

application/json

curl -X DELETE "https://api.tiquo.app/api/v1/tasks/string"
Empty
{
  "success": false,
  "error": "string",
  "timestamp": "2019-08-24T14:15:22Z"
}
{
  "success": false,
  "error": "string",
  "timestamp": "2019-08-24T14:15:22Z"
}
{
  "success": false,
  "error": "string",
  "timestamp": "2019-08-24T14:15:22Z"
}

For every request field, filter, response schema, and error response, use the operation details in the interactive reference above.