---
title: "Get all attachments for a segment"
method: GET
path: "/v1/assets/{asset_id}/segments/{segment_id}/attachments/"
---

# Get all attachments for a segment

`GET /v1/assets/{asset_id}/segments/{segment_id}/attachments/`

## Request

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

Required roles:
 - can_read_assets
- can_read_segments

## Path parameters

- `asset_id` string, required
- `segment_id` string, required

## Query parameters

- `per_page` integer
- `generate_signed_url` boolean
- `content_disposition` string
- `last_id` string
- `fields` string

## Headers

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

## Response `200`

Returns all attachments associated with this segment

- AttachmentsSchema
  - `first_url` string
  - `last_url` string
  - `next_url` string
  - `objects` AttachmentSchema[]
    - `asset_id` string, uuid, nullable
    - `date_created` string, date-time
    - `date_modified` string, date-time
    - `filename` string
    - `format` string, nullable
    - `id` string, uuid
    - `name` string
    - `segment_id` string, uuid
    - `size` integer, nullable
    - `status` 'OPEN' | 'GROWING' | 'AWAITED' | 'CLOSED' | 'FAILED' | 'ARCHIVED' | 'MISSING' | 'REDISCOVERED' | 'DELETED'
    - `storage_id` string, uuid
    - `storage_method` string
    - `upload_credentials` object
    - `upload_headers` object
    - `upload_method` string
    - `upload_url` string
    - `url` string
  - `page` integer
  - `pages` integer
  - `per_page` integer
  - `prev_url` string
  - `scroll_id` string
  - `total` integer

## Other responses

- `400`: Bad request
- `401`: Token is invalid
- `404`: No such segment on this asset, not a comment
- `default`: Error response

---

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