---
title: "Get token for microsoft authentication token from loop code"
method: GET
path: "/api/v1.4/token/microsoft/code"
tags: ["Token"]
---

# Get token for microsoft authentication token from loop code

`GET /api/v1.4/token/microsoft/code`

## Request

- Base URL: `https://api.intheloop.io`
- URL: `https://api.intheloop.io/api/v1.4/token/microsoft/code`
- Auth: API key in header `Authorization`

## Query parameters

- `code` string

## Response `200`

OK

- Token: Token resource
  - `accessToken` string: Access token, type is Bearer
  - `refreshToken` string: Refresh token
  - `email` string: Email of refresh token
  - `isSyncable` boolean, required: Token is syncable

## Other responses

- `400`: Bad request. Check fields message and error code from response body for additional information.
- `401`: Unauthorized request. Check fields message and error code from response body for additional information.
- `429`: Too many requests. Check response header Retry-After indicating how long to wait before making a new request.
- `500`: Internal Server Error

---

[API](https://skmtc.dev/intheloop/apis/loop-api.md) - [All operations](https://skmtc.dev/intheloop/apis/loop-api/llms.txt) - [OpenAPI document](https://skmtc.dev/intheloop/apis/loop-api/revisions/0892c5ba0787?raw)
