---
title: "Finalize Auth"
method: POST
path: "/ee/connectors/finalize-auth"
tags: ["EE - Connectors"]
---

# Finalize Auth

`POST /ee/connectors/finalize-auth`

Finalize the OAuth flow and exchange the code for a token.

## Headers

- `authorization` string, nullable

## Request body

- ConnectorAuthResponse
  - `connector_type` string, required
  - `auth_response_data` object, required

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/morphik-org/apis/fastapi.md) · [All operations](https://skmtc.net/morphik-org/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/morphik-org/fastapi/versions/2d9291c3821d/schema)
