---
title: "Aas Connect Service Principal"
method: POST
path: "/api/aas/connect_sp"
tags: ["Connections"]
---

# Aas Connect Service Principal

`POST /api/aas/connect_sp`

## 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/aas/connect_sp`
- Auth: one of:
  - API key in header `X-API-KEY`
  - API key in cookie `Authorization`
  - OAuth 2 (password, token URL `/api/auth/token`)

Connect to Azure Analysis Services using Service Principal (client credentials).

Acquires a token via MSAL client credentials flow and tests by listing databases.

## Request body

- BodyAasConnectServicePrincipalApiAasConnectSpPost
  - `server_url` string, required
  - `database_name` string
  - `client_id` string, required
  - `client_secret` string, required
  - `tenant_id` string, required

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