---
title: "Which mail providers can be signed in to"
method: GET
path: "/api/v1/mail/oauth"
tags: ["Desk"]
---

# Which mail providers can be signed in to

`GET /api/v1/mail/oauth`

## Request

- Base URL: `http://localhost:5180`
- URL: `http://localhost:5180/api/v1/mail/oauth`
- Auth: API key in cookie `better-auth.session_token`

Says which providers this deployment holds a sign-in for. A provider that is not listed is connected another way, so a screen offers a button only where this says yes.

## Response `200`

The providers that can be signed in to.

- object
  - `ok` unknown, required
  - `data` object, required
    - `microsoft` boolean, required: Whether this deployment can sign an owner in to an Outlook or Microsoft 365 mailbox.
  - `meta` object, required
    - `requestId` string, required: Echoed in the x-request-id header. Quote it in a bug report.

## Other responses

- `401`: No session. Sign in first.

---

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