# Find all image assets in the same tenant using pagination.

`GET /api/image-assets/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

Responses:

- 200: Found image assets in the tenant

Content type: application/json

Type: object

Schema: [ImageAsset](https://sourcey-gauzy.pages.dev/api-reference/models/imageasset/index.md)

- `deletedAt` (optional)
  Type: string, date-time
  
  Example:
  
  ```json
  "2018-11-21T06:20:32.232Z"
  ```

- `createdAt` (optional)
  Type: string, date-time
  
  The creation timestamp of the entity.
  
  Example:
  
  ```json
  "2018-11-21T06:20:32.232Z"
  ```

- `updatedAt` (optional)
  Type: string, date-time
  
  The last update timestamp of the entity.
  
  Example:
  
  ```json
  "2018-11-21T06:20:32.232Z"
  ```

- `id` (optional)
  Type: string

- `isActive` (optional)
  Type: boolean
  
  default: true

- `isArchived` (optional)
  Type: boolean
  
  default: false

- `archivedAt` (optional)
  Type: string, date-time
  
  Example:
  
  ```json
  "2018-11-21T06:20:32.232Z"
  ```

- `tenantId` (optional)
  Type: string

- `organizationId` (optional)
  Type: string

- `name` (optional)
  Type: string

- `url` (required)
  Type: string

- `thumb` (required)
  Type: string

- `width` (optional)
  Type: number
  
  default: 0

- `height` (optional)
  Type: number
  
  default: 0

- `size` (optional)
  Type: number

- `isFeatured` (required)
  Type: boolean

- `externalProviderId` (optional)
  Type: string

- `storageProvider` (optional)
  Type: string
  
  enum: ["LOCAL","S3","WASABI","CLOUDINARY","DIGITALOCEAN"]

- `productFeaturedImage` (required)
  Type: array
  
  Items:
    Reference: [Product](https://sourcey-gauzy.pages.dev/api-reference/models/product/index.md); Type: object

- `equipmentImage` (required)
  Type: array
  
  Items:
    Reference: [Equipment](https://sourcey-gauzy.pages.dev/api-reference/models/equipment/index.md); Type: object

- `warehouses` (required)
  Type: array
  
  Items:
    Reference: [Warehouse](https://sourcey-gauzy.pages.dev/api-reference/models/warehouse/index.md); Type: object

- `productGallery` (required)
  Type: array
  
  Items:
    Reference: [Product](https://sourcey-gauzy.pages.dev/api-reference/models/product/index.md); Type: object

- 401: Unauthorized

- 403: Forbidden

- 404: Record not found

## Examples

### cURL

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

### JavaScript

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

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

### Python

```python
import requests

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