---
title: "Generate signed URL for file upload"
method: POST
path: "/api/v1/bug_capture/sessions/{sessionId}/files"
tags: ["Bug Capture"]
---

# Generate signed URL for file upload

`POST /api/v1/bug_capture/sessions/{sessionId}/files`

## Request

- Base URL: `https://toolkit.browserstack.com`
- URL: `https://toolkit.browserstack.com/api/v1/bug_capture/sessions/{sessionId}/files`
- Auth: API key in cookie `_wdt_rails_session`

Generates signed URLs for uploading files (screenshots, videos, etc.) associated with a bug capture session

## Path parameters

- `sessionId` string, required

## Request body

- object
  - `workspace_id` string
  - `files` object[]
    - `name` string
    - `type` string
    - `size` integer

## Response `200`

Signed URLs generated successfully

- object
  - `success` boolean
  - `data` object
    - `signed_urls` object[]
      - `file_name` string
      - `upload_url` string

## Other responses

- `401`: Unauthorized
- `500`: Internal server error

---

[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)
