---
title: "Discover From Session"
method: POST
path: "/api/workspace-integrations/discover-from-session"
tags: ["workspace-integrations", "workspace-integrations"]
---

# Discover From Session

`POST /api/workspace-integrations/discover-from-session`

## Request

- Base URL: `https://api.dialogbrain.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.dialogbrain.com/api/workspace-integrations/discover-from-session`
- Auth: none declared

Infer an OpenAPI spec from the recorded traffic and auto-detect the auth
credential (generic cookie/bearer/custom-header), cross-checked against the
identity's saved session so the proposed extract actually renders. Never
persists the captured traffic.

## Request body

- DiscoverFromSessionRequest: Infer an OpenAPI spec from recorded XHR/fetch traffic + auto-detect the auth credential, scoped to the identity's session.
  - `identity_id` integer, required
  - `base_url` string, required
  - `captured_requests` object[], required

## Response `200`

Successful Response

- DiscoverFromSessionResponse
  - `spec` object, required
  - `source` string, required
  - `tool_preview` string[], required
  - `warnings` string[], required
  - `auth_candidates` object[], required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/dialogbrain/apis/dialogbrain-v2-api-gateway.md) · [All operations](https://skmtc.dev/dialogbrain/apis/dialogbrain-v2-api-gateway/llms.txt) · [OpenAPI document](https://skmtc.dev/dialogbrain/apis/dialogbrain-v2-api-gateway/revisions/77bef09a9209?raw)
