---
title: "Mint a Bird Eats Bug session token"
method: POST
path: "/api/v1/bug_capture/session"
tags: ["Bug Capture"]
---

# Mint a Bird Eats Bug session token

`POST /api/v1/bug_capture/session`

## Request

- Base URL: `https://toolkit.browserstack.com`
- URL: `https://toolkit.browserstack.com/api/v1/bug_capture/session`
- Auth: API key in cookie `_wdt_rails_session`

Server-side relay (LV-3386): reads the httpOnly wdt_jwt_token cookie and forwards it to Bird Eats Bug to mint a BEB (Hasura) JWT, so the toolkit dashboard can skip the BEB OAuth bounce.

## Response `200`

BEB session token minted successfully

- object
  - `success` boolean
  - `access_token` string
  - `expires_at` integer

## Other responses

- `401`: Unauthorized - wdt_jwt_token cookie missing
- `500`: Internal server error or BEB relay failed

---

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