---
title: "Oauth Callback"
method: GET
path: "/integrations/callback"
tags: ["integrations"]
---

# Oauth Callback

`GET /integrations/callback`

## Request

- Base URL: `https://platform.tracecat.com/api`
- URL: `https://platform.tracecat.com/api/integrations/callback`
- Auth: API key in cookie `fastapiusersauth`

Handle OAuth callback for the specified provider.

Validates the state parameter against the database to ensure it was issued
by our server and hasn't expired. This prevents CSRF attacks.

## Query parameters

- `code` string, required: Authorization code from OAuth provider
- `state` string, required: State parameter from authorization request

## Response `200`

Successful Response

- IntegrationOAuthCallback: Response for OAuth callback.
  - `status` string: The status of the OAuth callback
  - `provider_id` string, required: The provider that the user connected to
  - `redirect_url` string, required: The URL to redirect to after the OAuth callback

## Other responses

- `422`: Validation Error

---

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