---
title: "Onedrive Callback"
method: POST
path: "/integrations/onedrive/callback"
tags: ["OneDrive"]
---

# Onedrive Callback

`POST /integrations/onedrive/callback`

## Request

- Base URL: `https://api.openintake.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.openintake.ai/integrations/onedrive/callback`
- Auth: none declared

Exchange the OneDrive authorization code and store credentials.

## Query parameters

- `code` string, required
- `state` string, required

## Response `200`

Successful Response

- OneDriveStatus: OneDrive connection status
  - `connected` boolean, required
  - `connected_at` string, nullable
  - `expires_at` string, nullable
  - `account_email` string, nullable
  - `folder_path` string, nullable

## Other responses

- `422`: Validation Error

---

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