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

# Create a Microsoft Teams admin consent URL

`POST /messaging/teams/consent-url`

## Request

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

## Request body

- object
  - `organization_id` string, required: The ID of the organization requesting Teams consent
  - `redirect_uri` string, required: The dashboard URI where Microsoft redirects after admin consent

## Response `200`

Returns Teams consent URL details

- object
  - `state` string
  - `consent_url` string
  - `expires_at` integer

## Other responses

- `400`: Invalid request
- `403`: Not authorized

---

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