---
title: "Gmail Connect"
method: POST
path: "/api/agents/{agent_id}/gmail/connect"
tags: ["gmail-connect"]
---

# Gmail Connect

`POST /api/agents/{agent_id}/gmail/connect`

## Request

- Base URL: `https://api.maritime.sh` (the document declares no server; this is the origin it was published from)
- URL: `https://api.maritime.sh/api/agents/{agent_id}/gmail/connect`
- Auth: HTTP bearer

Inject Gmail credentials into the running agent container.

Writes the MCP tool server script and configures openclaw.json
to use it. Called after OAuth is complete and agent is running.

## Path parameters

- `agent_id` string, required

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

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