ArgorantDocs

Connect Google Workspace

posthttps://app.argorant.com/api/v1/inboxes/google-workspace
POST
/api/v1/inboxes/google-workspace

Two calls. Without emails: returns what the Workspace admin must add under Google Admin > Security > API controls > Domain-wide delegation (client id and scopes) and, once that is done, every mailbox and alias in the Workspace. With emails (or an empty list for all): connects those addresses as senders. No passwords, no per-mailbox login.

Authorization

BearerAuth
AuthorizationBearer <token>

Your API key from app.argorant.com/profile, sent as Authorization: Bearer <key>.

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

Shell
curl -X POST "https://app.argorant.com/api/v1/inboxes/google-workspace" \  -H "Content-Type: application/json" \  -d '{    "admin_email": "admin@northgate-advisory.com",    "emails": [      "elena@northgate-advisory.com"    ]  }'
JSON
{  "connected": [    {      "email": "elena@northgate-advisory.com",      "health": "healthy"    }  ]}