LAM

Get Tasks Endpoint

Changed on
get/lam/tasks

Request

  • Base URL
    https://api.raccoonai.tech
  • Auth
    API key in header raccoon-secret-key

Query parameters

start_timeinteger nullable

Filter tasks created after this Unix timestamp (in milliseconds).

Example:1678886400000
end_timeinteger nullable

Filter tasks created before this Unix timestamp (in milliseconds).

Example:1678972800000
task_idstring nullable

Filter tasks by a specific task ID.

Example:task_123
pageinteger nullable

Page number for pagination.

Example:1
limitinteger nullable

Number of tasks per page (maximum 100).

Example:20
executionType[]string[] nullable

Filter tasks by execution type (e.g., 'default', 'deepsearch').

[
  "default",
  "deepsearch"
]
sort_by'timestamp' | 'executionTime' | 'taskId' | 'status' | 'executionType' nullable

Field to sort tasks by (e.g., 'timestamp', 'executionTime').

Example:timestamp
sort_order'ascend' | 'descend' nullable

Sort order ('ascend' or 'descend').

Example:ascend
raccoon_passcodestring nullable

Filter tasks by Raccoon passcode.

Example:code123

Response

Successful Response

Example response

{
  "tasks": [
    {
      "executionTime": 15,
      "executionType": "default",
      "inputs": {
        "param1": "value1",
        "url": "https://example.com"
      },
      "output": [
        {
          "result1": "data1"
        },
        {
          "result2": "data2"
        }
      ],
      "raccoonPasscode": "raccoon_secret_123",
      "taskId": "task_abcdef123456",
      "timestamp": 1678886400
    }
  ],
  "meta": {
    "totalPages": 5,
    "totalRecords": 50,
    "currentPage": 1
  }
}

Changes

    • breaking

      removed the enum value extract from the property anyOf[subschema #1]/items/ of the query request parameter executionType[]

    • breaking

      removed the enum value run from the property anyOf[subschema #1]/items/ of the query request parameter executionType[]

    • warning

      added the new deepsearch enum value to the tasks/items/executionType response property for the response status

    5 more changes in this revision