---
title: "Google Workspace Test Connection"
method: POST
path: "/oauth/google-workspace/test-connection"
tags: ["OAuth"]
---

# Google Workspace Test Connection

`POST /oauth/google-workspace/test-connection`

Test Google Workspace connection by making a Directory API call.
If successful, updates the customer's status to 'connected'.

## Request body

- GoogleWorkspaceTestConnectionRequest — Request to test Google Workspace connection

## Response `200`

Successful Response

- GoogleWorkspaceTestConnectionResponse — Response from testing Google Workspace connection
  - `success` boolean, required
  - `message` string, required
  - `logs` string[], nullable
  - `error_details` object, nullable

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/openintake/apis/fastapi.md) · [All operations](https://skmtc.dev/openintake/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/openintake/fastapi/revisions/4a81645b59f6/schema)
