---
title: "Oauth Callback"
method: POST
path: "/integrations/google-analytics/callback"
tags: ["integrations"]
---

# Oauth Callback

`POST /integrations/google-analytics/callback`

## Request

- Base URL: `https://api-docs.upsmith.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api-docs.upsmith.com/integrations/google-analytics/callback`
- Auth: one of:
  - API key in header `x-api-key`
  - HTTP bearer

## Headers

- `timezone` string
- `x-user-id` string, nullable
- `x-actor-email` string, nullable
- `x-request-source` string, nullable
- `x-operation-id` string, nullable
- `x-commit-message` string, nullable
- `x-confirmation-id` string, nullable
- `x-chat-id` string, nullable
- `organization-id` string, nullable

## Request body

- GoogleAnalyticsCallbackRequest
  - `code` string, password, required: Authorization code from Google's OAuth redirect
  - `redirect_uri` string, required

## Response `200`

Successful Response

- GoogleAnalyticsConnectionResponse
  - `integration_id` string, required
  - `status` string, required
  - `property_count` integer, required

## Other responses

- `422`: Validation Error

---

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