x-workspace-key and covers all workspaces the key owner is a member of, in any role.contains matches the mailbox username or domain, case-insensitively. With an @, the part before it matches the username and the part after it the domain. Without contains, all mailboxes are returned, paged.mailboxPerDomain. When no mailbox matches, domains whose name contains the text are returned instead, with empty mailboxes.contains value starting with sub also searches subscriptions by Stripe subscription ID, up to 20 per product, on page 1 only.limit defaults to 50 here, not 10. Read-only.curl --location 'https://api.zapmail.ai/api/v3/global/mailbox-domain-search' \
--header 'x-auth-zapmail;'{
"status": 200,
"message": "Search completed successfully",
"data": {
"mailboxPerDomain": {
"acme-outreach.com": {
"mailboxes": [
{
"id": "b3f1c2a4-1d2e-4f5a-8b9c-0d1e2f3a4b5c",
"first_name": "Jane",
"last_name": "Doe",
"username": "jane",
"domain": "acme-outreach.com",
"workspace_id": "2d8e6c4a-9f1b-4d3e-a7c5-6b8f2e4d1c9a",
"service_provider": "GOOGLE",
"mailboxWorkspace": {
"id": "2d8e6c4a-9f1b-4d3e-a7c5-6b8f2e4d1c9a",
"name": "Acme Outreach"
},
"mailboxDomain": {
"id": "83e2d581-fcb5-48e5-ad21-02f0e57eec69",
"status": "ACTIVE",
"nameServers": [
"ns1.zapmaildns.com",
"ns2.zapmaildns.com"
],
"serviceProvider": "GOOGLE",
"workspaceId": "2d8e6c4a-9f1b-4d3e-a7c5-6b8f2e4d1c9a"
}
}
],
"domain_id": "83e2d581-fcb5-48e5-ad21-02f0e57eec69",
"status": "ACTIVE",
"name_servers": [
"ns1.zapmaildns.com",
"ns2.zapmaildns.com"
],
"service_provider": "GOOGLE",
"workspace_id": "2d8e6c4a-9f1b-4d3e-a7c5-6b8f2e4d1c9a",
"workspace_name": "Acme Outreach"
}
},
"subscriptions": [],
"pagination": {
"totalSearchedCount": 1,
"currentPage": 1,
"nextPage": 2,
"totalPages": 1
}
}
}