---
title: "Test Immuta"
method: POST
path: "/api/test_immuta"
tags: ["Connections"]
---

# Test Immuta

`POST /api/test_immuta`

## Request

- Base URL: `https://app.getdot.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://app.getdot.ai/api/test_immuta`
- Auth: one of:
  - API key in header `X-API-KEY`
  - API key in cookie `Authorization`
  - OAuth 2 (password, token URL `/api/auth/token`)

Vend a role against the connection's Immuta tenant so a broken credential surfaces
here, not on the first user question — where fail closed means nobody can query.

``userid`` names the Immuta user to vend for, defaulting to the calling admin. An
admin who is not themselves an Immuta user would otherwise only ever see a
user-not-found error and read it as a broken integration.

## Request body

- BodyTestImmutaApiTestImmutaPost
  - `connection_id` string, required
  - `userid` string

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/getdot/apis/dot-api-2.md) · [All operations](https://skmtc.dev/getdot/apis/dot-api-2/llms.txt) · [OpenAPI document](https://skmtc.dev/getdot/apis/dot-api-2/revisions/d26fe7163a7f?raw)
