---
title: "Import From Google Workspace"
method: POST
path: "/api/business-intelligence/import-from-google-workspace"
tags: ["Business Intelligence"]
---

# Import From Google Workspace

`POST /api/business-intelligence/import-from-google-workspace`

Create a background job that imports existing clients and active deals from Gmail + Calendar.

Triggered by the React signup flow alongside business_intelligence_report and
voice_profile_refresh. Job creates a thread named 'Importing from Inbox + Calendar'
and runs the add-clients-and-deals-from-google-workspace skill autonomously.

## Query parameters

- `user_id` string, nullable
- `org_id` string, nullable

## Request body

- GoogleWorkspaceImportRequest
  - `lookback_days_calendar` integer — Days of Google Calendar history to scan for meeting attendees.
  - `lookback_days_inbox_client` integer — Days of Gmail history to scan for paid-client signals (invoices, payments, contracts).
  - `lookback_days_inbox_lead` integer — Days of Gmail history to scan for active-lead signals (proposals, intros, outreach).
  - `max_records` integer — Maximum records to create in a single import run. Hard cap to bound cost and noise.

## Response `200`

Successful Response

- BusinessIntelligenceJobResponse — Response when creating a background job for business intelligence report
  - `job_id` string, required — The background job ID for tracking report generation
  - `status` string — Initial job status

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/every/apis/every-api.md) · [All operations](https://skmtc.net/every/apis/every-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/every/every-api/revisions/9744001af85d/schema)
