---
title: "List tasks"
---

> Documentation Index
> Fetch the complete documentation index at: https://simplcron.dev/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# List tasks

Path: Simplcron API › Tasks

`GET /v1/tasks`

Read task registrations in the environment resolved by the credential.

## Authentication

Requires one of the following:

- `bearerAuth`, http bearer, header `Authorization`
- `browserSession`, apiKey, in cookie
- `localBrowserSession`, apiKey, in cookie

## Code samples

### cURL

```bash
curl --request GET \
  --url '<base-url>/v1/tasks' \
  --header 'Authorization: Bearer <token>'
```

### TypeScript

```typescript
const url = '<base-url>/v1/tasks';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "<base-url>/v1/tasks"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.text)
```

## Responses

### 200

List for the authenticated environment

#### Example

```json
{
  "tasks": [
    {
      "id": "string",
      "name": "string",
      "slug": "string",
      "url": "http://example.com",
      "description": "string",
      "starterId": "string",
      "maxAttempts": 3,
      "createdAt": "2019-08-24T14:15:22Z"
    }
  ]
}
```

- `tasks` (`listTasks.response.200.tasks`; array of object, required)
  - `id` (`listTasks.response.200.tasks.id`; string, required)
  - `name` (`listTasks.response.200.tasks.name`; string, required)
    - maxLength: `100` · minLength: `1`
  - `slug` (`listTasks.response.200.tasks.slug`; string, required)
    - maxLength: `64` · pattern: `^[a-z0-9]+(?:-[a-z0-9]+)*$`
  - `url` (`listTasks.response.200.tasks.url`; string, required) — An allowlisted public HTTPS handler or a fixture URL for a built-in starter.
    - format: `uri` · maxLength: `2048`
  - `maxAttempts` (`listTasks.response.200.tasks.maxAttempts`; integer, required)
    - maximum: `5` · minimum: `1` · default: `3`
  - `createdAt` (`listTasks.response.200.tasks.createdAt`; string, required)
    - format: `date-time`
  - `description` (`listTasks.response.200.tasks.description`; string, optional)
    - maxLength: `200`
  - `starterId` (`listTasks.response.200.tasks.starterId`; string, optional) — The catalog identifier when this task was registered from a starter.

### 401

Authentication is required

#### Example

```json
{
  "error": "string"
}
```

- `error` (`listTasks.response.401.error`; string, required)

### 403

The credential lacks permission

#### Example

```json
{
  "error": "string"
}
```

- `error` (`listTasks.response.403.error`; string, required)


Source: https://simplcron.dev/docs/api/list-tasks/index.md
