# List Tasks

The list tasks enpoint is used to fetch data about the tasks connected to your account.

# Endpoint

POST /tasks/list

# Parameters

# Body

Name Type Description
take Integer How many items to query. Max is 1000
skip Integer How many items to skip during the query. Allows for basic pagination.

# Return

# Parameters

# Body

Name Type Description
statusCode Integer Http status code of the create operation.
message String Status message of the create operation.
body.items Task[] The queried tasks

# Example

{
    "statusCode": 200,
    "message": "Operation successful",
    "body": {
        "items": [
            {
                "accuracy": "MINUTE",
                "createdAt": 1636060916761,
                "systemStatus": "DONE",
                "userId": "{{your user id}}",
                "id": "c9843bc1-9de7-4220-889c-9568cf5e372e",
                "data": {
                    "method": "GET",
                    "url": "https://jsonplaceholder.typicode.com/todos/1",
                    "body": "",
                    "header": {}
                },
                "timeframe": 27267685,
                "completedAt": 1636061101905,
                "result": {
                    "body": {
                        "userId": 1,
                        "id": 1,
                        "title": "delectus aut autem",
                        "completed": false
                    },
                    "header": {
                        "date": "Thu, 04 Nov 2021 21:25:01 GMT",
                        "content-type": "application/json; charset=utf-8",
                        "content-length": "83",
                        "connection": "close",
                        "x-powered-by": "Express",
                    },
                    "statusCode": 200,
                    "statusText": "OK"
                }
            },
            {
                "accuracy": "MINUTE",
                "createdAt": 1635087346195,
                "systemStatus": "DONE",
                "userId": "{{your user id}}",
                "id": "655237bc-665a-4691-be4e-97fca59d4890",
                "data": {
                    "method": "GET",
                    "url": "https://jsonplaceholder.typicode.com/todos/1",
                    "body": "",
                    "header": {}
                },
                "timeframe": 27251456,
                "completedAt": 1635087360362,
                "result": {
                    "body": {
                        "userId": 1,
                        "id": 1,
                        "title": "delectus aut autem",
                        "completed": false
                    },
                    "header": {
                        "date": "Sun, 24 Oct 2021 14:56:00 GMT",
                        "content-type": "application/json; charset=utf-8",
                        "content-length": "83",
                        "connection": "close",
                        "x-powered-by": "Express",
                    },
                    "statusCode": 200,
                    "statusText": "OK"
                }
            },
            ...
        ]
    }
}