Returns one page of employees with their totals for the requested stats over a date range. Employees with no data in the range are included with values of 0. Select 1 to 50 stat identifiers, then optionally filter by totals and sort by a selected stat or employee name. Pagination starts at page 1, with at most 100 employees per page. Request include.total for the count, include.aggregates for statistics across all matching employees, or include.rankOf for one employee’s position across all pages. Viewing stats for all employees requires workspace-wide analytics access. Other callers can read their own stats and those of their direct and indirect reports, plus employees covered by delegated reporting access. Employee filters only narrow that access.
Use an API key or OAuth access token. Enter only the token in the authorization dialog; requests send it as Authorization: Bearer <TOKEN>.
Create an API key in your workspace's Settings → API keys. Keys start with wm_api_ and only work in the workspace where they were created. Read-only keys can read data; creating, updating, or deleting data requires a read-write key.
Authorization: Bearer wm_api_example
OAuth access tokens are issued for connected Windmill applications.
Authorization: Bearer <OAUTH_ACCESS_TOKEN>
Both token types use the authenticated user's workspace permissions. Each endpoint's permission requirements and the sharing settings of the requested items still apply.
Path Parameters
companyId
string
required
Company ID. A URL slug is also accepted. The caller must have access to this company.
Required string length: 1 - 128
Example:
"company-acme"
Body
application/json
dateRange
object
required
Option 1
Option 2
Show child attributes
statTypes
string[]
required
Stat identifiers to total, global or workspace custom. Each row returns its stats in this order. Unknown identifiers total 0.
Required array length: 1 - 50 elements
Kebab-case identifier of a global Windmill stat or a workspace custom stat. Discover identifiers with POST /c/{companyId}/stats/metadata/search.
Required string length: 1 - 100
Pattern: ^[a-z0-9]+(-[a-z0-9]+)*$
Example:
["code-prs-merged"]
timezone
string
IANA timezone used to resolve the date range (e.g. "America/New_York"). Defaults to UTC.
Example:
"America/New_York"
employee
Employee filter · object
Limits which employees are returned within the set the caller can access. This filter never grants access to more employees.
Show child attributes
Example:
{ "query": "Avery" }
search
string
Text that matches the employee name, preferred name, or email username.
Maximum string length: 200
Example:
"Avery"
where
Stat total conditions · object[]
Conditions on stat totals. An employee matches only when every condition is true. Each condition compares the value that a row returns: the weighted average for AVERAGE stats, and 0 for an employee with no data.
Additional results to calculate alongside the page. Omit to skip this work.
Show child attributes
Example:
{ "total": true, "aggregates": true }
Response
One page of employees with their stat totals
results
Employee stat totals row · object[]
required
One row per employee, including employees with no data in the range. Only employees whose analytics the caller can read are included.
Show child attributes
pagination
Pagination · object
required
Returned page and page size, plus hasMore. Total is omitted unless include.total was requested.
Show child attributes
aggregates
Stat totals across employees · object[]
Present when include.aggregates is true. In the order of statTypes.
Show child attributes
rank
Employee rank · object | null
Present when include.rankOf is set. Null when that employee does not match the filter or the caller cannot access them.
Show child attributes
Example:
{ "position": 1 }
Was this page helpful?
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Windmill Help Site","colors":{"primary":"#4084FB","light":"#7aadff","dark":"#1758c1"},"logo":{"light":"https://mintcdn.com/windmill/438SkEPmWnjrcDyT/logo/light.svg?fit=max\u0026auto=format\u0026n=438SkEPmWnjrcDyT\u0026q=85\u0026s=911e75d2985851400d148f9e5e20c94f","dark":"https://mintcdn.com/windmill/438SkEPmWnjrcDyT/logo/dark.svg?fit=max\u0026auto=format\u0026n=438SkEPmWnjrcDyT\u0026q=85\u0026s=3942c2e1a12a8a71050cdb71a6613cf0"},"favicon":"https://mintcdn.com/windmill/438SkEPmWnjrcDyT/favicon.svg?fit=max\u0026auto=format\u0026n=438SkEPmWnjrcDyT\u0026q=85\u0026s=d0f6bb9380e55bd874dafc8c7a0bf0cc","navbar":{"links":[{"href":"mailto:support@gowindmill.com","label":"Support"}],"primary":{"type":"button","label":"Dashboard","href":"https://app.gowindmill.com"}},"footer":{"socials":{"x":"https://x.com/trywindmill","linkedin":"https://www.linkedin.com/company/gowindmill"}},"seo":{"metatags":{"og:site_name":"Windmill Help Center"}},"contextual":{"options":["copy","view"],"display":"header"},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"windmill","hasAudioNarration":false,"actualSubdomain":"windmill","customDomains":["help.gowindmill.com"],"gitSource":{"type":"github","owner":"windmill-dev","repo":"windmill-help","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"feedback":{"thumbs":true,"agentFeedback":true},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6b009665dfebac270846c193","clientVersion":"0.0.4248","searchFilterCounts":[{"language":"default","tag":"Platform","count":144},{"language":"default","tag":"API reference","count":64},{"language":"default","tag":"Endpoints","count":55},{"language":"default","tag":"Review Cycles","count":51},{"language":"default","tag":"Integrations","count":44},{"language":"default","tag":"Productivity","count":30},{"language":"default","tag":"Pulse surveys","count":28},{"language":"default","tag":"Groups","count":23},{"language":"default","tag":"Features","count":17},{"language":"default","tag":"Getting started","count":16}]},"assistantConfig":{"enableAskAiButton":true,"enableStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"loom-embed.css","content":"[data-loom]{position:relative;aspect-ratio:16 / 9;background:#000;border-radius:0.75rem;overflow:hidden;margin-bottom:1rem}[data-loom]>a{position:absolute;inset:0;display:block}[data-loom] img{width:100%;height:100%;margin:0;border-radius:0;object-fit:contain;object-position:center}[data-loom]::before{content:attr(data-title);position:absolute;inset:0;z-index:1;pointer-events:none;padding:1rem 1.25rem;color:#fff;font-weight:600;font-size:1.25rem;line-height:1.25;text-shadow:0 1px 4px rgba(0, 0, 0, 0.4);background:linear-gradient(\n to bottom,\n rgba(0, 0, 0, 0.75) 0%,\n rgba(0, 0, 0, 0.28) 45%,\n rgba(0, 0, 0, 0.28) 100%\n );transition:opacity 0.5s}[data-loom][data-duration]::after{content:attr(data-duration);position:absolute;bottom:0.75rem;right:0.75rem;z-index:1;pointer-events:none;border-radius:0.375rem;background:rgba(0, 0, 0, 0.7);padding:0.125rem 0.5rem;font-size:0.75rem;font-weight:500;font-variant-numeric:tabular-nums;color:#fff;transition:opacity 0.5s}[data-loom]>a::after{content:\"\";position:absolute;inset:0;z-index:1;margin:auto;width:clamp(72px, 15%, 124px);aspect-ratio:1;border-radius:100%;box-shadow:0 1px 6px rgba(0, 0, 0, 0.25);background:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 90 90' fill='none'%3E%3Cpath fill='%23ffffff' opacity='0.3' d='M45 90C69.8529 90 90 69.8527 90 44.9999C90 20.1471 69.8529 0 45 0C20.1472 0 0 20.1471 0 44.9999C0 69.8527 20.1472 90 45 90Z'/%3E%3Cpath fill='%23ffffff' d='M45 85C67.0914 85 85 67.0913 85 44.9999C85 22.9086 67.0914 5 45 5C22.9086 5 5 22.9086 5 44.9999C5 67.0913 22.9086 85 45 85Z'/%3E%3Cpath fill='%23000000' opacity='0.8' d='M35 33.268V56.732C35 58.5212 37.0582 59.6083 38.6432 58.6344L57.8999 46.9025C59.3667 46.0192 59.3667 43.9808 57.8999 43.0749L38.6432 31.3656C37.0582 30.3917 35 31.4788 35 33.268Z'/%3E%3C/svg%3E\")\n center / contain no-repeat;transition:transform 0.2s, opacity 0.5s}[data-loom]:hover>a::after,[data-loom]:focus-within>a::after{transform:scale(1.1)}[data-loom]>iframe{position:absolute;inset:0;width:100%;height:100%;z-index:2;border:0;opacity:0;pointer-events:none;transition:opacity 0.5s}[data-loom][data-playing]>iframe{opacity:1;pointer-events:auto}[data-loom][data-playing]::before,[data-loom][data-playing]::after,[data-loom][data-playing]>a::after{opacity:0}[data-loom]>button{position:absolute;inset:0;width:100%;height:100%;z-index:3;cursor:pointer;background:transparent;border:0;padding:0}"}]}
{"page":{"pagePath":"api-reference/stats/search-employee-stat-totals","slug":"/api-reference/stats/search-employee-stat-totals","pageMetadata":{"title":"Search employee stat totals","description":"Returns one page of employees with their totals for the requested stats over a date range. Employees with no data in the range are included with values of 0. Select 1 to 50 stat identifiers, then optionally filter by totals and sort by a selected stat or employee name. Pagination starts at page 1, with at most 100 employees per page. Request include.total for the count, include.aggregates for statistics across all matching employees, or include.rankOf for one employee's position across all pages. Viewing stats for all employees requires workspace-wide analytics access. Other callers can read their own stats and those of their direct and indirect reports, plus employees covered by delegated reporting access. Employee filters only narrow that access.","deprecated":null,"version":null,"openapi":"https://api.gowindmill.com/api/v2/openapi.json post /c/{companyId}/stats/employees/search","href":"/api-reference/stats/search-employee-stat-totals","autogeneratedByOpenApi":true},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Returns one page of employees with their totals for the requested stats over a date range. Employees with no data in the range are included with values of 0. Select 1 to 50 stat identifiers, then optionally filter by totals and sort by a selected stat or employee name. Pagination starts at page 1, with at most 100 employees per page. Request include.total for the count, include.aggregates for statistics across all matching employees, or include.rankOf for one employee’s position across all pages. Viewing stats for all employees requires workspace-wide analytics access. Other callers can read their own stats and those of their direct and indirect reports, plus employees covered by delegated reporting access. Employee filters only narrow that access.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Search employee stat totals","description":"Returns one page of employees with their totals for the requested stats over a date range. Employees with no data in the range are included with values of 0. Select 1 to 50 stat identifiers, then optionally filter by totals and sort by a selected stat or employee name. Pagination starts at page 1, with at most 100 employees per page. Request include.total for the count, include.aggregates for statistics across all matching employees, or include.rankOf for one employee's position across all pages. Viewing stats for all employees requires workspace-wide analytics access. Other callers can read their own stats and those of their direct and indirect reports, plus employees covered by delegated reporting access. Employee filters only narrow that access.","deprecated":null,"version":null,"openapi":"https://api.gowindmill.com/api/v2/openapi.json post /c/{companyId}/stats/employees/search","href":"/api-reference/stats/search-employee-stat-totals","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"operationId":"stats.employees.search","summary":"Search employee stat totals","description":"Returns one page of employees with their totals for the requested stats over a date range. Employees with no data in the range are included with values of 0. Select 1 to 50 stat identifiers, then optionally filter by totals and sort by a selected stat or employee name. Pagination starts at page 1, with at most 100 employees per page. Request include.total for the count, include.aggregates for statistics across all matching employees, or include.rankOf for one employee's position across all pages. Viewing stats for all employees requires workspace-wide analytics access. Other callers can read their own stats and those of their direct and indirect reports, plus employees covered by delegated reporting access. Employee filters only narrow that access.","tags":["Stats"],"security":["886ae18b-7827-44be-9728-6ea3fe9690dd"],"parameters":["2ab2b6ee-a28e-43eb-9ed8-d2732fa2142f"],"requestBody":"9be6c7bd-4a1d-4f29-b9f9-f3a165ded497","responses":{"200":"173e3dfd-57e3-428d-9cfc-f1fc3b943a98","400":"4b2509f5-1a43-4a7e-857c-bd3c74818337","401":"5b64757f-7179-4c78-9c48-f339fca15225","403":"c552daff-1397-4efc-ade8-9975b2ed65af","404":"4326ceba-adc8-4210-96e0-07071fe3fdd4","429":"5c3036d0-e817-4125-acd7-a98b9fa4ae90"},"method":"post","type":"path","servers":["c9e274ea-babc-40ce-84c8-2205f0a915c6"],"path":"/c/{companyId}/stats/employees/search","baseUrlOptions":["https://api.gowindmill.com/api/v2"],"title":"Search employee stat totals","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"2ab2b6ee-a28e-43eb-9ed8-d2732fa2142f":{"schema":{"type":"string","minLength":1,"maxLength":128,"description":"Company ID. A URL slug is also accepted. The caller must have access to this company.","title":"Company ID","example":"company-acme","isRequired":true,"uniqueKey":"","typeLabel":"string"},"required":true,"description":"Company ID. A URL slug is also accepted. The caller must have access to this company.","name":"companyId","in":"path"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"dateRange":{"oneOf":[{"type":"object","required":["range"],"properties":{"range":{"type":"string","isRequired":true,"uniqueKey":"dateRange.oneOf.0.range","typeLabel":"string"}},"isRequired":true,"uniqueKey":"dateRange.oneOf.0","typeLabel":"object"},{"type":"object","required":["from","to"],"properties":{"from":{"type":"string","isRequired":true,"uniqueKey":"dateRange.oneOf.1.from","typeLabel":"string"},"to":{"type":"string","isRequired":true,"uniqueKey":"dateRange.oneOf.1.to","typeLabel":"string"}},"isRequired":true,"uniqueKey":"dateRange.oneOf.1","typeLabel":"object"}],"isRequired":true,"uniqueKey":"dateRange","typeLabel":"object"},"statTypes":{"type":"array","items":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[a-z0-9]+(-[a-z0-9]+)*$","description":"Kebab-case identifier of a global Windmill stat or a workspace custom stat. Discover identifiers with POST /c/{companyId}/stats/metadata/search.","title":"Stat identifier","example":"code-prs-merged","uniqueKey":"statTypes.items.[INDEX]","typeLabel":"string"},"minItems":1,"maxItems":50,"description":"Stat identifiers to total, global or workspace custom. Each row returns its stats in this order. Unknown identifiers total 0.","title":"Stat identifiers","example":["code-prs-merged"],"isRequired":true,"uniqueKey":"statTypes","typeLabel":"string[]"},"timezone":{"type":"string","description":"IANA timezone used to resolve the date range (e.g. \"America/New_York\"). Defaults to UTC.","title":"Timezone","example":"America/New_York","uniqueKey":"timezone","typeLabel":"string"},"employee":{"type":"object","properties":{"hasDirectReports":{"oneOf":[{"type":"boolean","uniqueKey":"employee.hasDirectReports.oneOf.0","typeLabel":"boolean"},{"type":"null","uniqueKey":"employee.hasDirectReports.oneOf.1","typeLabel":"null"}],"uniqueKey":"employee.hasDirectReports","typeLabel":"boolean | null"},"hasManager":{"oneOf":[{"type":"boolean","uniqueKey":"employee.hasManager.oneOf.0","typeLabel":"boolean"},{"type":"null","uniqueKey":"employee.hasManager.oneOf.1","typeLabel":"null"}],"uniqueKey":"employee.hasManager","typeLabel":"boolean | null"},"employeeGroupId":{"oneOf":[{"type":"string","uniqueKey":"employee.employeeGroupId.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"employee.employeeGroupId.oneOf.1","typeLabel":"null"}],"uniqueKey":"employee.employeeGroupId","typeLabel":"string | null"},"employeeGroupIds":{"oneOf":[{"type":"array","items":{"type":"string","uniqueKey":"employee.employeeGroupIds.oneOf.0.items.[INDEX]","typeLabel":"string"},"uniqueKey":"employee.employeeGroupIds.oneOf.0","typeLabel":"string[]"},{"type":"null","items":{"type":"string"},"uniqueKey":"employee.employeeGroupIds.oneOf.1","typeLabel":"null"}],"uniqueKey":"employee.employeeGroupIds","typeLabel":"string[] | null"},"employeeGroupIdSets":{"oneOf":[{"type":"array","items":{"type":"array","items":{"type":"string","uniqueKey":"employee.employeeGroupIdSets.oneOf.0.items.[INDEX].items.[INDEX]","typeLabel":"string"},"minItems":1,"uniqueKey":"employee.employeeGroupIdSets.oneOf.0.items.[INDEX]","typeLabel":"string[]"},"uniqueKey":"employee.employeeGroupIdSets.oneOf.0","typeLabel":"string[][]"},{"type":"null","items":{"type":"array","items":{"type":"string"},"minItems":1},"uniqueKey":"employee.employeeGroupIdSets.oneOf.1","typeLabel":"null"}],"uniqueKey":"employee.employeeGroupIdSets","typeLabel":"string[][] | null"},"jobTitle":{"oneOf":[{"type":"string","uniqueKey":"employee.jobTitle.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"employee.jobTitle.oneOf.1","typeLabel":"null"}],"uniqueKey":"employee.jobTitle","typeLabel":"string | null"},"jobTitles":{"oneOf":[{"type":"array","items":{"type":"string","uniqueKey":"employee.jobTitles.oneOf.0.items.[INDEX]","typeLabel":"string"},"uniqueKey":"employee.jobTitles.oneOf.0","typeLabel":"string[]"},{"type":"null","items":{"type":"string"},"uniqueKey":"employee.jobTitles.oneOf.1","typeLabel":"null"}],"uniqueKey":"employee.jobTitles","typeLabel":"string[] | null"},"countries":{"oneOf":[{"type":"array","items":{"type":"string","uniqueKey":"employee.countries.oneOf.0.items.[INDEX]","typeLabel":"string"},"uniqueKey":"employee.countries.oneOf.0","typeLabel":"string[]"},{"type":"null","items":{"type":"string"},"uniqueKey":"employee.countries.oneOf.1","typeLabel":"null"}],"uniqueKey":"employee.countries","typeLabel":"string[] | null"},"emails":{"oneOf":[{"type":"array","items":{"type":"string","uniqueKey":"employee.emails.oneOf.0.items.[INDEX]","typeLabel":"string"},"uniqueKey":"employee.emails.oneOf.0","typeLabel":"string[]"},{"type":"null","items":{"type":"string"},"uniqueKey":"employee.emails.oneOf.1","typeLabel":"null"}],"uniqueKey":"employee.emails","typeLabel":"string[] | null"},"emailDomains":{"oneOf":[{"type":"array","items":{"type":"string","uniqueKey":"employee.emailDomains.oneOf.0.items.[INDEX]","typeLabel":"string"},"uniqueKey":"employee.emailDomains.oneOf.0","typeLabel":"string[]"},{"type":"null","items":{"type":"string"},"uniqueKey":"employee.emailDomains.oneOf.1","typeLabel":"null"}],"uniqueKey":"employee.emailDomains","typeLabel":"string[] | null"},"employeeId":{"oneOf":[{"type":"string","uniqueKey":"employee.employeeId.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"employee.employeeId.oneOf.1","typeLabel":"null"}],"uniqueKey":"employee.employeeId","typeLabel":"string | null"},"employeeIds":{"oneOf":[{"type":"array","items":{"type":"string","uniqueKey":"employee.employeeIds.oneOf.0.items.[INDEX]","typeLabel":"string"},"uniqueKey":"employee.employeeIds.oneOf.0","typeLabel":"string[]"},{"type":"null","items":{"type":"string"},"uniqueKey":"employee.employeeIds.oneOf.1","typeLabel":"null"}],"uniqueKey":"employee.employeeIds","typeLabel":"string[] | null"},"excludedEmployeeId":{"oneOf":[{"type":"string","uniqueKey":"employee.excludedEmployeeId.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"employee.excludedEmployeeId.oneOf.1","typeLabel":"null"}],"uniqueKey":"employee.excludedEmployeeId","typeLabel":"string | null"},"excludedEmployeeIds":{"oneOf":[{"type":"array","items":{"type":"string","uniqueKey":"employee.excludedEmployeeIds.oneOf.0.items.[INDEX]","typeLabel":"string"},"uniqueKey":"employee.excludedEmployeeIds.oneOf.0","typeLabel":"string[]"},{"type":"null","items":{"type":"string"},"uniqueKey":"employee.excludedEmployeeIds.oneOf.1","typeLabel":"null"}],"uniqueKey":"employee.excludedEmployeeIds","typeLabel":"string[] | null"},"managerId":{"oneOf":[{"type":"string","uniqueKey":"employee.managerId.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"employee.managerId.oneOf.1","typeLabel":"null"}],"uniqueKey":"employee.managerId","typeLabel":"string | null"},"managerIds":{"oneOf":[{"type":"array","items":{"type":"string","uniqueKey":"employee.managerIds.oneOf.0.items.[INDEX]","typeLabel":"string"},"uniqueKey":"employee.managerIds.oneOf.0","typeLabel":"string[]"},{"type":"null","items":{"type":"string"},"uniqueKey":"employee.managerIds.oneOf.1","typeLabel":"null"}],"uniqueKey":"employee.managerIds","typeLabel":"string[] | null"},"ancestorManagerId":{"oneOf":[{"type":"string","uniqueKey":"employee.ancestorManagerId.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"employee.ancestorManagerId.oneOf.1","typeLabel":"null"}],"uniqueKey":"employee.ancestorManagerId","typeLabel":"string | null"},"ancestorManagerIds":{"oneOf":[{"type":"array","items":{"type":"string","uniqueKey":"employee.ancestorManagerIds.oneOf.0.items.[INDEX]","typeLabel":"string"},"uniqueKey":"employee.ancestorManagerIds.oneOf.0","typeLabel":"string[]"},{"type":"null","items":{"type":"string"},"uniqueKey":"employee.ancestorManagerIds.oneOf.1","typeLabel":"null"}],"uniqueKey":"employee.ancestorManagerIds","typeLabel":"string[] | null"},"indirectManagerId":{"oneOf":[{"type":"string","uniqueKey":"employee.indirectManagerId.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"employee.indirectManagerId.oneOf.1","typeLabel":"null"}],"uniqueKey":"employee.indirectManagerId","typeLabel":"string | null"},"indirectManagerIds":{"oneOf":[{"type":"array","items":{"type":"string","uniqueKey":"employee.indirectManagerIds.oneOf.0.items.[INDEX]","typeLabel":"string"},"uniqueKey":"employee.indirectManagerIds.oneOf.0","typeLabel":"string[]"},{"type":"null","items":{"type":"string"},"uniqueKey":"employee.indirectManagerIds.oneOf.1","typeLabel":"null"}],"uniqueKey":"employee.indirectManagerIds","typeLabel":"string[] | null"},"isMember":{"oneOf":[{"type":"boolean","uniqueKey":"employee.isMember.oneOf.0","typeLabel":"boolean"},{"type":"null","uniqueKey":"employee.isMember.oneOf.1","typeLabel":"null"}],"uniqueKey":"employee.isMember","typeLabel":"boolean | null"},"memberRole":{"oneOf":[{"type":"string","enum":["admin","hr-admin","integration-manager","data-analyst","team-member",null],"uniqueKey":"employee.memberRole.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["admin","hr-admin","integration-manager","data-analyst","team-member",null],"uniqueKey":"employee.memberRole.oneOf.1","typeLabel":"null"}],"uniqueKey":"employee.memberRole","typeLabel":"enum\u003cstring> | null"},"query":{"oneOf":[{"type":"string","uniqueKey":"employee.query.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"employee.query.oneOf.1","typeLabel":"null"}],"uniqueKey":"employee.query","typeLabel":"string | null"},"includeArchived":{"oneOf":[{"type":"boolean","uniqueKey":"employee.includeArchived.oneOf.0","typeLabel":"boolean"},{"type":"null","uniqueKey":"employee.includeArchived.oneOf.1","typeLabel":"null"}],"uniqueKey":"employee.includeArchived","typeLabel":"boolean | null"},"onlyArchived":{"oneOf":[{"type":"boolean","uniqueKey":"employee.onlyArchived.oneOf.0","typeLabel":"boolean"},{"type":"null","uniqueKey":"employee.onlyArchived.oneOf.1","typeLabel":"null"}],"uniqueKey":"employee.onlyArchived","typeLabel":"boolean | null"},"includeExternalOrgs":{"oneOf":[{"type":"boolean","uniqueKey":"employee.includeExternalOrgs.oneOf.0","typeLabel":"boolean"},{"type":"null","uniqueKey":"employee.includeExternalOrgs.oneOf.1","typeLabel":"null"}],"uniqueKey":"employee.includeExternalOrgs","typeLabel":"boolean | null"},"platformAccess":{"oneOf":[{"type":"string","enum":["HAS_ACCESS","INVITE_PENDING","NO_ACCESS",null],"uniqueKey":"employee.platformAccess.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["HAS_ACCESS","INVITE_PENDING","NO_ACCESS",null],"uniqueKey":"employee.platformAccess.oneOf.1","typeLabel":"null"}],"uniqueKey":"employee.platformAccess","typeLabel":"enum\u003cstring> | null"},"startDate":{"oneOf":[{"type":"object","required":["range"],"properties":{"range":{"type":"string","isRequired":true,"uniqueKey":"employee.startDate.oneOf.0.range","typeLabel":"string"}},"uniqueKey":"employee.startDate.oneOf.0","typeLabel":"object"},{"type":"object","required":["from","to"],"properties":{"from":{"type":"string","isRequired":true,"uniqueKey":"employee.startDate.oneOf.1.from","typeLabel":"string"},"to":{"type":"string","isRequired":true,"uniqueKey":"employee.startDate.oneOf.1.to","typeLabel":"string"}},"uniqueKey":"employee.startDate.oneOf.1","typeLabel":"object"},{"type":"null","uniqueKey":"employee.startDate.oneOf.2","typeLabel":"null"}],"uniqueKey":"employee.startDate","typeLabel":"object · object · null"},"isAccountAdmin":{"oneOf":[{"type":"boolean","uniqueKey":"employee.isAccountAdmin.oneOf.0","typeLabel":"boolean"},{"type":"null","uniqueKey":"employee.isAccountAdmin.oneOf.1","typeLabel":"null"}],"uniqueKey":"employee.isAccountAdmin","typeLabel":"boolean | null"},"hasIntegrationIds":{"oneOf":[{"type":"array","items":{"type":"string","uniqueKey":"employee.hasIntegrationIds.oneOf.0.items.[INDEX]","typeLabel":"string"},"uniqueKey":"employee.hasIntegrationIds.oneOf.0","typeLabel":"string[]"},{"type":"null","items":{"type":"string"},"uniqueKey":"employee.hasIntegrationIds.oneOf.1","typeLabel":"null"}],"uniqueKey":"employee.hasIntegrationIds","typeLabel":"string[] | null"},"lacksIntegrationIds":{"oneOf":[{"type":"array","items":{"type":"string","uniqueKey":"employee.lacksIntegrationIds.oneOf.0.items.[INDEX]","typeLabel":"string"},"uniqueKey":"employee.lacksIntegrationIds.oneOf.0","typeLabel":"string[]"},{"type":"null","items":{"type":"string"},"uniqueKey":"employee.lacksIntegrationIds.oneOf.1","typeLabel":"null"}],"uniqueKey":"employee.lacksIntegrationIds","typeLabel":"string[] | null"},"and":{"type":"array","items":{"type":"object","properties":{"hasDirectReports":{"oneOf":[{"type":"boolean","uniqueKey":"employee.and.items.[INDEX].hasDirectReports.oneOf.0","typeLabel":"boolean"},{"type":"null","uniqueKey":"employee.and.items.[INDEX].hasDirectReports.oneOf.1","typeLabel":"null"}],"uniqueKey":"employee.and.items.[INDEX].hasDirectReports","typeLabel":"boolean | null"},"hasManager":{"oneOf":[{"type":"boolean","uniqueKey":"employee.and.items.[INDEX].hasManager.oneOf.0","typeLabel":"boolean"},{"type":"null","uniqueKey":"employee.and.items.[INDEX].hasManager.oneOf.1","typeLabel":"null"}],"uniqueKey":"employee.and.items.[INDEX].hasManager","typeLabel":"boolean | null"},"employeeGroupId":{"oneOf":[{"type":"string","uniqueKey":"employee.and.items.[INDEX].employeeGroupId.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"employee.and.items.[INDEX].employeeGroupId.oneOf.1","typeLabel":"null"}],"uniqueKey":"employee.and.items.[INDEX].employeeGroupId","typeLabel":"string | null"},"employeeGroupIds":{"oneOf":[{"type":"array","items":{"type":"string","uniqueKey":"employee.and.items.[INDEX].employeeGroupIds.oneOf.0.items.[INDEX]","typeLabel":"string"},"uniqueKey":"employee.and.items.[INDEX].employeeGroupIds.oneOf.0","typeLabel":"string[]"},{"type":"null","items":{"type":"string"},"uniqueKey":"employee.and.items.[INDEX].employeeGroupIds.oneOf.1","typeLabel":"null"}],"uniqueKey":"employee.and.items.[INDEX].employeeGroupIds","typeLabel":"string[] | null"},"employeeGroupIdSets":{"oneOf":[{"type":"array","items":{"type":"array","items":{"type":"string","uniqueKey":"employee.and.items.[INDEX].employeeGroupIdSets.oneOf.0.items.[INDEX].items.[INDEX]","typeLabel":"string"},"minItems":1,"uniqueKey":"employee.and.items.[INDEX].employeeGroupIdSets.oneOf.0.items.[INDEX]","typeLabel":"string[]"},"uniqueKey":"employee.and.items.[INDEX].employeeGroupIdSets.oneOf.0","typeLabel":"string[][]"},{"type":"null","items":{"type":"array","items":{"type":"string"},"minItems":1},"uniqueKey":"employee.and.items.[INDEX].employeeGroupIdSets.oneOf.1","typeLabel":"null"}],"uniqueKey":"employee.and.items.[INDEX].employeeGroupIdSets","typeLabel":"string[][] | null"},"jobTitle":{"oneOf":[{"type":"string","uniqueKey":"employee.and.items.[INDEX].jobTitle.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"employee.and.items.[INDEX].jobTitle.oneOf.1","typeLabel":"null"}],"uniqueKey":"employee.and.items.[INDEX].jobTitle","typeLabel":"string | null"},"jobTitles":{"oneOf":[{"type":"array","items":{"type":"string","uniqueKey":"employee.and.items.[INDEX].jobTitles.oneOf.0.items.[INDEX]","typeLabel":"string"},"uniqueKey":"employee.and.items.[INDEX].jobTitles.oneOf.0","typeLabel":"string[]"},{"type":"null","items":{"type":"string"},"uniqueKey":"employee.and.items.[INDEX].jobTitles.oneOf.1","typeLabel":"null"}],"uniqueKey":"employee.and.items.[INDEX].jobTitles","typeLabel":"string[] | null"},"countries":{"oneOf":[{"type":"array","items":{"type":"string","uniqueKey":"employee.and.items.[INDEX].countries.oneOf.0.items.[INDEX]","typeLabel":"string"},"uniqueKey":"employee.and.items.[INDEX].countries.oneOf.0","typeLabel":"string[]"},{"type":"null","items":{"type":"string"},"uniqueKey":"employee.and.items.[INDEX].countries.oneOf.1","typeLabel":"null"}],"uniqueKey":"employee.and.items.[INDEX].countries","typeLabel":"string[] | null"},"emails":{"oneOf":[{"type":"array","items":{"type":"string","uniqueKey":"employee.and.items.[INDEX].emails.oneOf.0.items.[INDEX]","typeLabel":"string"},"uniqueKey":"employee.and.items.[INDEX].emails.oneOf.0","typeLabel":"string[]"},{"type":"null","items":{"type":"string"},"uniqueKey":"employee.and.items.[INDEX].emails.oneOf.1","typeLabel":"null"}],"uniqueKey":"employee.and.items.[INDEX].emails","typeLabel":"string[] | null"},"emailDomains":{"oneOf":[{"type":"array","items":{"type":"string","uniqueKey":"employee.and.items.[INDEX].emailDomains.oneOf.0.items.[INDEX]","typeLabel":"string"},"uniqueKey":"employee.and.items.[INDEX].emailDomains.oneOf.0","typeLabel":"string[]"},{"type":"null","items":{"type":"string"},"uniqueKey":"employee.and.items.[INDEX].emailDomains.oneOf.1","typeLabel":"null"}],"uniqueKey":"employee.and.items.[INDEX].emailDomains","typeLabel":"string[] | null"},"employeeId":{"oneOf":[{"type":"string","uniqueKey":"employee.and.items.[INDEX].employeeId.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"employee.and.items.[INDEX].employeeId.oneOf.1","typeLabel":"null"}],"uniqueKey":"employee.and.items.[INDEX].employeeId","typeLabel":"string | null"},"employeeIds":{"oneOf":[{"type":"array","items":{"type":"string","uniqueKey":"employee.and.items.[INDEX].employeeIds.oneOf.0.items.[INDEX]","typeLabel":"string"},"uniqueKey":"employee.and.items.[INDEX].employeeIds.oneOf.0","typeLabel":"string[]"},{"type":"null","items":{"type":"string"},"uniqueKey":"employee.and.items.[INDEX].employeeIds.oneOf.1","typeLabel":"null"}],"uniqueKey":"employee.and.items.[INDEX].employeeIds","typeLabel":"string[] | null"},"excludedEmployeeId":{"oneOf":[{"type":"string","uniqueKey":"employee.and.items.[INDEX].excludedEmployeeId.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"employee.and.items.[INDEX].excludedEmployeeId.oneOf.1","typeLabel":"null"}],"uniqueKey":"employee.and.items.[INDEX].excludedEmployeeId","typeLabel":"string | null"},"excludedEmployeeIds":{"oneOf":[{"type":"array","items":{"type":"string","uniqueKey":"employee.and.items.[INDEX].excludedEmployeeIds.oneOf.0.items.[INDEX]","typeLabel":"string"},"uniqueKey":"employee.and.items.[INDEX].excludedEmployeeIds.oneOf.0","typeLabel":"string[]"},{"type":"null","items":{"type":"string"},"uniqueKey":"employee.and.items.[INDEX].excludedEmployeeIds.oneOf.1","typeLabel":"null"}],"uniqueKey":"employee.and.items.[INDEX].excludedEmployeeIds","typeLabel":"string[] | null"},"managerId":{"oneOf":[{"type":"string","uniqueKey":"employee.and.items.[INDEX].managerId.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"employee.and.items.[INDEX].managerId.oneOf.1","typeLabel":"null"}],"uniqueKey":"employee.and.items.[INDEX].managerId","typeLabel":"string | null"},"managerIds":{"oneOf":[{"type":"array","items":{"type":"string","uniqueKey":"employee.and.items.[INDEX].managerIds.oneOf.0.items.[INDEX]","typeLabel":"string"},"uniqueKey":"employee.and.items.[INDEX].managerIds.oneOf.0","typeLabel":"string[]"},{"type":"null","items":{"type":"string"},"uniqueKey":"employee.and.items.[INDEX].managerIds.oneOf.1","typeLabel":"null"}],"uniqueKey":"employee.and.items.[INDEX].managerIds","typeLabel":"string[] | null"},"ancestorManagerId":{"oneOf":[{"type":"string","uniqueKey":"employee.and.items.[INDEX].ancestorManagerId.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"employee.and.items.[INDEX].ancestorManagerId.oneOf.1","typeLabel":"null"}],"uniqueKey":"employee.and.items.[INDEX].ancestorManagerId","typeLabel":"string | null"},"ancestorManagerIds":{"oneOf":[{"type":"array","items":{"type":"string","uniqueKey":"employee.and.items.[INDEX].ancestorManagerIds.oneOf.0.items.[INDEX]","typeLabel":"string"},"uniqueKey":"employee.and.items.[INDEX].ancestorManagerIds.oneOf.0","typeLabel":"string[]"},{"type":"null","items":{"type":"string"},"uniqueKey":"employee.and.items.[INDEX].ancestorManagerIds.oneOf.1","typeLabel":"null"}],"uniqueKey":"employee.and.items.[INDEX].ancestorManagerIds","typeLabel":"string[] | null"},"indirectManagerId":{"oneOf":[{"type":"string","uniqueKey":"employee.and.items.[INDEX].indirectManagerId.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"employee.and.items.[INDEX].indirectManagerId.oneOf.1","typeLabel":"null"}],"uniqueKey":"employee.and.items.[INDEX].indirectManagerId","typeLabel":"string | null"},"indirectManagerIds":{"oneOf":[{"type":"array","items":{"type":"string","uniqueKey":"employee.and.items.[INDEX].indirectManagerIds.oneOf.0.items.[INDEX]","typeLabel":"string"},"uniqueKey":"employee.and.items.[INDEX].indirectManagerIds.oneOf.0","typeLabel":"string[]"},{"type":"null","items":{"type":"string"},"uniqueKey":"employee.and.items.[INDEX].indirectManagerIds.oneOf.1","typeLabel":"null"}],"uniqueKey":"employee.and.items.[INDEX].indirectManagerIds","typeLabel":"string[] | null"},"isMember":{"oneOf":[{"type":"boolean","uniqueKey":"employee.and.items.[INDEX].isMember.oneOf.0","typeLabel":"boolean"},{"type":"null","uniqueKey":"employee.and.items.[INDEX].isMember.oneOf.1","typeLabel":"null"}],"uniqueKey":"employee.and.items.[INDEX].isMember","typeLabel":"boolean | null"},"memberRole":{"oneOf":[{"type":"string","enum":["admin","hr-admin","integration-manager","data-analyst","team-member",null],"uniqueKey":"employee.and.items.[INDEX].memberRole.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["admin","hr-admin","integration-manager","data-analyst","team-member",null],"uniqueKey":"employee.and.items.[INDEX].memberRole.oneOf.1","typeLabel":"null"}],"uniqueKey":"employee.and.items.[INDEX].memberRole","typeLabel":"enum\u003cstring> | null"},"query":{"oneOf":[{"type":"string","uniqueKey":"employee.and.items.[INDEX].query.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"employee.and.items.[INDEX].query.oneOf.1","typeLabel":"null"}],"uniqueKey":"employee.and.items.[INDEX].query","typeLabel":"string | null"},"includeArchived":{"oneOf":[{"type":"boolean","uniqueKey":"employee.and.items.[INDEX].includeArchived.oneOf.0","typeLabel":"boolean"},{"type":"null","uniqueKey":"employee.and.items.[INDEX].includeArchived.oneOf.1","typeLabel":"null"}],"uniqueKey":"employee.and.items.[INDEX].includeArchived","typeLabel":"boolean | null"},"onlyArchived":{"oneOf":[{"type":"boolean","uniqueKey":"employee.and.items.[INDEX].onlyArchived.oneOf.0","typeLabel":"boolean"},{"type":"null","uniqueKey":"employee.and.items.[INDEX].onlyArchived.oneOf.1","typeLabel":"null"}],"uniqueKey":"employee.and.items.[INDEX].onlyArchived","typeLabel":"boolean | null"},"includeExternalOrgs":{"oneOf":[{"type":"boolean","uniqueKey":"employee.and.items.[INDEX].includeExternalOrgs.oneOf.0","typeLabel":"boolean"},{"type":"null","uniqueKey":"employee.and.items.[INDEX].includeExternalOrgs.oneOf.1","typeLabel":"null"}],"uniqueKey":"employee.and.items.[INDEX].includeExternalOrgs","typeLabel":"boolean | null"},"platformAccess":{"oneOf":[{"type":"string","enum":["HAS_ACCESS","INVITE_PENDING","NO_ACCESS",null],"uniqueKey":"employee.and.items.[INDEX].platformAccess.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["HAS_ACCESS","INVITE_PENDING","NO_ACCESS",null],"uniqueKey":"employee.and.items.[INDEX].platformAccess.oneOf.1","typeLabel":"null"}],"uniqueKey":"employee.and.items.[INDEX].platformAccess","typeLabel":"enum\u003cstring> | null"},"startDate":{"oneOf":[{"type":"object","required":["range"],"properties":{"range":{"type":"string","isRequired":true,"uniqueKey":"employee.and.items.[INDEX].startDate.oneOf.0.range","typeLabel":"string"}},"uniqueKey":"employee.and.items.[INDEX].startDate.oneOf.0","typeLabel":"object"},{"type":"object","required":["from","to"],"properties":{"from":{"type":"string","isRequired":true,"uniqueKey":"employee.and.items.[INDEX].startDate.oneOf.1.from","typeLabel":"string"},"to":{"type":"string","isRequired":true,"uniqueKey":"employee.and.items.[INDEX].startDate.oneOf.1.to","typeLabel":"string"}},"uniqueKey":"employee.and.items.[INDEX].startDate.oneOf.1","typeLabel":"object"},{"type":"null","uniqueKey":"employee.and.items.[INDEX].startDate.oneOf.2","typeLabel":"null"}],"uniqueKey":"employee.and.items.[INDEX].startDate","typeLabel":"object · object · null"},"isAccountAdmin":{"oneOf":[{"type":"boolean","uniqueKey":"employee.and.items.[INDEX].isAccountAdmin.oneOf.0","typeLabel":"boolean"},{"type":"null","uniqueKey":"employee.and.items.[INDEX].isAccountAdmin.oneOf.1","typeLabel":"null"}],"uniqueKey":"employee.and.items.[INDEX].isAccountAdmin","typeLabel":"boolean | null"},"hasIntegrationIds":{"oneOf":[{"type":"array","items":{"type":"string","uniqueKey":"employee.and.items.[INDEX].hasIntegrationIds.oneOf.0.items.[INDEX]","typeLabel":"string"},"uniqueKey":"employee.and.items.[INDEX].hasIntegrationIds.oneOf.0","typeLabel":"string[]"},{"type":"null","items":{"type":"string"},"uniqueKey":"employee.and.items.[INDEX].hasIntegrationIds.oneOf.1","typeLabel":"null"}],"uniqueKey":"employee.and.items.[INDEX].hasIntegrationIds","typeLabel":"string[] | null"},"lacksIntegrationIds":{"oneOf":[{"type":"array","items":{"type":"string","uniqueKey":"employee.and.items.[INDEX].lacksIntegrationIds.oneOf.0.items.[INDEX]","typeLabel":"string"},"uniqueKey":"employee.and.items.[INDEX].lacksIntegrationIds.oneOf.0","typeLabel":"string[]"},{"type":"null","items":{"type":"string"},"uniqueKey":"employee.and.items.[INDEX].lacksIntegrationIds.oneOf.1","typeLabel":"null"}],"uniqueKey":"employee.and.items.[INDEX].lacksIntegrationIds","typeLabel":"string[] | null"},"and":{"type":"array","items":{"$circularRef":"438a7e83-acb2-490e-9f60-9f48e8cea9fb"},"uniqueKey":"employee.and.items.[INDEX].and","typeLabel":"array"},"or":{"type":"array","items":{"$circularRef":"438a7e83-acb2-490e-9f60-9f48e8cea9fb"},"uniqueKey":"employee.and.items.[INDEX].or","typeLabel":"array"}},"uniqueKey":"employee.and.items.[INDEX]","typeLabel":"object"},"uniqueKey":"employee.and","typeLabel":"object[]"},"or":{"type":"array","items":{"type":"object","properties":{"hasDirectReports":{"oneOf":[{"type":"boolean","uniqueKey":"employee.or.items.[INDEX].hasDirectReports.oneOf.0","typeLabel":"boolean"},{"type":"null","uniqueKey":"employee.or.items.[INDEX].hasDirectReports.oneOf.1","typeLabel":"null"}],"uniqueKey":"employee.or.items.[INDEX].hasDirectReports","typeLabel":"boolean | null"},"hasManager":{"oneOf":[{"type":"boolean","uniqueKey":"employee.or.items.[INDEX].hasManager.oneOf.0","typeLabel":"boolean"},{"type":"null","uniqueKey":"employee.or.items.[INDEX].hasManager.oneOf.1","typeLabel":"null"}],"uniqueKey":"employee.or.items.[INDEX].hasManager","typeLabel":"boolean | null"},"employeeGroupId":{"oneOf":[{"type":"string","uniqueKey":"employee.or.items.[INDEX].employeeGroupId.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"employee.or.items.[INDEX].employeeGroupId.oneOf.1","typeLabel":"null"}],"uniqueKey":"employee.or.items.[INDEX].employeeGroupId","typeLabel":"string | null"},"employeeGroupIds":{"oneOf":[{"type":"array","items":{"type":"string","uniqueKey":"employee.or.items.[INDEX].employeeGroupIds.oneOf.0.items.[INDEX]","typeLabel":"string"},"uniqueKey":"employee.or.items.[INDEX].employeeGroupIds.oneOf.0","typeLabel":"string[]"},{"type":"null","items":{"type":"string"},"uniqueKey":"employee.or.items.[INDEX].employeeGroupIds.oneOf.1","typeLabel":"null"}],"uniqueKey":"employee.or.items.[INDEX].employeeGroupIds","typeLabel":"string[] | null"},"employeeGroupIdSets":{"oneOf":[{"type":"array","items":{"type":"array","items":{"type":"string","uniqueKey":"employee.or.items.[INDEX].employeeGroupIdSets.oneOf.0.items.[INDEX].items.[INDEX]","typeLabel":"string"},"minItems":1,"uniqueKey":"employee.or.items.[INDEX].employeeGroupIdSets.oneOf.0.items.[INDEX]","typeLabel":"string[]"},"uniqueKey":"employee.or.items.[INDEX].employeeGroupIdSets.oneOf.0","typeLabel":"string[][]"},{"type":"null","items":{"type":"array","items":{"type":"string"},"minItems":1},"uniqueKey":"employee.or.items.[INDEX].employeeGroupIdSets.oneOf.1","typeLabel":"null"}],"uniqueKey":"employee.or.items.[INDEX].employeeGroupIdSets","typeLabel":"string[][] | null"},"jobTitle":{"oneOf":[{"type":"string","uniqueKey":"employee.or.items.[INDEX].jobTitle.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"employee.or.items.[INDEX].jobTitle.oneOf.1","typeLabel":"null"}],"uniqueKey":"employee.or.items.[INDEX].jobTitle","typeLabel":"string | null"},"jobTitles":{"oneOf":[{"type":"array","items":{"type":"string","uniqueKey":"employee.or.items.[INDEX].jobTitles.oneOf.0.items.[INDEX]","typeLabel":"string"},"uniqueKey":"employee.or.items.[INDEX].jobTitles.oneOf.0","typeLabel":"string[]"},{"type":"null","items":{"type":"string"},"uniqueKey":"employee.or.items.[INDEX].jobTitles.oneOf.1","typeLabel":"null"}],"uniqueKey":"employee.or.items.[INDEX].jobTitles","typeLabel":"string[] | null"},"countries":{"oneOf":[{"type":"array","items":{"type":"string","uniqueKey":"employee.or.items.[INDEX].countries.oneOf.0.items.[INDEX]","typeLabel":"string"},"uniqueKey":"employee.or.items.[INDEX].countries.oneOf.0","typeLabel":"string[]"},{"type":"null","items":{"type":"string"},"uniqueKey":"employee.or.items.[INDEX].countries.oneOf.1","typeLabel":"null"}],"uniqueKey":"employee.or.items.[INDEX].countries","typeLabel":"string[] | null"},"emails":{"oneOf":[{"type":"array","items":{"type":"string","uniqueKey":"employee.or.items.[INDEX].emails.oneOf.0.items.[INDEX]","typeLabel":"string"},"uniqueKey":"employee.or.items.[INDEX].emails.oneOf.0","typeLabel":"string[]"},{"type":"null","items":{"type":"string"},"uniqueKey":"employee.or.items.[INDEX].emails.oneOf.1","typeLabel":"null"}],"uniqueKey":"employee.or.items.[INDEX].emails","typeLabel":"string[] | null"},"emailDomains":{"oneOf":[{"type":"array","items":{"type":"string","uniqueKey":"employee.or.items.[INDEX].emailDomains.oneOf.0.items.[INDEX]","typeLabel":"string"},"uniqueKey":"employee.or.items.[INDEX].emailDomains.oneOf.0","typeLabel":"string[]"},{"type":"null","items":{"type":"string"},"uniqueKey":"employee.or.items.[INDEX].emailDomains.oneOf.1","typeLabel":"null"}],"uniqueKey":"employee.or.items.[INDEX].emailDomains","typeLabel":"string[] | null"},"employeeId":{"oneOf":[{"type":"string","uniqueKey":"employee.or.items.[INDEX].employeeId.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"employee.or.items.[INDEX].employeeId.oneOf.1","typeLabel":"null"}],"uniqueKey":"employee.or.items.[INDEX].employeeId","typeLabel":"string | null"},"employeeIds":{"oneOf":[{"type":"array","items":{"type":"string","uniqueKey":"employee.or.items.[INDEX].employeeIds.oneOf.0.items.[INDEX]","typeLabel":"string"},"uniqueKey":"employee.or.items.[INDEX].employeeIds.oneOf.0","typeLabel":"string[]"},{"type":"null","items":{"type":"string"},"uniqueKey":"employee.or.items.[INDEX].employeeIds.oneOf.1","typeLabel":"null"}],"uniqueKey":"employee.or.items.[INDEX].employeeIds","typeLabel":"string[] | null"},"excludedEmployeeId":{"oneOf":[{"type":"string","uniqueKey":"employee.or.items.[INDEX].excludedEmployeeId.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"employee.or.items.[INDEX].excludedEmployeeId.oneOf.1","typeLabel":"null"}],"uniqueKey":"employee.or.items.[INDEX].excludedEmployeeId","typeLabel":"string | null"},"excludedEmployeeIds":{"oneOf":[{"type":"array","items":{"type":"string","uniqueKey":"employee.or.items.[INDEX].excludedEmployeeIds.oneOf.0.items.[INDEX]","typeLabel":"string"},"uniqueKey":"employee.or.items.[INDEX].excludedEmployeeIds.oneOf.0","typeLabel":"string[]"},{"type":"null","items":{"type":"string"},"uniqueKey":"employee.or.items.[INDEX].excludedEmployeeIds.oneOf.1","typeLabel":"null"}],"uniqueKey":"employee.or.items.[INDEX].excludedEmployeeIds","typeLabel":"string[] | null"},"managerId":{"oneOf":[{"type":"string","uniqueKey":"employee.or.items.[INDEX].managerId.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"employee.or.items.[INDEX].managerId.oneOf.1","typeLabel":"null"}],"uniqueKey":"employee.or.items.[INDEX].managerId","typeLabel":"string | null"},"managerIds":{"oneOf":[{"type":"array","items":{"type":"string","uniqueKey":"employee.or.items.[INDEX].managerIds.oneOf.0.items.[INDEX]","typeLabel":"string"},"uniqueKey":"employee.or.items.[INDEX].managerIds.oneOf.0","typeLabel":"string[]"},{"type":"null","items":{"type":"string"},"uniqueKey":"employee.or.items.[INDEX].managerIds.oneOf.1","typeLabel":"null"}],"uniqueKey":"employee.or.items.[INDEX].managerIds","typeLabel":"string[] | null"},"ancestorManagerId":{"oneOf":[{"type":"string","uniqueKey":"employee.or.items.[INDEX].ancestorManagerId.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"employee.or.items.[INDEX].ancestorManagerId.oneOf.1","typeLabel":"null"}],"uniqueKey":"employee.or.items.[INDEX].ancestorManagerId","typeLabel":"string | null"},"ancestorManagerIds":{"oneOf":[{"type":"array","items":{"type":"string","uniqueKey":"employee.or.items.[INDEX].ancestorManagerIds.oneOf.0.items.[INDEX]","typeLabel":"string"},"uniqueKey":"employee.or.items.[INDEX].ancestorManagerIds.oneOf.0","typeLabel":"string[]"},{"type":"null","items":{"type":"string"},"uniqueKey":"employee.or.items.[INDEX].ancestorManagerIds.oneOf.1","typeLabel":"null"}],"uniqueKey":"employee.or.items.[INDEX].ancestorManagerIds","typeLabel":"string[] | null"},"indirectManagerId":{"oneOf":[{"type":"string","uniqueKey":"employee.or.items.[INDEX].indirectManagerId.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"employee.or.items.[INDEX].indirectManagerId.oneOf.1","typeLabel":"null"}],"uniqueKey":"employee.or.items.[INDEX].indirectManagerId","typeLabel":"string | null"},"indirectManagerIds":{"oneOf":[{"type":"array","items":{"type":"string","uniqueKey":"employee.or.items.[INDEX].indirectManagerIds.oneOf.0.items.[INDEX]","typeLabel":"string"},"uniqueKey":"employee.or.items.[INDEX].indirectManagerIds.oneOf.0","typeLabel":"string[]"},{"type":"null","items":{"type":"string"},"uniqueKey":"employee.or.items.[INDEX].indirectManagerIds.oneOf.1","typeLabel":"null"}],"uniqueKey":"employee.or.items.[INDEX].indirectManagerIds","typeLabel":"string[] | null"},"isMember":{"oneOf":[{"type":"boolean","uniqueKey":"employee.or.items.[INDEX].isMember.oneOf.0","typeLabel":"boolean"},{"type":"null","uniqueKey":"employee.or.items.[INDEX].isMember.oneOf.1","typeLabel":"null"}],"uniqueKey":"employee.or.items.[INDEX].isMember","typeLabel":"boolean | null"},"memberRole":{"oneOf":[{"type":"string","enum":["admin","hr-admin","integration-manager","data-analyst","team-member",null],"uniqueKey":"employee.or.items.[INDEX].memberRole.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["admin","hr-admin","integration-manager","data-analyst","team-member",null],"uniqueKey":"employee.or.items.[INDEX].memberRole.oneOf.1","typeLabel":"null"}],"uniqueKey":"employee.or.items.[INDEX].memberRole","typeLabel":"enum\u003cstring> | null"},"query":{"oneOf":[{"type":"string","uniqueKey":"employee.or.items.[INDEX].query.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"employee.or.items.[INDEX].query.oneOf.1","typeLabel":"null"}],"uniqueKey":"employee.or.items.[INDEX].query","typeLabel":"string | null"},"includeArchived":{"oneOf":[{"type":"boolean","uniqueKey":"employee.or.items.[INDEX].includeArchived.oneOf.0","typeLabel":"boolean"},{"type":"null","uniqueKey":"employee.or.items.[INDEX].includeArchived.oneOf.1","typeLabel":"null"}],"uniqueKey":"employee.or.items.[INDEX].includeArchived","typeLabel":"boolean | null"},"onlyArchived":{"oneOf":[{"type":"boolean","uniqueKey":"employee.or.items.[INDEX].onlyArchived.oneOf.0","typeLabel":"boolean"},{"type":"null","uniqueKey":"employee.or.items.[INDEX].onlyArchived.oneOf.1","typeLabel":"null"}],"uniqueKey":"employee.or.items.[INDEX].onlyArchived","typeLabel":"boolean | null"},"includeExternalOrgs":{"oneOf":[{"type":"boolean","uniqueKey":"employee.or.items.[INDEX].includeExternalOrgs.oneOf.0","typeLabel":"boolean"},{"type":"null","uniqueKey":"employee.or.items.[INDEX].includeExternalOrgs.oneOf.1","typeLabel":"null"}],"uniqueKey":"employee.or.items.[INDEX].includeExternalOrgs","typeLabel":"boolean | null"},"platformAccess":{"oneOf":[{"type":"string","enum":["HAS_ACCESS","INVITE_PENDING","NO_ACCESS",null],"uniqueKey":"employee.or.items.[INDEX].platformAccess.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["HAS_ACCESS","INVITE_PENDING","NO_ACCESS",null],"uniqueKey":"employee.or.items.[INDEX].platformAccess.oneOf.1","typeLabel":"null"}],"uniqueKey":"employee.or.items.[INDEX].platformAccess","typeLabel":"enum\u003cstring> | null"},"startDate":{"oneOf":[{"type":"object","required":["range"],"properties":{"range":{"type":"string","isRequired":true,"uniqueKey":"employee.or.items.[INDEX].startDate.oneOf.0.range","typeLabel":"string"}},"uniqueKey":"employee.or.items.[INDEX].startDate.oneOf.0","typeLabel":"object"},{"type":"object","required":["from","to"],"properties":{"from":{"type":"string","isRequired":true,"uniqueKey":"employee.or.items.[INDEX].startDate.oneOf.1.from","typeLabel":"string"},"to":{"type":"string","isRequired":true,"uniqueKey":"employee.or.items.[INDEX].startDate.oneOf.1.to","typeLabel":"string"}},"uniqueKey":"employee.or.items.[INDEX].startDate.oneOf.1","typeLabel":"object"},{"type":"null","uniqueKey":"employee.or.items.[INDEX].startDate.oneOf.2","typeLabel":"null"}],"uniqueKey":"employee.or.items.[INDEX].startDate","typeLabel":"object · object · null"},"isAccountAdmin":{"oneOf":[{"type":"boolean","uniqueKey":"employee.or.items.[INDEX].isAccountAdmin.oneOf.0","typeLabel":"boolean"},{"type":"null","uniqueKey":"employee.or.items.[INDEX].isAccountAdmin.oneOf.1","typeLabel":"null"}],"uniqueKey":"employee.or.items.[INDEX].isAccountAdmin","typeLabel":"boolean | null"},"hasIntegrationIds":{"oneOf":[{"type":"array","items":{"type":"string","uniqueKey":"employee.or.items.[INDEX].hasIntegrationIds.oneOf.0.items.[INDEX]","typeLabel":"string"},"uniqueKey":"employee.or.items.[INDEX].hasIntegrationIds.oneOf.0","typeLabel":"string[]"},{"type":"null","items":{"type":"string"},"uniqueKey":"employee.or.items.[INDEX].hasIntegrationIds.oneOf.1","typeLabel":"null"}],"uniqueKey":"employee.or.items.[INDEX].hasIntegrationIds","typeLabel":"string[] | null"},"lacksIntegrationIds":{"oneOf":[{"type":"array","items":{"type":"string","uniqueKey":"employee.or.items.[INDEX].lacksIntegrationIds.oneOf.0.items.[INDEX]","typeLabel":"string"},"uniqueKey":"employee.or.items.[INDEX].lacksIntegrationIds.oneOf.0","typeLabel":"string[]"},{"type":"null","items":{"type":"string"},"uniqueKey":"employee.or.items.[INDEX].lacksIntegrationIds.oneOf.1","typeLabel":"null"}],"uniqueKey":"employee.or.items.[INDEX].lacksIntegrationIds","typeLabel":"string[] | null"},"and":{"type":"array","items":{"$circularRef":"438a7e83-acb2-490e-9f60-9f48e8cea9fb"},"uniqueKey":"employee.or.items.[INDEX].and","typeLabel":"array"},"or":{"type":"array","items":{"$circularRef":"438a7e83-acb2-490e-9f60-9f48e8cea9fb"},"uniqueKey":"employee.or.items.[INDEX].or","typeLabel":"array"}},"uniqueKey":"employee.or.items.[INDEX]","typeLabel":"object"},"uniqueKey":"employee.or","typeLabel":"object[]"}},"description":"Limits which employees are returned within the set the caller can access. This filter never grants access to more employees.","title":"Employee filter","example":{"query":"Avery"},"uniqueKey":"employee","typeLabel":"Employee filter · object"},"search":{"type":"string","maxLength":200,"description":"Text that matches the employee name, preferred name, or email username.","title":"Employee search text","example":"Avery","uniqueKey":"search","typeLabel":"string"},"where":{"type":"array","items":{"type":"object","properties":{"stat":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[a-z0-9]+(-[a-z0-9]+)*$","description":"Stat to compare. It must be one of statTypes.","title":"Stat identifier","example":"code-prs-merged","isRequired":true,"uniqueKey":"where.items.[INDEX].stat","typeLabel":"string"},"operator":{"type":"string","enum":["lt","lte","eq","gt","gte"],"description":"Numeric comparison to apply to the range value.","title":"Comparison operator","example":"gte","isRequired":true,"uniqueKey":"where.items.[INDEX].operator","typeLabel":"enum\u003cstring>"},"value":{"type":"number","description":"Value to compare the stat total with.","title":"Comparison value","example":1,"isRequired":true,"uniqueKey":"where.items.[INDEX].value","typeLabel":"number"}},"required":["stat","operator","value"],"uniqueKey":"where.items.[INDEX]","typeLabel":"object"},"maxItems":10,"description":"Conditions on stat totals. An employee matches only when every condition is true. Each condition compares the value that a row returns: the weighted average for AVERAGE stats, and 0 for an employee with no data.","title":"Stat total conditions","example":[{"stat":"code-prs-merged","operator":"gte","value":1}],"uniqueKey":"where","typeLabel":"Stat total conditions · object[]"},"sort":{"type":"object","properties":{"stat":{"oneOf":[{"type":"string","minLength":1,"maxLength":100,"pattern":"^[a-z0-9]+(-[a-z0-9]+)*$","description":"Stat to sort by. It must be one of statTypes. Null sorts by employee name.","title":"Sort stat identifier","example":"code-prs-merged","isRequired":true,"uniqueKey":"sort.stat.oneOf.0","typeLabel":"string"},{"type":"null","minLength":1,"maxLength":100,"pattern":"^[a-z0-9]+(-[a-z0-9]+)*$","description":"Stat to sort by. It must be one of statTypes. Null sorts by employee name.","title":"Sort stat identifier","example":"code-prs-merged","isRequired":true,"uniqueKey":"sort.stat.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"sort.stat","typeLabel":"string | null"},"direction":{"type":"string","enum":["asc","desc"],"description":"Ascending or descending order.","title":"Sort direction","example":"desc","isRequired":true,"uniqueKey":"sort.direction","typeLabel":"enum\u003cstring>"}},"default":{"stat":null,"direction":"asc"},"required":["stat","direction"],"description":"Sort order. Employees with equal values stay in name order. Defaults to name ascending.","title":"Sort order","example":{"stat":"code-prs-merged","direction":"desc"},"uniqueKey":"sort","typeLabel":"Sort order · object"},"page":{"type":"integer","minimum":1,"default":1,"description":"1-indexed page number","title":"Page number","example":1,"uniqueKey":"page","typeLabel":"integer"},"pageSize":{"type":"integer","minimum":1,"maximum":100,"default":20,"description":"Page size","title":"Page size","example":20,"uniqueKey":"pageSize","typeLabel":"integer"},"include":{"type":"object","properties":{"total":{"type":"boolean","description":"Set true to count all matching items and include pagination.total. False or omission skips the count.","title":"Include total count","example":true,"uniqueKey":"include.total","typeLabel":"boolean"},"aggregates":{"type":"boolean","description":"Include aggregate values across every matching employee, before pagination. For AVERAGE stats, sum is null and average uses denominator weights.","title":"Include aggregates","example":true,"uniqueKey":"include.aggregates","typeLabel":"boolean"},"rankOf":{"type":"string","description":"Employee ID to rank. The response rank gives the position of that employee in the same filter and sort.","title":"Employee ID to rank","example":"employee-avery","uniqueKey":"include.rankOf","typeLabel":"string"}},"description":"Additional results to calculate alongside the page. Omit to skip this work.","title":"Additional response details","example":{"total":true,"aggregates":true},"uniqueKey":"include","typeLabel":"Additional response details · object"}},"required":["dateRange","statTypes"],"additionalProperties":false,"title":"Employee stat totals search request","example":{"dateRange":{"from":"2026-01-01","to":"2026-01-31"},"statTypes":["code-prs-merged"],"sort":{"stat":"code-prs-merged","direction":"desc"},"page":1,"pageSize":20,"include":{"total":true,"aggregates":true,"rankOf":"employee-avery"}},"uniqueKey":"","typeLabel":"Employee stat totals search request · object"},"examples":{"Example":{"title":"Example","value":{"dateRange":{"from":"2026-01-01","to":"2026-01-31"},"statTypes":["code-prs-merged"],"sort":{"stat":"code-prs-merged","direction":"desc"},"page":1,"pageSize":20,"include":{"total":true,"aggregates":true,"rankOf":"employee-avery"}}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"173e3dfd-57e3-428d-9cfc-f1fc3b943a98":{"description":"One page of employees with their stat totals","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"employee":{"type":"object","title":"Employee","description":"Basic employee profile.","required":["id","name","avatarUrl","jobTitle","managerId","primaryEmail","phoneNumber","firstName","preferredName","lastName","isActiveMember"],"example":{"id":"employee-avery","name":"Avery Chen","avatarUrl":null,"jobTitle":"Engineer","managerId":"employee-morgan","primaryEmail":"avery@example.test","phoneNumber":null,"firstName":"Avery","preferredName":null,"lastName":"Chen","isActiveMember":true},"properties":{"id":{"type":"string","description":"Opaque employee identifier. This identifies an org-chart person, not a member or user.","title":"Employee ID","example":"employee-avery","isRequired":true,"uniqueKey":"results.items.[INDEX].employee.id","typeLabel":"string"},"name":{"type":"string","description":"Resolved display name for the employee.","title":"Display name","example":"Avery Chen","isRequired":true,"uniqueKey":"results.items.[INDEX].employee.name","typeLabel":"string"},"avatarUrl":{"oneOf":[{"type":"string","description":"Employee avatar URL, or null when no avatar is available.","title":"Avatar URL","isRequired":true,"uniqueKey":"results.items.[INDEX].employee.avatarUrl.oneOf.0","typeLabel":"string"},{"type":"null","description":"Employee avatar URL, or null when no avatar is available.","title":"Avatar URL","isRequired":true,"uniqueKey":"results.items.[INDEX].employee.avatarUrl.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"results.items.[INDEX].employee.avatarUrl","typeLabel":"string | null"},"jobTitle":{"oneOf":[{"type":"string","description":"Employee job title. Null indicates no recorded title.","title":"Job title","example":"Engineer","isRequired":true,"uniqueKey":"results.items.[INDEX].employee.jobTitle.oneOf.0","typeLabel":"string"},{"type":"null","description":"Employee job title. Null indicates no recorded title.","title":"Job title","example":"Engineer","isRequired":true,"uniqueKey":"results.items.[INDEX].employee.jobTitle.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"results.items.[INDEX].employee.jobTitle","typeLabel":"string | null"},"managerId":{"oneOf":[{"type":"string","description":"Employee ID of the direct manager, or null when no manager is assigned.","title":"Manager ID","example":"employee-morgan","isRequired":true,"uniqueKey":"results.items.[INDEX].employee.managerId.oneOf.0","typeLabel":"string"},{"type":"null","description":"Employee ID of the direct manager, or null when no manager is assigned.","title":"Manager ID","example":"employee-morgan","isRequired":true,"uniqueKey":"results.items.[INDEX].employee.managerId.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"results.items.[INDEX].employee.managerId","typeLabel":"string | null"},"primaryEmail":{"oneOf":[{"type":"string","description":"Primary employee email address, or null when none is set.","title":"Primary email","example":"avery@example.test","isRequired":true,"uniqueKey":"results.items.[INDEX].employee.primaryEmail.oneOf.0","typeLabel":"string"},{"type":"null","description":"Primary employee email address, or null when none is set.","title":"Primary email","example":"avery@example.test","isRequired":true,"uniqueKey":"results.items.[INDEX].employee.primaryEmail.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"results.items.[INDEX].employee.primaryEmail","typeLabel":"string | null"},"phoneNumber":{"oneOf":[{"type":"string","description":"Employee phone number, or null when unavailable.","title":"Phone number","isRequired":true,"uniqueKey":"results.items.[INDEX].employee.phoneNumber.oneOf.0","typeLabel":"string"},{"type":"null","description":"Employee phone number, or null when unavailable.","title":"Phone number","isRequired":true,"uniqueKey":"results.items.[INDEX].employee.phoneNumber.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"results.items.[INDEX].employee.phoneNumber","typeLabel":"string | null"},"firstName":{"oneOf":[{"type":"string","description":"Employee first name, or null when unavailable.","title":"First name","example":"Avery","isRequired":true,"uniqueKey":"results.items.[INDEX].employee.firstName.oneOf.0","typeLabel":"string"},{"type":"null","description":"Employee first name, or null when unavailable.","title":"First name","example":"Avery","isRequired":true,"uniqueKey":"results.items.[INDEX].employee.firstName.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"results.items.[INDEX].employee.firstName","typeLabel":"string | null"},"preferredName":{"oneOf":[{"type":"string","description":"Employee preferred first name, or null when unavailable.","title":"Preferred name","isRequired":true,"uniqueKey":"results.items.[INDEX].employee.preferredName.oneOf.0","typeLabel":"string"},{"type":"null","description":"Employee preferred first name, or null when unavailable.","title":"Preferred name","isRequired":true,"uniqueKey":"results.items.[INDEX].employee.preferredName.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"results.items.[INDEX].employee.preferredName","typeLabel":"string | null"},"lastName":{"oneOf":[{"type":"string","description":"Employee last name, or null when unavailable.","title":"Last name","example":"Chen","isRequired":true,"uniqueKey":"results.items.[INDEX].employee.lastName.oneOf.0","typeLabel":"string"},{"type":"null","description":"Employee last name, or null when unavailable.","title":"Last name","example":"Chen","isRequired":true,"uniqueKey":"results.items.[INDEX].employee.lastName.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"results.items.[INDEX].employee.lastName","typeLabel":"string | null"},"isActiveMember":{"type":"boolean","description":"Whether the employee has an active linked workspace membership.","title":"Has active workspace access","example":true,"isRequired":true,"uniqueKey":"results.items.[INDEX].employee.isActiveMember","typeLabel":"boolean"}},"isRequired":true,"uniqueKey":"results.items.[INDEX].employee","typeLabel":"Employee · object"},"stats":{"type":"array","items":{"type":"object","properties":{"stat":{"type":"string","description":"Stat identifier.","title":"Stat identifier","example":"code-prs-merged","isRequired":true,"uniqueKey":"results.items.[INDEX].stats.items.[INDEX].stat","typeLabel":"string"},"value":{"type":"number","description":"Value across the range: the sum for COUNT and AGGREGATE stats, or the denominator-weighted average for AVERAGE stats. 0 when the employee has no data.","title":"Range value","example":5,"isRequired":true,"uniqueKey":"results.items.[INDEX].stats.items.[INDEX].value","typeLabel":"number"},"denominator":{"oneOf":[{"type":"number","description":"Total denominator across the range, or null for COUNT stats and missing data.","title":"Range denominator","example":null,"isRequired":true,"uniqueKey":"results.items.[INDEX].stats.items.[INDEX].denominator.oneOf.0","typeLabel":"number"},{"type":"null","description":"Total denominator across the range, or null for COUNT stats and missing data.","title":"Range denominator","example":null,"isRequired":true,"uniqueKey":"results.items.[INDEX].stats.items.[INDEX].denominator.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"results.items.[INDEX].stats.items.[INDEX].denominator","typeLabel":"number | null"}},"required":["stat","value","denominator"],"description":"One employee's total for one stat over the requested range.","title":"Employee stat total","uniqueKey":"results.items.[INDEX].stats.items.[INDEX]","typeLabel":"Employee stat total · object"},"description":"Totals in the order of statTypes.","title":"Stat totals","isRequired":true,"uniqueKey":"results.items.[INDEX].stats","typeLabel":"Employee stat total · object[]"}},"required":["employee","stats"],"title":"Employee stat totals row","uniqueKey":"results.items.[INDEX]","typeLabel":"Employee stat totals row · object"},"description":"One row per employee, including employees with no data in the range. Only employees whose analytics the caller can read are included.","title":"Employee results","isRequired":true,"uniqueKey":"results","typeLabel":"Employee stat totals row · object[]"},"pagination":{"type":"object","properties":{"page":{"type":"integer","minimum":1,"default":1,"description":"One-based page number. Defaults to 1.","title":"Page number","example":1,"isRequired":true,"uniqueKey":"pagination.page","typeLabel":"integer"},"pageSize":{"type":"integer","minimum":1,"maximum":100,"default":20,"description":"Maximum results per page, from 1 to 100. Defaults to 20.","title":"Page size","example":20,"isRequired":true,"uniqueKey":"pagination.pageSize","typeLabel":"integer"},"hasMore":{"type":"boolean","description":"Whether there are more matching results after this page.","title":"Has another page","example":false,"isRequired":true,"uniqueKey":"pagination.hasMore","typeLabel":"boolean"},"total":{"type":"integer","minimum":0,"description":"Total matching items, independent of pagination. The route determines the item type.","title":"Total matches","example":1,"uniqueKey":"pagination.total","typeLabel":"integer"}},"required":["page","pageSize","hasMore"],"description":"Returned page and page size, plus hasMore. Total is omitted unless include.total was requested.","title":"Pagination","isRequired":true,"uniqueKey":"pagination","typeLabel":"Pagination · object"},"aggregates":{"type":"array","items":{"type":"object","properties":{"stat":{"type":"string","description":"Stat identifier.","title":"Stat identifier","example":"code-prs-merged","isRequired":true,"uniqueKey":"aggregates.items.[INDEX].stat","typeLabel":"string"},"sum":{"oneOf":[{"type":"number","description":"Sum across matching employees. Null for AVERAGE stats.","title":"Sum","example":10,"isRequired":true,"uniqueKey":"aggregates.items.[INDEX].sum.oneOf.0","typeLabel":"number"},{"type":"null","description":"Sum across matching employees. Null for AVERAGE stats.","title":"Sum","example":10,"isRequired":true,"uniqueKey":"aggregates.items.[INDEX].sum.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"aggregates.items.[INDEX].sum","typeLabel":"number | null"},"average":{"oneOf":[{"type":"number","description":"Average per matching employee, or the denominator-weighted average for AVERAGE stats. Null when no employee contributes to it.","title":"Average","example":5,"isRequired":true,"uniqueKey":"aggregates.items.[INDEX].average.oneOf.0","typeLabel":"number"},{"type":"null","description":"Average per matching employee, or the denominator-weighted average for AVERAGE stats. Null when no employee contributes to it.","title":"Average","example":5,"isRequired":true,"uniqueKey":"aggregates.items.[INDEX].average.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"aggregates.items.[INDEX].average","typeLabel":"number | null"}},"required":["stat","sum","average"],"description":"One stat across every employee that matches the filter, on all pages.","title":"Stat totals across employees","uniqueKey":"aggregates.items.[INDEX]","typeLabel":"Stat totals across employees · object"},"description":"Present when include.aggregates is true. In the order of statTypes.","title":"Aggregate totals","uniqueKey":"aggregates","typeLabel":"Stat totals across employees · object[]"},"rank":{"oneOf":[{"type":"object","properties":{"position":{"type":"integer","description":"1-based position in the sorted results across all pages.","title":"Position","example":1,"isRequired":true,"uniqueKey":"rank.oneOf.0.position","typeLabel":"integer"}},"required":["position"],"description":"Present when include.rankOf is set. Null when that employee does not match the filter or the caller cannot access them.","title":"Employee rank","example":{"position":1},"uniqueKey":"rank.oneOf.0","typeLabel":"Employee rank · object"},{"type":"null","properties":{"position":{"type":"integer","description":"1-based position in the sorted results across all pages.","title":"Position","example":1}},"required":["position"],"description":"Present when include.rankOf is set. Null when that employee does not match the filter or the caller cannot access them.","title":"Employee rank","example":{"position":1},"uniqueKey":"rank.oneOf.1","typeLabel":"null"}],"uniqueKey":"rank","typeLabel":"Employee rank · object | null"}},"required":["results","pagination"],"additionalProperties":false,"title":"Employee stat totals search response","uniqueKey":"","typeLabel":"Employee stat totals search response · object"},"examples":{"Example":{"title":"Example","value":{"results":[{"employee":{"id":"employee-avery","name":"Avery Chen","avatarUrl":null,"jobTitle":"Engineer","managerId":"employee-morgan","primaryEmail":"avery@example.test","phoneNumber":null,"firstName":"Avery","preferredName":null,"lastName":"Chen","isActiveMember":true},"stats":[{"stat":"code-prs-merged","value":5,"denominator":null}]}],"pagination":{"page":1,"pageSize":20,"hasMore":false,"total":1},"aggregates":[{"stat":"code-prs-merged","sum":10,"average":5}],"rank":{"position":1}}}},"exampleType":"generated"}},"exampleType":"generated"},"4b2509f5-1a43-4a7e-857c-bd3c74818337":{"description":"Bad request or request validation failed","content":{"application/json":{"schema":{"oneOf":[{"type":"object","required":["error"],"properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST"],"isRequired":true,"uniqueKey":"oneOf.0.error.code","typeLabel":"enum\u003cstring>"},"message":{"type":"string","isRequired":true,"uniqueKey":"oneOf.0.error.message","typeLabel":"string"},"requestId":{"type":"string","isRequired":true,"uniqueKey":"oneOf.0.error.requestId","typeLabel":"string"}},"required":["code","message","requestId"],"isRequired":true,"uniqueKey":"oneOf.0.error","typeLabel":"object"}},"uniqueKey":"oneOf.0","typeLabel":"object"},{"type":"object","required":["error"],"properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["VALIDATION_ERROR"],"isRequired":true,"uniqueKey":"oneOf.1.error.code","typeLabel":"enum\u003cstring>"},"message":{"type":"string","isRequired":true,"uniqueKey":"oneOf.1.error.message","typeLabel":"string"},"requestId":{"type":"string","isRequired":true,"uniqueKey":"oneOf.1.error.requestId","typeLabel":"string"},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"array","items":{"oneOf":[{"type":"string","uniqueKey":"oneOf.1.error.details.items.[INDEX].path.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"oneOf.1.error.details.items.[INDEX].path.items.[INDEX].oneOf.1","typeLabel":"number"}],"uniqueKey":"oneOf.1.error.details.items.[INDEX].path.items.[INDEX]","typeLabel":"string | number"},"isRequired":true,"uniqueKey":"oneOf.1.error.details.items.[INDEX].path","typeLabel":"(string | number)[]"},"message":{"type":"string","isRequired":true,"uniqueKey":"oneOf.1.error.details.items.[INDEX].message","typeLabel":"string"}},"required":["path","message"],"uniqueKey":"oneOf.1.error.details.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"oneOf.1.error.details","typeLabel":"object[]"}},"required":["code","message","requestId","details"],"isRequired":true,"uniqueKey":"oneOf.1.error","typeLabel":"object"}},"uniqueKey":"oneOf.1","typeLabel":"object"}],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"BAD_REQUEST","message":"\u003cstring>","requestId":"\u003cstring>"}}}},"exampleType":"generated"}},"exampleType":"generated"},"5b64757f-7179-4c78-9c48-f339fca15225":{"description":"Authentication is missing or invalid. Send a valid API key or OAuth access token in the Authorization: Bearer \u003cTOKEN> header before retrying.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["UNAUTHORIZED"],"isRequired":true,"uniqueKey":"error.code","typeLabel":"enum\u003cstring>"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"requestId":{"type":"string","isRequired":true,"uniqueKey":"error.requestId","typeLabel":"string"}},"required":["code","message","requestId"],"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"required":["error"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"UNAUTHORIZED","message":"\u003cstring>","requestId":"\u003cstring>"}}}},"exampleType":"generated"}},"exampleType":"generated"},"c552daff-1397-4efc-ade8-9975b2ed65af":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["FORBIDDEN"],"isRequired":true,"uniqueKey":"error.code","typeLabel":"enum\u003cstring>"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"requestId":{"type":"string","isRequired":true,"uniqueKey":"error.requestId","typeLabel":"string"}},"required":["code","message","requestId"],"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"required":["error"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"FORBIDDEN","message":"\u003cstring>","requestId":"\u003cstring>"}}}},"exampleType":"generated"}},"exampleType":"generated"},"4326ceba-adc8-4210-96e0-07071fe3fdd4":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["NOT_FOUND"],"isRequired":true,"uniqueKey":"error.code","typeLabel":"enum\u003cstring>"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"requestId":{"type":"string","isRequired":true,"uniqueKey":"error.requestId","typeLabel":"string"}},"required":["code","message","requestId"],"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"required":["error"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"NOT_FOUND","message":"\u003cstring>","requestId":"\u003cstring>"}}}},"exampleType":"generated"}},"exampleType":"generated"},"5c3036d0-e817-4125-acd7-a98b9fa4ae90":{"description":"The API-client request budget is exhausted. API keys allow 500 requests per minute per key; OAuth clients allow 500 per minute per client and workspace. Reads and writes share the budget. One HTTP request counts once, including bulk requests. Wait for the Retry-After delay before retrying.","headers":{"Retry-After":{"description":"Number of seconds to wait before retrying the request.","required":true,"schema":{"type":"integer","minimum":0,"example":42}},"RateLimit":{"description":"Current request budget: limit is the maximum count, remaining is the unused count, and reset is seconds until the window resets, not a timestamp.","required":true,"schema":{"type":"string","example":"limit=500, remaining=0, reset=42"}},"RateLimit-Policy":{"description":"Request limit and window length in seconds, formatted as \u003climit>;w=\u003cseconds>.","required":true,"schema":{"type":"string","example":"500;w=60"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["RATE_LIMITED"],"isRequired":true,"uniqueKey":"error.code","typeLabel":"enum\u003cstring>"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"requestId":{"type":"string","isRequired":true,"uniqueKey":"error.requestId","typeLabel":"string"}},"required":["code","message","requestId"],"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"required":["error"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"RATE_LIMITED","message":"\u003cstring>","requestId":"\u003cstring>"}}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"886ae18b-7827-44be-9728-6ea3fe9690dd":{"bearerAuth":{"type":"http","scheme":"bearer","description":"Use an API key or OAuth access token. Enter only the token in the authorization dialog; requests send it as `Authorization: Bearer \u003cTOKEN>`.\n\nCreate an API key in your workspace's **Settings → API keys**. Keys start with `wm_api_` and only work in the workspace where they were created. Read-only keys can read data; creating, updating, or deleting data requires a read-write key.\n\n```http\nAuthorization: Bearer wm_api_example\n```\n\nOAuth access tokens are issued for connected Windmill applications.\n\n```http\nAuthorization: Bearer \u003cOAUTH_ACCESS_TOKEN>\n```\n\nBoth token types use the authenticated user's workspace permissions. Each endpoint's permission requirements and the sharing settings of the requested items still apply.","scopes":[],"schemeName":"bearerAuth"}}},"servers":{"c9e274ea-babc-40ce-84c8-2205f0a915c6":{"url":"https://api.gowindmill.com/api/v2"}},"schemas":{"438a7e83-acb2-490e-9f60-9f48e8cea9fb":{"type":"object","properties":{"hasDirectReports":{"oneOf":[{"type":"boolean"},{"type":"null"}]},"hasManager":{"oneOf":[{"type":"boolean"},{"type":"null"}]},"employeeGroupId":{"oneOf":[{"type":"string"},{"type":"null"}]},"employeeGroupIds":{"oneOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"employeeGroupIdSets":{"oneOf":[{"type":"array","items":{"type":"array","items":{"type":"string"},"minItems":1}},{"type":"null"}]},"jobTitle":{"oneOf":[{"type":"string"},{"type":"null"}]},"jobTitles":{"oneOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"countries":{"oneOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"emails":{"oneOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"emailDomains":{"oneOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"employeeId":{"oneOf":[{"type":"string"},{"type":"null"}]},"employeeIds":{"oneOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"excludedEmployeeId":{"oneOf":[{"type":"string"},{"type":"null"}]},"excludedEmployeeIds":{"oneOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"managerId":{"oneOf":[{"type":"string"},{"type":"null"}]},"managerIds":{"oneOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"ancestorManagerId":{"oneOf":[{"type":"string"},{"type":"null"}]},"ancestorManagerIds":{"oneOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"indirectManagerId":{"oneOf":[{"type":"string"},{"type":"null"}]},"indirectManagerIds":{"oneOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"isMember":{"oneOf":[{"type":"boolean"},{"type":"null"}]},"memberRole":{"oneOf":[{"type":"string","enum":["admin","hr-admin","integration-manager","data-analyst","team-member",null]},{"type":"null","enum":["admin","hr-admin","integration-manager","data-analyst","team-member",null]}]},"query":{"oneOf":[{"type":"string"},{"type":"null"}]},"includeArchived":{"oneOf":[{"type":"boolean"},{"type":"null"}]},"onlyArchived":{"oneOf":[{"type":"boolean"},{"type":"null"}]},"includeExternalOrgs":{"oneOf":[{"type":"boolean"},{"type":"null"}]},"platformAccess":{"oneOf":[{"type":"string","enum":["HAS_ACCESS","INVITE_PENDING","NO_ACCESS",null]},{"type":"null","enum":["HAS_ACCESS","INVITE_PENDING","NO_ACCESS",null]}]},"startDate":{"oneOf":[{"type":"object","required":["range"],"properties":{"range":{"type":"string","isRequired":true}}},{"type":"object","required":["from","to"],"properties":{"from":{"type":"string","isRequired":true},"to":{"type":"string","isRequired":true}}},{"type":"null"}]},"isAccountAdmin":{"oneOf":[{"type":"boolean"},{"type":"null"}]},"hasIntegrationIds":{"oneOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"lacksIntegrationIds":{"oneOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"and":{"type":"array","items":{"$circularRef":"438a7e83-acb2-490e-9f60-9f48e8cea9fb"}},"or":{"type":"array","items":{"$circularRef":"438a7e83-acb2-490e-9f60-9f48e8cea9fb"}}}}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","description":"Use an API key or OAuth access token. Enter only the token in the authorization dialog; requests send it as `Authorization: Bearer \u003cTOKEN>`.\n\nCreate an API key in your workspace's **Settings → API keys**. Keys start with `wm_api_` and only work in the workspace where they were created. Read-only keys can read data; creating, updating, or deleting data requires a read-write key.\n\n```http\nAuthorization: Bearer wm_api_example\n```\n\nOAuth access tokens are issued for connected Windmill applications.\n\n```http\nAuthorization: Bearer \u003cOAUTH_ACCESS_TOKEN>\n```\n\nBoth token types use the authenticated user's workspace permissions. Each endpoint's permission requirements and the sharing settings of the requested items still apply.","scopes":[],"schemeName":"bearerAuth"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"Use an API key or OAuth access token. Enter only the token in the authorization dialog; requests send it as `Authorization: Bearer \u003cTOKEN>`.\n\nCreate an API key in your workspace's **Settings → API keys**. Keys start with `wm_api_` and only work in the workspace where they were created. Read-only keys can read data; creating, updating, or deleting data requires a read-write key.\n\n```http\nAuthorization: Bearer wm_api_example\n```\n\nOAuth access tokens are issued for connected Windmill applications.\n\n```http\nAuthorization: Bearer \u003cOAUTH_ACCESS_TOKEN>\n```\n\nBoth token types use the authenticated user's workspace permissions. Each endpoint's permission requirements and the sharing settings of the requested items still apply.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"bearerAuth","name":"Authorization"}],"title":"bearerAuth"}]},"originalFileLocation":"https://api.gowindmill.com/api/v2/openapi.json"},"subdomain":"windmill","siteName":"Windmill Help Site","title":"Search employee stat totals - Windmill Help Site","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-20T16:42:54.656Z","originalFileLocation":"api-reference/stats/search-employee-stat-totals.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Returns one page of employees with their totals for the requested stats over a date range. Employees with no data in the range are included with values of 0. Select 1 to 50 stat identifiers, then optionally filter by totals and sort by a selected stat or employee name. Pagination starts at page 1, with at most 100 employees per page. Request include.total for the count, include.aggregates for statistics across all matching employees, or include.rankOf for one employee\u0026#x27;s position across all pages. Viewing stats for all employees requires workspace-wide analytics access. Other callers can read their own stats and those of their direct and indirect reports, plus employees covered by delegated reporting access. Employee filters only narrow that access.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Windmill Help Site\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/windmill/W7N_zh2zYbm8zD54/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/windmill/W7N_zh2zYbm8zD54/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/windmill/W7N_zh2zYbm8zD54/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/windmill/W7N_zh2zYbm8zD54/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/windmill/W7N_zh2zYbm8zD54/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/windmill/W7N_zh2zYbm8zD54/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/windmill/W7N_zh2zYbm8zD54/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/windmill/W7N_zh2zYbm8zD54/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/windmill/W7N_zh2zYbm8zD54/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Search employee stat totals - Windmill Help Site\">\u003cmeta data-mint-head property=\"og:description\" content=\"Returns one page of employees with their totals for the requested stats over a date range. Employees with no data in the range are included with values of 0. Select 1 to 50 stat identifiers, then optionally filter by totals and sort by a selected stat or employee name. Pagination starts at page 1, with at most 100 employees per page. Request include.total for the count, include.aggregates for statistics across all matching employees, or include.rankOf for one employee\u0026#x27;s position across all pages. Viewing stats for all employees requires workspace-wide analytics access. Other callers can read their own stats and those of their direct and indirect reports, plus employees covered by delegated reporting access. Employee filters only narrow that access.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Windmill Help Center\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://help.gowindmill.com/api-reference/stats/search-employee-stat-totals\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://windmill.mintlify.site/_mintlify/api/og/v2?division=Stats\u0026amp;title=Search+employee+stat+totals\u0026amp;description=Returns+one+page+of+employees+with+their+totals+for+the+requested+stats+over+a+date+range.+Employees+with+no+data+in+the+range+are+included+with+values+of+0.+Se\u0026amp;theme=819f4f407f94f51efe0e1a0f\u0026amp;signature=d5f51f4d9decca63339170a37b07bb985d229be4d3875f4c59e329ba0e823b6d\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Search employee stat totals - Windmill Help Site\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Returns one page of employees with their totals for the requested stats over a date range. Employees with no data in the range are included with values of 0. Select 1 to 50 stat identifiers, then optionally filter by totals and sort by a selected stat or employee name. Pagination starts at page 1, with at most 100 employees per page. Request include.total for the count, include.aggregates for statistics across all matching employees, or include.rankOf for one employee\u0026#x27;s position across all pages. Viewing stats for all employees requires workspace-wide analytics access. Other callers can read their own stats and those of their direct and indirect reports, plus employees covered by delegated reporting access. Employee filters only narrow that access.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://windmill.mintlify.site/_mintlify/api/og/v2?division=Stats\u0026amp;title=Search+employee+stat+totals\u0026amp;description=Returns+one+page+of+employees+with+their+totals+for+the+requested+stats+over+a+date+range.+Employees+with+no+data+in+the+range+are+included+with+values+of+0.+Se\u0026amp;theme=819f4f407f94f51efe0e1a0f\u0026amp;signature=d5f51f4d9decca63339170a37b07bb985d229be4d3875f4c59e329ba0e823b6d\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/windmill/W7N_zh2zYbm8zD54/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Windmill Help Site\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#4084FB\">\u003clink data-mint-head rel=\"canonical\" href=\"https://help.gowindmill.com/api-reference/stats/search-employee-stat-totals\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/stats/search-employee-stat-totals.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://help.gowindmill.com/#organization\",\"name\":\"Windmill Help Site\",\"url\":\"https://help.gowindmill.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/windmill/438SkEPmWnjrcDyT/logo/light.svg?fit=max\u0026auto=format\u0026n=438SkEPmWnjrcDyT\u0026q=85\u0026s=911e75d2985851400d148f9e5e20c94f\"}},{\"@type\":\"WebSite\",\"@id\":\"https://help.gowindmill.com#website\",\"name\":\"Windmill Help Site\",\"url\":\"https://help.gowindmill.com\",\"publisher\":{\"@id\":\"https://help.gowindmill.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://help.gowindmill.com/api-reference/stats/search-employee-stat-totals#webpage\",\"url\":\"https://help.gowindmill.com/api-reference/stats/search-employee-stat-totals\",\"name\":\"Search employee stat totals\",\"description\":\"Returns one page of employees with their totals for the requested stats over a date range. Employees with no data in the range are included with values of 0. Select 1 to 50 stat identifiers, then optionally filter by totals and sort by a selected stat or employee name. Pagination starts at page 1, with at most 100 employees per page. Request include.total for the count, include.aggregates for statistics across all matching employees, or include.rankOf for one employee's position across all pages. Viewing stats for all employees requires workspace-wide analytics access. Other callers can read their own stats and those of their direct and indirect reports, plus employees covered by delegated reporting access. Employee filters only narrow that access.\",\"dateModified\":\"2026-11-20T16:42:54.656Z\",\"isPartOf\":{\"@id\":\"https://help.gowindmill.com#website\"},\"breadcrumb\":{\"@id\":\"https://help.gowindmill.com/api-reference/stats/search-employee-stat-totals#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://help.gowindmill.com/api-reference/stats/search-employee-stat-totals#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Endpoints\",\"item\":\"https://help.gowindmill.com/api-reference/tokens/get-token-information\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Stats\",\"item\":\"https://help.gowindmill.com/api-reference/stat-views/list-stat-views\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Search employee stat totals\",\"item\":\"https://help.gowindmill.com/api-reference/stats/search-employee-stat-totals\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://help.gowindmill.com/api-reference/stats/search-employee-stat-totals#apireference\",\"headline\":\"Search employee stat totals\",\"name\":\"Search employee stat totals\",\"description\":\"Returns one page of employees with their totals for the requested stats over a date range. Employees with no data in the range are included with values of 0. Select 1 to 50 stat identifiers, then optionally filter by totals and sort by a selected stat or employee name. Pagination starts at page 1, with at most 100 employees per page. Request include.total for the count, include.aggregates for statistics across all matching employees, or include.rankOf for one employee's position across all pages. Viewing stats for all employees requires workspace-wide analytics access. Other callers can read their own stats and those of their direct and indirect reports, plus employees covered by delegated reporting access. Employee filters only narrow that access.\",\"url\":\"https://help.gowindmill.com/api-reference/stats/search-employee-stat-totals\",\"mainEntityOfPage\":{\"@id\":\"https://help.gowindmill.com/api-reference/stats/search-employee-stat-totals#webpage\"},\"dateModified\":\"2026-11-20T16:42:54.656Z\",\"publisher\":{\"@id\":\"https://help.gowindmill.com/#organization\"},\"isPartOf\":{\"@id\":\"https://help.gowindmill.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Windmill Help Site\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Windmill Help Site\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/stats/search-employee-stat-totals.md","siteName":"Windmill Help Site","nav":{"global":null,"tabs":[{"tab":"Platform","pages":[{"title":"Platform","href":""}]},{"tab":"Integrations","pages":[{"title":"Integrations","href":"/integrations/integrations"}]},{"tab":"API reference","groups":[{"group":"Getting started","icon":"code","pages":[{"title":"API overview","href":"/api-reference/overview"},{"title":"Authentication","href":"/api-reference/authentication"},{"title":"OAuth","href":"/api-reference/oauth"},{"title":"Making requests","href":"/api-reference/making-requests"},{"title":"Errors","href":"/api-reference/errors"},{"title":"Pagination","href":"/api-reference/pagination"},{"title":"Rate limits","href":"/api-reference/rate-limits"},{"title":"Versioning","href":"/api-reference/versioning"},{"title":"API changelog","href":"/api-reference/changelog"}]},{"group":"Endpoints","icon":"plug","pages":[{"group":"Tokens","pages":[{"title":"Get token information","deprecated":null,"version":null,"openapi":"https://api.gowindmill.com/api/v2/openapi.json get /token-info","href":"/api-reference/tokens/get-token-information"}]},{"group":"Employees","pages":[{"group":"Field sources","pages":[{"title":"List available employee field sources","deprecated":null,"version":null,"openapi":"https://api.gowindmill.com/api/v2/openapi.json get /c/{companyId}/field-sources/available-sources","href":"/api-reference/employee-field-sources/list-available-employee-field-sources"},{"title":"List company employee field defaults","deprecated":null,"version":null,"openapi":"https://api.gowindmill.com/api/v2/openapi.json get /c/{companyId}/field-sources/defaults","href":"/api-reference/employee-field-sources/list-company-employee-field-defaults"},{"title":"List employee field source overrides","deprecated":null,"version":null,"openapi":"https://api.gowindmill.com/api/v2/openapi.json get /c/{companyId}/employees/{employeeId}/field-sources","href":"/api-reference/employee-field-sources/list-employee-field-source-overrides"},{"title":"Resolve effective employee field sources","deprecated":null,"version":null,"openapi":"https://api.gowindmill.com/api/v2/openapi.json post /c/{companyId}/field-sources/resolve","href":"/api-reference/employee-field-sources/resolve-effective-employee-field-sources"},{"title":"Set a company employee field source","deprecated":null,"version":null,"openapi":"https://api.gowindmill.com/api/v2/openapi.json put /c/{companyId}/field-sources/defaults/{fieldKey}","href":"/api-reference/employee-field-sources/set-a-company-employee-field-source"},{"title":"Set an employee field source override","deprecated":null,"version":null,"openapi":"https://api.gowindmill.com/api/v2/openapi.json put /c/{companyId}/employees/{employeeId}/field-sources/{fieldKey}","href":"/api-reference/employee-field-sources/set-an-employee-field-source-override"},{"title":"Remove an employee field source override","deprecated":null,"version":null,"openapi":"https://api.gowindmill.com/api/v2/openapi.json delete /c/{companyId}/employees/{employeeId}/field-sources/{fieldKey}","href":"/api-reference/employee-field-sources/remove-an-employee-field-source-override"},{"title":"Remove a company employee field default","deprecated":null,"version":null,"openapi":"https://api.gowindmill.com/api/v2/openapi.json delete /c/{companyId}/field-sources/defaults/{fieldKey}","href":"/api-reference/employee-field-sources/remove-a-company-employee-field-default"}]},{"title":"Search employee profiles","deprecated":null,"version":null,"openapi":"https://api.gowindmill.com/api/v2/openapi.json post /c/{companyId}/employees/search","href":"/api-reference/employees/search-employee-profiles"},{"title":"Get an employee profile","deprecated":null,"version":null,"openapi":"https://api.gowindmill.com/api/v2/openapi.json get /c/{companyId}/employees/{employeeId}","href":"/api-reference/employees/get-an-employee-profile"},{"title":"Search employee IDs","deprecated":null,"version":null,"openapi":"https://api.gowindmill.com/api/v2/openapi.json post /c/{companyId}/employees/search/ids","href":"/api-reference/employees/search-employee-ids"},{"title":"Count matching employees","deprecated":null,"version":null,"openapi":"https://api.gowindmill.com/api/v2/openapi.json post /c/{companyId}/employees/count","href":"/api-reference/employees/count-matching-employees"},{"title":"Create an employee","deprecated":null,"version":null,"openapi":"https://api.gowindmill.com/api/v2/openapi.json post /c/{companyId}/employees","href":"/api-reference/employees/create-an-employee"},{"title":"Update an employee profile","deprecated":null,"version":null,"openapi":"https://api.gowindmill.com/api/v2/openapi.json patch /c/{companyId}/employees/{employeeId}","href":"/api-reference/employees/update-an-employee-profile"},{"title":"Set an employee's employment status","deprecated":null,"version":null,"openapi":"https://api.gowindmill.com/api/v2/openapi.json put /c/{companyId}/employees/{employeeId}/employment-status","href":"/api-reference/employees/set-an-employees-employment-status"},{"title":"Create employees in bulk","deprecated":null,"version":null,"openapi":"https://api.gowindmill.com/api/v2/openapi.json post /c/{companyId}/employees/bulk","href":"/api-reference/employees/create-employees-in-bulk"}]},{"group":"Groups","pages":[{"group":"Categories","pages":[{"title":"List employee group categories","deprecated":null,"version":null,"openapi":"https://api.gowindmill.com/api/v2/openapi.json get /c/{companyId}/groups/categories","href":"/api-reference/group-categories/list-employee-group-categories"},{"title":"Get an employee group category","deprecated":null,"version":null,"openapi":"https://api.gowindmill.com/api/v2/openapi.json get /c/{companyId}/groups/categories/{categoryId}","href":"/api-reference/group-categories/get-an-employee-group-category"},{"title":"Create an employee group category","deprecated":null,"version":null,"openapi":"https://api.gowindmill.com/api/v2/openapi.json post /c/{companyId}/groups/categories","href":"/api-reference/group-categories/create-an-employee-group-category"},{"title":"Update an employee group category","deprecated":null,"version":null,"openapi":"https://api.gowindmill.com/api/v2/openapi.json patch /c/{companyId}/groups/categories/{categoryId}","href":"/api-reference/group-categories/update-an-employee-group-category"},{"title":"Add employee groups to a category","deprecated":null,"version":null,"openapi":"https://api.gowindmill.com/api/v2/openapi.json post /c/{companyId}/groups/categories/{categoryId}/groups","href":"/api-reference/group-categories/add-employee-groups-to-a-category"},{"title":"Remove employee groups from a category","deprecated":null,"version":null,"openapi":"https://api.gowindmill.com/api/v2/openapi.json post /c/{companyId}/groups/categories/{categoryId}/groups/remove","href":"/api-reference/group-categories/remove-employee-groups-from-a-category"},{"title":"Delete an employee group category","deprecated":null,"version":null,"openapi":"https://api.gowindmill.com/api/v2/openapi.json delete /c/{companyId}/groups/categories/{categoryId}","href":"/api-reference/group-categories/delete-an-employee-group-category"}]},{"title":"List readable employee groups","deprecated":null,"version":null,"openapi":"https://api.gowindmill.com/api/v2/openapi.json get /c/{companyId}/groups","href":"/api-reference/groups/list-readable-employee-groups"},{"title":"Count readable employee groups","deprecated":null,"version":null,"openapi":"https://api.gowindmill.com/api/v2/openapi.json get /c/{companyId}/groups/count","href":"/api-reference/groups/count-readable-employee-groups"},{"title":"Get an employee group","deprecated":null,"version":null,"openapi":"https://api.gowindmill.com/api/v2/openapi.json get /c/{companyId}/groups/{groupId}","href":"/api-reference/groups/get-an-employee-group"},{"title":"Create an employee group","deprecated":null,"version":null,"openapi":"https://api.gowindmill.com/api/v2/openapi.json post /c/{companyId}/groups","href":"/api-reference/groups/create-an-employee-group"},{"title":"Update an employee group","deprecated":null,"version":null,"openapi":"https://api.gowindmill.com/api/v2/openapi.json patch /c/{companyId}/groups/{groupId}","href":"/api-reference/groups/update-an-employee-group"},{"title":"List employees in a group","deprecated":null,"version":null,"openapi":"https://api.gowindmill.com/api/v2/openapi.json get /c/{companyId}/groups/{groupId}/members","href":"/api-reference/groups/list-employees-in-a-group"},{"title":"Count employee group members","deprecated":null,"version":null,"openapi":"https://api.gowindmill.com/api/v2/openapi.json get /c/{companyId}/groups/{groupId}/members/count","href":"/api-reference/groups/count-employee-group-members"},{"title":"Add employees to a manual group","deprecated":null,"version":null,"openapi":"https://api.gowindmill.com/api/v2/openapi.json post /c/{companyId}/groups/{groupId}/members","href":"/api-reference/groups/add-employees-to-a-manual-group"},{"title":"Remove employees from a manual group","deprecated":null,"version":null,"openapi":"https://api.gowindmill.com/api/v2/openapi.json post /c/{companyId}/groups/{groupId}/members/remove","href":"/api-reference/groups/remove-employees-from-a-manual-group"},{"title":"Replace smart group employee rules","deprecated":null,"version":null,"openapi":"https://api.gowindmill.com/api/v2/openapi.json put /c/{companyId}/groups/{groupId}/rules","href":"/api-reference/groups/replace-smart-group-employee-rules"},{"title":"Refresh an employee group","deprecated":null,"version":null,"openapi":"https://api.gowindmill.com/api/v2/openapi.json post /c/{companyId}/groups/{groupId}/sync","href":"/api-reference/groups/refresh-an-employee-group"},{"title":"Replace employee group sharing","deprecated":null,"version":null,"openapi":"https://api.gowindmill.com/api/v2/openapi.json put /c/{companyId}/groups/{groupId}/access","href":"/api-reference/groups/replace-employee-group-sharing"},{"title":"Upload and review a group member CSV","deprecated":null,"version":null,"openapi":"https://api.gowindmill.com/api/v2/openapi.json post /c/{companyId}/groups/{groupId}/members/imports/uploads","href":"/api-reference/groups/upload-and-review-a-group-member-csv"},{"title":"Submit a reviewed group member import","deprecated":null,"version":null,"openapi":"https://api.gowindmill.com/api/v2/openapi.json post /c/{companyId}/groups/{groupId}/members/imports","href":"/api-reference/groups/submit-a-reviewed-group-member-import"},{"title":"Get group member import progress","deprecated":null,"version":null,"openapi":"https://api.gowindmill.com/api/v2/openapi.json get /c/{companyId}/groups/{groupId}/members/imports/{importId}","href":"/api-reference/groups/get-group-member-import-progress"},{"title":"Delete an employee group","deprecated":null,"version":null,"openapi":"https://api.gowindmill.com/api/v2/openapi.json delete /c/{companyId}/groups/{groupId}","href":"/api-reference/groups/delete-an-employee-group"}]},{"group":"Stats","pages":[{"group":"Views","pages":[{"title":"List stat views","deprecated":null,"version":null,"openapi":"https://api.gowindmill.com/api/v2/openapi.json get /c/{companyId}/stats/views","href":"/api-reference/stat-views/list-stat-views"},{"title":"Count stat views","deprecated":null,"version":null,"openapi":"https://api.gowindmill.com/api/v2/openapi.json get /c/{companyId}/stats/views/count","href":"/api-reference/stat-views/count-stat-views"},{"title":"Get a stat view","deprecated":null,"version":null,"openapi":"https://api.gowindmill.com/api/v2/openapi.json get /c/{companyId}/stats/views/{id}","href":"/api-reference/stat-views/get-a-stat-view"},{"title":"Create a stat view","deprecated":null,"version":null,"openapi":"https://api.gowindmill.com/api/v2/openapi.json post /c/{companyId}/stats/views","href":"/api-reference/stat-views/create-a-stat-view"},{"title":"Update a stat view","deprecated":null,"version":null,"openapi":"https://api.gowindmill.com/api/v2/openapi.json patch /c/{companyId}/stats/views/{id}","href":"/api-reference/stat-views/update-a-stat-view"},{"title":"Set stat view access","deprecated":null,"version":null,"openapi":"https://api.gowindmill.com/api/v2/openapi.json put /c/{companyId}/stats/views/{id}/access","href":"/api-reference/stat-views/set-stat-view-access"},{"title":"Delete a stat view","deprecated":null,"version":null,"openapi":"https://api.gowindmill.com/api/v2/openapi.json delete /c/{companyId}/stats/views/{id}","href":"/api-reference/stat-views/delete-a-stat-view"}]},{"title":"Search stat definitions","deprecated":null,"version":null,"openapi":"https://api.gowindmill.com/api/v2/openapi.json post /c/{companyId}/stats/metadata/search","href":"/api-reference/stats/search-stat-definitions"},{"title":"Count stat definitions","deprecated":null,"version":null,"openapi":"https://api.gowindmill.com/api/v2/openapi.json post /c/{companyId}/stats/metadata/count","href":"/api-reference/stats/count-stat-definitions"},{"title":"Search employee stat series","description":"Returns employee stat series and range totals for a date range, keyed by employee ID. Discover definitions with POST /c/{companyId}/stats/metadata/search. Omit both statTypes and statMetadataIds to select all non-archived definitions; when both are supplied, a definition must match both. Employees and periods with no recorded data are omitted. Set include.data to false for range totals without period buckets. This response is not paginated. Viewing stats for all employees requires workspace-wide analytics access. Other callers can read their own stats and those of their direct and indirect reports, plus employees covered by delegated reporting access. Employee filters only narrow that access.","deprecated":null,"version":null,"openapi":"https://api.gowindmill.com/api/v2/openapi.json post /c/{companyId}/stats/search","href":"/api-reference/stats/search-employee-stat-series"},{"title":"Search employee stat totals","deprecated":null,"version":null,"openapi":"https://api.gowindmill.com/api/v2/openapi.json post /c/{companyId}/stats/employees/search","href":"/api-reference/stats/search-employee-stat-totals"},{"title":"Count employees matching stat totals","description":"Counts employees matching the supplied date range, stat selection, employee filter, search text, and conditions on stat totals. Employees with no data count when their zero totals satisfy the conditions. The count is independent of pagination. Viewing stats for all employees requires workspace-wide analytics access. Other callers can read their own stats and those of their direct and indirect reports, plus employees covered by delegated reporting access. Employee filters only narrow that access.","deprecated":null,"version":null,"openapi":"https://api.gowindmill.com/api/v2/openapi.json post /c/{companyId}/stats/employees/count","href":"/api-reference/stats/count-employees-matching-stat-totals"},{"title":"Export employee stats as CSV","deprecated":null,"version":null,"openapi":"https://api.gowindmill.com/api/v2/openapi.json post /c/{companyId}/stats/export/csv","href":"/api-reference/stats/export-employee-stats-as-csv"},{"title":"Create or replace a custom stat definition","deprecated":null,"version":null,"openapi":"https://api.gowindmill.com/api/v2/openapi.json put /c/{companyId}/stats/metadata","href":"/api-reference/stats/create-or-replace-a-custom-stat-definition"},{"title":"Upload custom employee stat values","deprecated":null,"version":null,"openapi":"https://api.gowindmill.com/api/v2/openapi.json put /c/{companyId}/stats/values","href":"/api-reference/stats/upload-custom-employee-stat-values"}]}]}]},{"tab":"Changelog","pages":[{"title":"Changelog","href":"/changelog"}]},{"tab":"Best practices","pages":[{"title":"Best practices","href":"/introducing-windmill"}]}]},"basePath":"","title":"Search employee stat totals - Windmill Help Site","deploymentId":"dpl_2pTxFtyBudBMYZiCw1MyvoA1wxpd","buildId":"dpl_2pTxFtyBudBMYZiCw1MyvoA1wxpd","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-BtG4DSkw.js","snippetPresets-C1k1xDhp.js","utils-PMJoEt4Y.js","style-to-object-BY3JEAdk.js","utils-DW3Pr7Jq.js","v4-DIgz8zy6.js","addUniqueKeysToSchema-DIISLO2w.js","conditional-requirements-CFM0id0Q.js","cloneDeep-BErNCZCm.js","_Uint8Array-f0PCu9f_.js","isObject-FP1Yky1u.js","ApiExamples-OjY-8mqu.js","usePlaygroundInputsStore-B2HS2hUb.js","shallow-DVFuuIDQ.js","isEqual-DG0UKiQC.js","CodeSnippets-Cy6FBgwN.js","CodeSnippet-D1PtG8ed.js","getApiPlaygroundDisplay-Dkx2eNtL.js","Page-C8Cg25if.js","DynamicMarkdown-BvJIe00T.js","SectionHeading-B0rKYV8d.js","icon-yclzBff4.js","MethodPill-DxA11cCF.js","getPastedJson-CpkIDpMk.js","DuplicateIcon-CFCQNJ-D.js","axios-CsQoIw0U.js","Markdown-CK5C-fmV.js","AssistantPageLink-Cw134Dd-.js","dist-3xM3Qrc7.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}