# Get tasks by pagination.

`GET /api/tasks/pagination`

Authentication (security requirement alternatives):

```json
[
  {
    "bearer": []
  }
]
```

- bearer: http (bearer), header JWT. Enter JWT token

Parameters:

- `select` (query, object, optional)
  Type: object
  
  Schema: [Object](https://sourcey-gauzy.pages.dev/api-reference/models/object/index.md)

- `relations` (query, object, optional)
  Type: object
  
  Schema: [Object](https://sourcey-gauzy.pages.dev/api-reference/models/object/index.md)

- `where` (query, object, required)
  Type: object
  
  Schema: [Object](https://sourcey-gauzy.pages.dev/api-reference/models/object/index.md)

- `order` (query, object, optional)
  Type: object
  
  Schema: [Object](https://sourcey-gauzy.pages.dev/api-reference/models/object/index.md)

- `withDeleted` (query, boolean, optional)
  Type: boolean

- `take` (query, number, optional)
  Type: number
  
  minimum: 0
  
  maximum: 100

- `skip` (query, number, optional)
  Type: number
  
  minimum: 0

- `filters` (query, object, optional)
  Type: object
  
  Schema: [TaskAdvancedFilterDTO](https://sourcey-gauzy.pages.dev/api-reference/models/taskadvancedfilterdto/index.md)
  
  - `ids` (optional)
    Type: array
    
    Items:
      Type: string
  
  - `projects` (optional)
    Type: array
    
    Items:
      Type: string
  
  - `teams` (optional)
    Type: array
    
    Items:
      Type: string
  
  - `modules` (optional)
    Type: array
    
    Items:
      Type: string
  
  - `sprints` (optional)
    Type: array
    
    Items:
      Type: string
  
  - `members` (optional)
    Type: array
    
    Items:
      Type: string
  
  - `tags` (optional)
    Type: array
    
    Items:
      Type: string
  
  - `statusIds` (optional)
    Type: array
    
    Items:
      Type: string
  
  - `priorityIds` (optional)
    Type: array
    
    Items:
      Type: string
  
  - `sizeIds` (optional)
    Type: array
    
    Items:
      Type: string
  
  - `parentIds` (optional)
    Type: array
    
    Items:
      Type: string
  
  - `createdByUserIds` (optional)
    Type: array
    
    Items:
      Type: string

Responses:

- 200: Tasks retrieved successfully.

- 400: Invalid input.

- 401: Unauthorized

- 403: Forbidden

## Examples

### cURL

```bash
curl -X GET 'http://localhost:3000/api/tasks/pagination' \
  -H 'Authorization: Bearer YOUR_TOKEN'
```

### JavaScript

```javascript
const response = await fetch('http://localhost:3000/api/tasks/pagination', {
  method: 'GET',
  headers: {
    'Authorization': 'Bearer YOUR_TOKEN',
  },
});

const data = await response.text();
```

### Python

```python
import requests

response = requests.get(
    'http://localhost:3000/api/tasks/pagination',
    headers={
        'Authorization': 'Bearer YOUR_TOKEN',
    },
)
print(response.text)
```
