Skip to main content
POST
/
v6
/
tasks
/
query
Query tasks
curl --request POST \
  --url https://sandbox.tight.com/v6/tasks/query \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "cursor": "<string>",
  "limit": 123,
  "filter": {
    "priority": {
      "in": [
        "URGENT"
      ],
      "notIn": [
        "URGENT"
      ]
    },
    "type": {
      "in": [
        "MESSAGE_REVIEW"
      ],
      "notIn": [
        "MESSAGE_REVIEW"
      ]
    },
    "status": {
      "in": [
        "ACTIVE"
      ],
      "notIn": [
        "ACTIVE"
      ],
      "equal": "ACTIVE",
      "notEqual": "ACTIVE",
      "greaterThan": "ACTIVE",
      "greaterThanEqual": "ACTIVE",
      "lessThan": "ACTIVE",
      "lessThanEqual": "ACTIVE"
    }
  }
}
'
{
  "result": "SUCCESS",
  "data": [
    {
      "id": "tsk_123456789",
      "name": "Transaction Review Required",
      "description": "You have 5 transactions that require review",
      "shortDescription": "Stay up-to-date on 5 transactions",
      "priority": "HIGH",
      "type": "TRANSACTION_REVIEW",
      "dismissable": "true",
      "status": "ACTIVE",
      "actionLink": "www.example.com"
    }
  ],
  "cursor": {
    "after": "<string>",
    "before": "<string>"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, see Authentication for more detail.

Body

application/json
cursor
string | null

Cursor from the previous paginated response

limit
integer<int32>

Page size, i.e. number of items to return per page

Required range: x <= 250
filter
object

Filter for items in the response.

Response

Success

result
enum<string>

The result of the action performed.

Available options:
SUCCESS,
FAILURE
data
object[]

The data generated by the action performed.

cursor
object

Cursor to be used in your subsequent paginated request. Only populated if there are more pages available.