GET/ activities/
Get activities
Returns a paginated list of all activities in your app.
Returns up to 100 activities per page, newest first. To get the rest, follow next (see Response pagination).
The list can't be filtered or sorted: query parameters such as user_id, deal_id, done, ordering or page_size are ignored, and the response lists every activity.
Request
- cURL
- JavaScript
- PHP
- Python
curl -X GET "https://<your_app_subdomain>.user.com/api/public/activities/" \
-H "Authorization: Token <your_64_char_api_key>" \
-H "Accept: */*; version=2"
const response = await fetch(
"https://<your_app_subdomain>.user.com/api/public/activities/",
{
method: "GET",
headers: {
Authorization: "Token <your_64_char_api_key>",
Accept: "*/*; version=2",
},
},
);
const data = await response.json();
console.log(data);
<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://<your_app_subdomain>.user.com/api/public/activities/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Token <your_64_char_api_key>",
"Accept: */*; version=2",
],
]);
$response = curl_exec($curl);
curl_close($curl);
echo $response;
import requests
response = requests.get(
"https://<your_app_subdomain>.user.com/api/public/activities/",
headers={
"Authorization": "Token <your_64_char_api_key>",
"Accept": "*/*; version=2",
},
)
print(response.json())
Response examples
- 200 OK
{"count": 6,"next": null,"previous": null,"results": [{"id": 14,"activity_type": 6,"name": "Onboarding call","due_date": "2026-11-10T13:40:17Z","duration": 30,"description": "Walk through the first campaign setup.","assigned_to": null,"deal_id": null,"user_id": 1884,"company_id": null,"done": false,"done_date": null,"created_by": 1,"created_at": "2026-11-09T13:40:18.141486Z","updated_at": "2026-11-09T13:40:18.141509Z","custom_id": null},{"id": 13,"activity_type": 6,"name": "20261109-1438-Onboarding call (rescheduled)","due_date": "2026-11-10T13:38:51Z","duration": 30,"description": "20261109-1438-Walk through the first campaign setup.","assigned_to": null,"deal_id": null,"user_id": null,"company_id": null,"done": true,"done_date": "2026-11-09T13:38:52.995422Z","created_by": 1,"created_at": "2026-11-09T13:38:52.146071Z","updated_at": "2026-11-09T13:38:53.006525Z","custom_id": null},{"id": 12,"activity_type": 6,"name": "20261109-1425-activity-updated","due_date": "2026-11-10T13:25:10Z","duration": 30,"description": "20261109-1425-activity-description","assigned_to": null,"deal_id": null,"user_id": null,"company_id": null,"done": true,"done_date": "2026-11-09T13:25:11.719181Z","created_by": 1,"created_at": "2026-11-09T13:25:10.826505Z","updated_at": "2026-11-09T13:25:11.733775Z","custom_id": null},{"id": 11,"activity_type": 6,"name": "20261109-1424-activity-updated","due_date": "2026-11-10T13:24:10Z","duration": 30,"description": "20261109-1424-activity-description","assigned_to": null,"deal_id": null,"user_id": null,"company_id": null,"done": true,"done_date": "2026-11-09T13:24:11.528310Z","created_by": 1,"created_at": "2026-11-09T13:24:10.674314Z","updated_at": "2026-11-09T13:24:11.539086Z","custom_id": null},{"id": 10,"activity_type": 6,"name": "20261109-1422-activity-updated","due_date": "2026-11-10T13:22:09Z","duration": 30,"description": "20261109-1422-activity-description","assigned_to": null,"deal_id": null,"user_id": null,"company_id": null,"done": true,"done_date": "2026-11-09T13:22:10.188842Z","created_by": 1,"created_at": "2026-11-09T13:22:09.360377Z","updated_at": "2026-11-09T13:22:10.199399Z","custom_id": null},{"id": 9,"activity_type": 6,"name": "20261109-1420-activity-updated","due_date": "2026-11-10T13:20:09Z","duration": 30,"description": "20261109-1420-activity-description","assigned_to": null,"deal_id": null,"user_id": null,"company_id": null,"done": true,"done_date": "2026-11-09T13:20:10.242593Z","created_by": 1,"created_at": "2026-11-09T13:20:09.424192Z","updated_at": "2026-11-09T13:20:10.251373Z","custom_id": null}]}Response fields
Fields returned in the 200 OK response body.
- count
- Number of activities in your app. It can lag behind recent changes; see Response pagination.
- next
- URL of the next page of results. null on the last page.
- previous
- URL of the previous page of results. null on the first page.
- results
- Activities on this page. Each item is an Activity object.
- results[].
id - Unique identifier of the activity, assigned by User.
- results[].
activity_type - ID of the activity type.
- results[].
name - Activity name.
- results[].
due_date - When the activity is due, ISO 8601 (for example
2026-11-21T10:00:00Z). A date in the past is accepted. - results[].
duration - Time needed to complete the activity, in minutes.
- results[].
description - Activity description.
- results[].
assigned_to - ID of the agent the activity is assigned to.
- results[].
deal_id - A unique identifier for the deal which is given by User automatically.
- results[].
user_id - ID of the contact the activity is linked to.
nullwhen there's none, also after the contact is deleted. - results[].
company_id - A unique identifier for the company which is given by User automatically.
- results[].
done - Whether the activity is finished.
- results[].
done_date - When the activity was marked as done: set when
donebecomestrue, cleared when it becomesfalse. Read-only. - results[].
created_by - ID of the agent who created the activity.
- results[].
created_at - Creation date, ISO 8601.
- results[].
updated_at - Date of the last update, ISO 8601.
- results[].
custom_id - Your own identifier of the activity.
- results[].
note
Errors that can come from any endpoint (401, 429, 500, 502, 504) are described in HTTP response codes.