---
title: "Returns the size of all the collection's assets in bytes"
method: GET
path: "/v1/collections/{collection_id}/size/"
---

# Returns the size of all the collection's assets in bytes

`GET /v1/collections/{collection_id}/size/`

## Request

- Base URL: `https://app.iconik.io/API/assets`
- URL: `https://app.iconik.io/API/assets/v1/collections/{collection_id}/size/`
- Auth: none declared. Required headers: `App-ID`, `Auth-Token`
- TypeScript: <https://skmtc.dev/iconik/apis/iconik-assets/docs/v1/collections/:collection_id/size/get.ts> (a function with typed inputs; its response is checked against the schema)

Required roles:
 - can_read_collections

## Path parameters

- `collection_id` string, required

## Query parameters

- `format_name` string
- `include_subcollections` boolean

## Headers

- `App-ID` string, required
- `Auth-Token` string, required

## Response `200`

Returns the size of all the collection's assets

- CollectionSizeSchema
  - `id` string, uuid
  - `size` integer
  - `title` string

## Other responses

- `400`: Bad request
- `401`: Token is invalid
- `404`: Collection does not exist
- `default`: Error response

---

[API](https://skmtc.dev/iconik/apis/iconik-assets.md) - [All operations](https://skmtc.dev/iconik/apis/iconik-assets/llms.txt) - [OpenAPI document](https://skmtc.dev/iconik/apis/iconik-assets/revisions/62580d9e640e?raw)
