Get Activity
curl --request GET \
--url https://api.example.com/activities/{activity_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.example.com/activities/{activity_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/{activity_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/{activity_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/{activity_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/{activity_id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/activities/{activity_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
Get an Activity
Fetch a single activity (any type) with embedded account/deal/contact details.
GET
/
activities
/
{activity_id}
Get Activity
curl --request GET \
--url https://api.example.com/activities/{activity_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.example.com/activities/{activity_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/{activity_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/{activity_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/{activity_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/{activity_id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/activities/{activity_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>"
}
]
}Fetches a single activity of any type with embedded account/deal/contact details. Same shape as List Activities / List Meetings, plus one extra column this endpoint alone includes.
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
| 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. |
due_at | string | null (timestamptz) | Scheduled time. |
completed_at | string | null (timestamptz) | When the activity was marked done, if applicable. |
duration_minutes | integer | null | Meeting length; usually null for non-meeting types. |
metadata | object | null (jsonb) | Free-form; only meaningfully populated for meetings. See the List Meetings response for what manual vs. synced sources write into it. |
account_id | string | null (uuid) | Linked account. |
deal_id | string | null (uuid) | Linked deal. |
contact_id | string | null (uuid) | Linked contact. |
owner_id | string | null | Logto user sub of the owning rep. |
source | string | manual, import, or a sync source (calendar, gmail, outlook, slack, teams). |
direction | string | null | inbound | outbound, where applicable. |
created_at | string (timestamptz) | Row creation time. |
external_id | string | null | Provider-assigned id for synced rows (paired with source under a uniqueness constraint, used for dedup on re-sync). null for manually created activities. |
accounts | object | null | Embedded: { id, name, domain }. null if account_id is unset. |
deals | object | null | Embedded: { id, name, stage_id }. null if deal_id is unset. |
contacts | object | null | Embedded: { id, first_name, last_name, email }. null if contact_id is unset. |
Errors
| Status | Cause |
|---|---|
404 Not Found | Activity doesn’t exist in this org. |
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
The activity's id to fetch.
Response
Successful Response
The response is of type Response Get Activity Activities Activity Id Get · object.
⌘I