---
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`

## 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/oauth/google-workspace/test-connection`
- Auth: none declared

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/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)
