Skip to content

Get Activity Stats

GET
/api/canvas/{deal_id}/activity/stats
curl --request GET \
--url https://example.com/api/canvas/example/activity/stats \
--header 'Authorization: Bearer <token>'

Get activity statistics (counts per type) for a deal.

Returns per-type counts without full event payloads. Accepts the same filters as the main activity endpoint.

deal_id
required
Deal Id
string
user_id
User Id
string
section_key
Section Key
string
event_types
Any of:
string

Comma-separated event types to include.

date_from
Any of:
string

ISO 8601 lower bound (inclusive).

date_to
Any of:
string

ISO 8601 upper bound (inclusive).

Successful Response

Media type application/json
Example generated
example

Validation Error

Media type application/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context
object
Example generated
{
"detail": [
{
"loc": [
"example"
],
"msg": "example",
"type": "example",
"input": "example",
"ctx": {}
}
]
}