Docs
Workspaces

Preview workspace mailboxes

Preview mailboxes available to connect in a provider workspace

Paginated directory listing, excluding mailboxes already connected. Filter with domain and search to build the selection for .../sync.

GET
/v2/workspaces/{workspaceId}/provider-workspaces/{providerWorkspaceId}/preview

Path Parameters

providerWorkspaceIdnumber
workspaceIdnumber

Query Parameters

page?number
Default1
limit?number
Default50
search?string

Substring match on email or display name.

domain?array<string>

Restrict the preview to these domains (OR match). A single query value holding a JSON array, e.g. domain=["a.com","b.com"]. Empty/absent = all domains.

Response Body

curl -X GET "https://lynx-api.trulyinbox.com/v2/workspaces/0/provider-workspaces/0/preview?page=1&limit=50&search=string&domain=string"
{
  "data": {
    "newEmails": [
      {
        "email": "string",
        "displayName": {},
        "domain": "string"
      }
    ],
    "total": 0,
    "page": 0,
    "limit": 0,
    "connectedCount": 0,
    "domains": [
      {
        "domain": "string",
        "count": 0
      }
    ]
  },
  "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"
  }
}