---
title: "Sign in with Microsoft (Gleap app)"
url: https://docs.gleap.ai/en/reference/rest-api/sign-in-with-microsoft
method: POST
path: "/mobile-auth/microsoft"
api: "API Reference"
tag: "Microsoft sign-in"
operationId: "SignInWithMicrosoft"
updatedAt: "2026-11-07T09:40:00.500Z"
language: en
---

# Sign in with Microsoft (Gleap app)

`POST https://api.gleap.io/v3/mobile-auth/microsoft`

Sign in to the Gleap app with a Microsoft Entra access token for Gleap's API. The session lives as long as the Microsoft token; the app calls this again with a fresh token to renew it. 403 `microsoft_account_not_member` when no organisation of that tenant has this person as a member.

## Request body (`application/json`, required)

- `accessToken` (string, required): A Microsoft Entra access token for Gleap's API, from the app's Microsoft sign-in.

## Example request

```bash
curl --request POST \
  --url https://api.gleap.io/v3/mobile-auth/microsoft \
  --header 'Content-Type: application/json' \
  --data '{
  "accessToken": "<accessToken>"
}'
```

## Responses

### 200 (`application/json`)

Ok

```json
{
  "token": "string",
  "expiresAt": 0
}
```
