List Activities By Account
curl --request GET \
--url https://api.example.com/activities/by-account/{account_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.example.com/activities/by-account/{account_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.example.com/activities/by-account/{account_id}', 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.example.com/activities/by-account/{account_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/activities/by-account/{account_id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.example.com/activities/by-account/{account_id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/activities/by-account/{account_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body[
{}
]{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Activities
List an Account's Activities
List activities for an account.
Used by the deal “link existing account activity” picker: pass unlinked_only=true to only return activities that don’t already have a deal_id, so the user can attach orphan account activities to this deal.
GET
/
activities
/
by-account
/
{account_id}
List Activities By Account
curl --request GET \
--url https://api.example.com/activities/by-account/{account_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.example.com/activities/by-account/{account_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.example.com/activities/by-account/{account_id}', 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.example.com/activities/by-account/{account_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/activities/by-account/{account_id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.example.com/activities/by-account/{account_id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/activities/by-account/{account_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body[
{}
]{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Lists activities for one account. Pass
unlinked_only=true to only return activities that don’t already have a deal_id — useful for finding account activities that haven’t yet been attached to any deal. Rows are a narrower projection than the other list endpoints — no embeds, no metadata/completed_at/source/direction.
Returns a bare JSON array — no total-count header, no pagination envelope. limit is capped at 500 server-side regardless of what you pass.
Auth
Requires a CRM read scope and an active organization on the token. Any ofcontacts:read, deals:read, companies:read, or activities:read qualifies, as does any *:manage scope — manage implies read.
Response
Array of activity objects, ordered bycreated_at descending:
| Field | Type | Description |
|---|---|---|
id | string (uuid) | Primary key. |
type | string | note, call, meeting, email, task, or a system-generated type. |
subject | string | null | Short headline. |
body | string | null | Free-text content. |
owner_id | string | null | Logto user sub of the owning rep. |
deal_id | string | null (uuid) | Linked deal, if any. |
contact_id | string | null (uuid) | Linked contact, if any. |
created_at | string (timestamptz) | Row creation time. |
due_at | string | null (timestamptz) | Scheduled time, if set. |
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
The account whose activities to list.
Query Parameters
If true, only return activities with no deal_id — orphan account activities available to attach to a deal.
Maximum rows to return; capped at 500 server-side.
Response
Successful Response