List connected workspaces
List connected provider workspaces (Google / Microsoft tenants)
curl -X GET "https://lynx-api.trulyinbox.com/v2/workspaces/0/provider-workspaces"{
"data": [
{
"id": 0,
"provider": "google",
"adminEmail": "string",
"tenantId": {},
"status": "active",
"lastSyncedAt": "2019-08-24T14:15:22Z",
"domains": [
{
"domain": "string",
"mailboxCount": 0
}
],
"createdAt": "2019-08-24T14:15:22Z"
}
],
"meta": {
"request_id": "req_2f1c…",
"timestamp": "2019-08-24T14:15:22Z"
}
}{
"error": {
"code": "invalid_request",
"message": "string",
"details": {},
"retry_after": 34
},
"meta": {
"request_id": "req_2f1c…",
"timestamp": "2019-08-24T14:15:22Z"
}
}{
"error": {
"code": "invalid_request",
"message": "string",
"details": {},
"retry_after": 34
},
"meta": {
"request_id": "req_2f1c…",
"timestamp": "2019-08-24T14:15:22Z"
}
}Get Microsoft consent URLGET
Get the Microsoft admin-consent URL Microsoft-only first step. A tenant administrator opens this URL in a browser; the redirect returns a `tenantId` and `state` to POST back to this collection. Google tenants skip this step and POST an `adminEmail` directly. Pass `domain` (the customer's Microsoft domain or tenant GUID) to pin the prompt to that tenant and get its `tenantId` back here, so you do not have to rely on the admin reading it to you; an unresolvable domain returns 422 rather than silently falling back to the generic prompt.
Register a workspacePOST
Register a Google Workspace or Microsoft 365 tenant Google: supply `adminEmail`, a super-admin mailbox the service account impersonates for Directory discovery. Microsoft: supply the `tenantId` and `state` returned by the admin-consent redirect. Registering only makes the tenant's mailboxes discoverable - nothing is connected until .../sync runs.