---
title: "Download document file by role"
method: GET
path: "/api/v2/documents/{id}/files/{role}"
tags: ["KYC Documents"]
---

# Download document file by role

`GET /api/v2/documents/{id}/files/{role}`

## Request

- Base URL: `https://app.didlogic.com`
- URL: `https://app.didlogic.com/api/v2/documents/{id}/files/{role}`
- Auth: HTTP bearer

Download a specific document file by role (frontside/backside).

## Path parameters

- `id` integer, required
- `role` 'frontside' | 'backside', required

## Response `200`

returns file with proper headers and content

## Other responses

- `401`: returns unauthorized
- `404`: returns not found

---

[API](https://skmtc.dev/didlogic/apis/get-started.md) · [All operations](https://skmtc.dev/didlogic/apis/get-started/llms.txt) · [OpenAPI document](https://skmtc.dev/didlogic/apis/get-started/revisions/dc972d592b34?raw)
