---
title: "Create a Microsoft Teams disconnect teardown admin consent URL"
method: POST
path: "/messaging/teams/disconnect-teardown/consent-url"
tags: ["Messaging"]
---

# Create a Microsoft Teams disconnect teardown admin consent URL

`POST /messaging/teams/disconnect-teardown/consent-url`

## Request

- Base URL: `https://api.xfa.tech`
- URL: `https://api.xfa.tech/messaging/teams/disconnect-teardown/consent-url`
- Auth: HTTP bearer

## Request body

- TeamsDisconnectTeardownConsentURLRequest
  - `organization_id` string, required: The ID of the organization that owns the Teams connection
  - `connection_id` string, required: The Teams messaging connection ID to tear down
  - `redirect_uri` string, required: The dashboard URI where Microsoft redirects after teardown admin consent

## Response `200`

Returns Teams disconnect teardown consent URL details

- TeamsDisconnectTeardownConsentURLResponse
  - `state` string, required
  - `consent_url` string, required

## Other responses

- `400`: Invalid request
- `403`: MFA required or invalid
- `404`: Connection not found

---

[API](https://skmtc.dev/xfa/apis/xfa-api.md) · [All operations](https://skmtc.dev/xfa/apis/xfa-api/llms.txt) · [OpenAPI document](https://skmtc.dev/xfa/apis/xfa-api/revisions/1a1be0e8972b?raw)
