---
title: "Test Identity Token"
method: POST
path: "/api/workspace-integrations/identity-token/test"
tags: ["workspace-integrations", "workspace-integrations"]
---

# Test Identity Token

`POST /api/workspace-integrations/identity-token/test`

## 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/identity-token/test`
- Auth: none declared

Resolve the chosen extract into headers from the bound identity and make
ONE real probe request, so the owner sees pass/fail before saving. Returns
only header NAMES (never values).

## Request body

- IdentityTokenTestRequest: Test a browser_identity extract config with one real probe request.
  - `identity_id` integer, required
  - `extract` object, required
  - `base_url` string, required
  - `probe_path` string, nullable
  - `probe_method` string, nullable
  - `default_headers` object, nullable

## Response `200`

Successful Response

- IdentityTokenTestResponse
  - `ok` boolean, required
  - `status` integer, nullable
  - `header_names` string[], required
  - `reason` string, nullable

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