---
title: "Attach a file to a ticket"
method: POST
path: "/api/v1/integration/add-ticket-attachment"
tags: ["Integration"]
---

# Attach a file to a ticket

`POST /api/v1/integration/add-ticket-attachment`

## Request

- Base URL: `https://toolkit.browserstack.com`
- URL: `https://toolkit.browserstack.com/api/v1/integration/add-ticket-attachment`
- Auth: API key in cookie `_wdt_rails_session`

Attaches one file (the diff image of a Visual Overlay finding) to a ticket created through the central integrations service.

## Request body `multipart/form-data`

- object
  - `file` string, binary, required
  - `ticket_id` string, required
  - `integration_key` string
  - `organisation_id` string
  - `project_id` string

## Response `200`

File attached

- object
  - `success` boolean

## Other responses

- `401`: Tool connection lapsed
- `422`: Attachment refused
- `504`: Upload sent but not confirmed — check the ticket before retrying

---

[API](https://skmtc.dev/birdeatsbug/apis/wdt-rails-api.md) - [All operations](https://skmtc.dev/birdeatsbug/apis/wdt-rails-api/llms.txt) - [OpenAPI document](https://skmtc.dev/birdeatsbug/apis/wdt-rails-api/revisions/cbd06b547b6a?raw)
