---
title: "Begin connecting a Google Workspace mailbox"
method: POST
path: "/mailboxes/connect/google/start/"
tags: ["senders"]
---

# Begin connecting a Google Workspace mailbox

`POST /mailboxes/connect/google/start/`

## Request

- Base URL: `https://api.getoneprofile.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.getoneprofile.ai/mailboxes/connect/google/start/`
- Auth: one of:
  - API key in header `X-API-Key`
  - HTTP bearer

Returns the Google authorize URL; the org rides in the OAuth state.

## Request body

- GoogleConnectStartSchema
  - `login_hint` string, nullable: Pre-select this account on Google's chooser, so a reconnect should land on the mailbox that broke, not whichever account the browser is signed into.
  - `sender_profile_id` string, uuid, nullable: Attach the new mailbox to this profile on connect.

## Response `200`

Successful Response

- GoogleConnectStartResponseSchema
  - `authorize_url` string, required

## Other responses

- `401`: Unauthorized
- `403`: Forbidden
- `422`: Invalid request made to the API.
- `500`: Internal server error.
- `502`: Bad gateway error.
- `503`: Service unavailable.

---

[API](https://skmtc.dev/getoneprofile/apis/api-reference-oneprofile.md) · [All operations](https://skmtc.dev/getoneprofile/apis/api-reference-oneprofile/llms.txt) · [OpenAPI document](https://skmtc.dev/getoneprofile/apis/api-reference-oneprofile/revisions/4a6bd71e3f02?raw)
