---
title: "Get an attachment"
method: GET
path: "/companies/{companyId}/invoices/{invoiceId}/attachments/{attachmentId}"
tags: ["invoices"]
---

# Get an attachment

`GET /companies/{companyId}/invoices/{invoiceId}/attachments/{attachmentId}`

## Request

- Base URL: `https://api.bokio.se/v1`
- URL: `https://api.bokio.se/v1/companies/{companyId}/invoices/{invoiceId}/attachments/{attachmentId}`
- Auth: one of:
  - HTTP bearer
  - OAuth 2
    - Authorization code: `/authorize`
    - Client credentials
    - Token URL: `/token` scopes: `invoices:write`

Retrieve the information of the attachment with the matching attachmentId.

**Scope:** `invoices:read`

## Response `200`

Attachment found

- InvoiceAttachment
  - `id` string, uuid
  - `invoiceId` string, uuid
  - `fileName` string

## Other responses

- `404`: Attachment not found

---

[API](https://skmtc.dev/bokio/apis/company-api.md) - [All operations](https://skmtc.dev/bokio/apis/company-api/llms.txt) - [OpenAPI document](https://skmtc.dev/bokio/apis/company-api/revisions/9395020f3da2?raw)
