---
title: "Relay a Bug Capture email through Raven"
method: POST
path: "/api/v1/bug_capture/emails"
tags: ["Bug Capture"]
---

# Relay a Bug Capture email through Raven

`POST /api/v1/bug_capture/emails`

## Request

- Base URL: `https://toolkit.browserstack.com`
- URL: `https://toolkit.browserstack.com/api/v1/bug_capture/emails`
- Auth: HTTP basic

Server-to-server relay (LV-3641). Bird Eats Bug selects the recipients and posts the template inputs; wdt-rails owns the template, the branding and the links, and sends through Raven. BEB cannot reach Raven directly.

## Request body

- object
  - `template_key` 'workspace-invite' | 'user-joined-workspace', required
  - `source` 'beb' | 'toolkit': Surface the action happened on; picks the variant and CTA.
  - `to` string, required: One address or a comma separated list.
  - `reply_to` string, nullable
  - `model` object, required

## Response `202`

Queued for delivery

- object
  - `success` boolean
  - `data` object
    - `queued` integer
    - `template_key` string
    - `source` string

## Other responses

- `401`: Missing or wrong basic auth
- `422`: Unknown template, unknown source, or an incomplete model

---

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