curl --request POST \
--url https://api.gowindmill.com/api/v2/c/{companyId}/activities/search \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"filter": {
"types": [
"call-score"
],
"occurredAt": {
"from": {
"at": "2026-10-01T00:00:00Z"
}
},
"properties": [
{
"key": "score",
"op": "gte",
"value": 80
}
]
},
"page": 2,
"pageSize": 1,
"include": {
"total": true
}
}
'import requests
url = "https://api.gowindmill.com/api/v2/c/{companyId}/activities/search"
payload = {
"filter": {
"types": ["call-score"],
"occurredAt": { "from": { "at": "2026-10-01T00:00:00Z" } },
"properties": [
{
"key": "score",
"op": "gte",
"value": 80
}
]
},
"page": 2,
"pageSize": 1,
"include": { "total": True }
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
filter: {
types: ['call-score'],
occurredAt: {from: {at: '2026-10-01T00:00:00Z'}},
properties: [{key: 'score', op: 'gte', value: 80}]
},
page: 2,
pageSize: 1,
include: {total: true}
})
};
fetch('https://api.gowindmill.com/api/v2/c/{companyId}/activities/search', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.gowindmill.com/api/v2/c/{companyId}/activities/search",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'filter' => [
'types' => [
'call-score'
],
'occurredAt' => [
'from' => [
'at' => '2026-10-01T00:00:00Z'
]
],
'properties' => [
[
'key' => 'score',
'op' => 'gte',
'value' => 80
]
]
],
'page' => 2,
'pageSize' => 1,
'include' => [
'total' => true
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.gowindmill.com/api/v2/c/{companyId}/activities/search"
payload := strings.NewReader("{\n \"filter\": {\n \"types\": [\n \"call-score\"\n ],\n \"occurredAt\": {\n \"from\": {\n \"at\": \"2026-10-01T00:00:00Z\"\n }\n },\n \"properties\": [\n {\n \"key\": \"score\",\n \"op\": \"gte\",\n \"value\": 80\n }\n ]\n },\n \"page\": 2,\n \"pageSize\": 1,\n \"include\": {\n \"total\": true\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.gowindmill.com/api/v2/c/{companyId}/activities/search")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"filter\": {\n \"types\": [\n \"call-score\"\n ],\n \"occurredAt\": {\n \"from\": {\n \"at\": \"2026-10-01T00:00:00Z\"\n }\n },\n \"properties\": [\n {\n \"key\": \"score\",\n \"op\": \"gte\",\n \"value\": 80\n }\n ]\n },\n \"page\": 2,\n \"pageSize\": 1,\n \"include\": {\n \"total\": true\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.gowindmill.com/api/v2/c/{companyId}/activities/search")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"filter\": {\n \"types\": [\n \"call-score\"\n ],\n \"occurredAt\": {\n \"from\": {\n \"at\": \"2026-10-01T00:00:00Z\"\n }\n },\n \"properties\": [\n {\n \"key\": \"score\",\n \"op\": \"gte\",\n \"value\": 80\n }\n ]\n },\n \"page\": 2,\n \"pageSize\": 1,\n \"include\": {\n \"total\": true\n }\n}"
response = http.request(request)
puts response.read_body{
"results": [
{
"id": "019a2f7c-8842-7e3f-9a4b-5c6d7e8f9a0b",
"type": "call-score",
"externalId": "call-8842",
"employees": [
{
"employeeId": "employee-jane",
"email": "jane@acme.example"
}
],
"title": "Discovery call with Northwind scored 82/100",
"body": null,
"url": "https://calls.example/call?id=8842",
"occurredAt": "2026-10-20T15:30:00.000Z",
"properties": {
"score": 82,
"callType": "Discovery",
"account.name": "Northwind"
},
"tags": [
"q4-push"
],
"integrationId": null,
"access": {
"companyAccess": "none",
"allManagersAccess": "none",
"employeeAccess": [
{
"employeeId": "employee-jane",
"access": "read"
},
{
"employeeId": "employee-omar",
"access": "write"
}
],
"groupAccess": [],
"subtreeAccess": [],
"capabilitiesAccess": [
{
"capability": "activities.manage",
"access": "write"
}
],
"automationAccess": [],
"relationshipAccess": [
{
"relationship": "EMPLOYEE_AND_MANAGER_HIERARCHY",
"employeeId": "employee-jane",
"access": "read"
}
]
},
"createdByEmployeeId": "employee-omar",
"lastUpdatedByEmployeeId": "employee-omar",
"createdAt": "2026-10-20T16:00:00.000Z",
"updatedAt": "2026-10-20T16:00:00.000Z"
}
],
"pagination": {
"page": 2,
"pageSize": 1,
"hasMore": true,
"total": 3
}
}{
"error": {
"code": "BAD_REQUEST",
"message": "<string>",
"requestId": "<string>",
"details": [
{
"path": [
"<string>"
],
"message": "<string>",
"resourceId": "<string>"
}
]
}
}{
"error": {
"code": "UNAUTHORIZED",
"message": "<string>",
"requestId": "<string>"
}
}{
"error": {
"code": "FORBIDDEN",
"message": "<string>",
"requestId": "<string>",
"details": [
{
"path": [
"<string>"
],
"message": "<string>",
"resourceId": "<string>"
}
]
}
}{
"error": {
"code": "RATE_LIMITED",
"message": "<string>",
"requestId": "<string>"
}
}Search activities
Returns one page of the activities that match the filter, newest occurredAt first. Activities with the same occurredAt come in descending id order, so the order is the same on every page. Filter by type, employee, tag, occurredAt range, and property conditions. Pages start at 1; pageSize defaults to 20 and is limited to 100. To read the next page, send the same request with page increased by 1, and stop when pagination.hasMore is false. Set include.total to true for the count of every match. For counts alone, or counts by type or month, use POST /c//activities/count. A field the request does not define fails validation. No text can contain the NUL character (U+0000) or a lone UTF-16 surrogate (U+D800 to U+DFFF). With permission to manage activities (activities.manage), you can read every activity. Otherwise you can read an activity when its access grants you read or write access, for example as an employee on it, as one of their managers, or as the employee who created it. Activities shared with admins can be read with permission to view admin activities (activities.view_admin). Access granted to a permission reaches only members who have an employee record; permission to manage activities needs none. Archived activities are never returned.
curl --request POST \
--url https://api.gowindmill.com/api/v2/c/{companyId}/activities/search \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"filter": {
"types": [
"call-score"
],
"occurredAt": {
"from": {
"at": "2026-10-01T00:00:00Z"
}
},
"properties": [
{
"key": "score",
"op": "gte",
"value": 80
}
]
},
"page": 2,
"pageSize": 1,
"include": {
"total": true
}
}
'import requests
url = "https://api.gowindmill.com/api/v2/c/{companyId}/activities/search"
payload = {
"filter": {
"types": ["call-score"],
"occurredAt": { "from": { "at": "2026-10-01T00:00:00Z" } },
"properties": [
{
"key": "score",
"op": "gte",
"value": 80
}
]
},
"page": 2,
"pageSize": 1,
"include": { "total": True }
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
filter: {
types: ['call-score'],
occurredAt: {from: {at: '2026-10-01T00:00:00Z'}},
properties: [{key: 'score', op: 'gte', value: 80}]
},
page: 2,
pageSize: 1,
include: {total: true}
})
};
fetch('https://api.gowindmill.com/api/v2/c/{companyId}/activities/search', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.gowindmill.com/api/v2/c/{companyId}/activities/search",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'filter' => [
'types' => [
'call-score'
],
'occurredAt' => [
'from' => [
'at' => '2026-10-01T00:00:00Z'
]
],
'properties' => [
[
'key' => 'score',
'op' => 'gte',
'value' => 80
]
]
],
'page' => 2,
'pageSize' => 1,
'include' => [
'total' => true
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.gowindmill.com/api/v2/c/{companyId}/activities/search"
payload := strings.NewReader("{\n \"filter\": {\n \"types\": [\n \"call-score\"\n ],\n \"occurredAt\": {\n \"from\": {\n \"at\": \"2026-10-01T00:00:00Z\"\n }\n },\n \"properties\": [\n {\n \"key\": \"score\",\n \"op\": \"gte\",\n \"value\": 80\n }\n ]\n },\n \"page\": 2,\n \"pageSize\": 1,\n \"include\": {\n \"total\": true\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.gowindmill.com/api/v2/c/{companyId}/activities/search")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"filter\": {\n \"types\": [\n \"call-score\"\n ],\n \"occurredAt\": {\n \"from\": {\n \"at\": \"2026-10-01T00:00:00Z\"\n }\n },\n \"properties\": [\n {\n \"key\": \"score\",\n \"op\": \"gte\",\n \"value\": 80\n }\n ]\n },\n \"page\": 2,\n \"pageSize\": 1,\n \"include\": {\n \"total\": true\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.gowindmill.com/api/v2/c/{companyId}/activities/search")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"filter\": {\n \"types\": [\n \"call-score\"\n ],\n \"occurredAt\": {\n \"from\": {\n \"at\": \"2026-10-01T00:00:00Z\"\n }\n },\n \"properties\": [\n {\n \"key\": \"score\",\n \"op\": \"gte\",\n \"value\": 80\n }\n ]\n },\n \"page\": 2,\n \"pageSize\": 1,\n \"include\": {\n \"total\": true\n }\n}"
response = http.request(request)
puts response.read_body{
"results": [
{
"id": "019a2f7c-8842-7e3f-9a4b-5c6d7e8f9a0b",
"type": "call-score",
"externalId": "call-8842",
"employees": [
{
"employeeId": "employee-jane",
"email": "jane@acme.example"
}
],
"title": "Discovery call with Northwind scored 82/100",
"body": null,
"url": "https://calls.example/call?id=8842",
"occurredAt": "2026-10-20T15:30:00.000Z",
"properties": {
"score": 82,
"callType": "Discovery",
"account.name": "Northwind"
},
"tags": [
"q4-push"
],
"integrationId": null,
"access": {
"companyAccess": "none",
"allManagersAccess": "none",
"employeeAccess": [
{
"employeeId": "employee-jane",
"access": "read"
},
{
"employeeId": "employee-omar",
"access": "write"
}
],
"groupAccess": [],
"subtreeAccess": [],
"capabilitiesAccess": [
{
"capability": "activities.manage",
"access": "write"
}
],
"automationAccess": [],
"relationshipAccess": [
{
"relationship": "EMPLOYEE_AND_MANAGER_HIERARCHY",
"employeeId": "employee-jane",
"access": "read"
}
]
},
"createdByEmployeeId": "employee-omar",
"lastUpdatedByEmployeeId": "employee-omar",
"createdAt": "2026-10-20T16:00:00.000Z",
"updatedAt": "2026-10-20T16:00:00.000Z"
}
],
"pagination": {
"page": 2,
"pageSize": 1,
"hasMore": true,
"total": 3
}
}{
"error": {
"code": "BAD_REQUEST",
"message": "<string>",
"requestId": "<string>",
"details": [
{
"path": [
"<string>"
],
"message": "<string>",
"resourceId": "<string>"
}
]
}
}{
"error": {
"code": "UNAUTHORIZED",
"message": "<string>",
"requestId": "<string>"
}
}{
"error": {
"code": "FORBIDDEN",
"message": "<string>",
"requestId": "<string>",
"details": [
{
"path": [
"<string>"
],
"message": "<string>",
"resourceId": "<string>"
}
]
}
}{
"error": {
"code": "RATE_LIMITED",
"message": "<string>",
"requestId": "<string>"
}
}Authorizations
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
Body
Was this page helpful?