People & IdentityRetrieve a person's activity

Retrieve a person's activity

Recent events for a person within a look-back window. personId is resolved through the identity graph, so any linked identity value returns the same activity.

Each row carries a uuid (the source event's id). To show whether an event was forwarded to a destination, pass a page of these uuids as a comma-separated event_uuid list to GET /client/v1/destinations/deliveries (status per destination), and drill into GET /client/v1/destinations/{id}/deliveries/{eventUuid} for the sent request and destination response bodies.

curl -X GET "https://mythic-analytics.gulp.workers.dev/client/v1/data/people/8f3c1e00-4a2b-4c9d-9e11-1a2b3c4d5e6f/activity?location_id=acme-retail&hours_back=720&limit=100&event_type=example_string&exclude_event_type=example_string" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -H "Authorization: Bearer YOUR_API_TOKEN"
{
  "success": true,
  "data": [
    {}
  ],
  "rows": 12
}
GET
/people/{personId}/activity
GET
Base URLstring

Target server for requests. Edit to use your own host.

Bearer Token
Bearer Tokenstring
Required

Agency key as bearer token. Format: Bearer ak_.... Must name a location via the location_id query parameter or X-Location-Id header. Scoped keys (mcp_) are accepted too and need people:read. See Using an mcp_ key over HTTP.

Agency key as bearer token. Format: Bearer ak_.... Must name a location via the location_id query parameter or X-Location-Id header. Scoped keys (mcp_) are accepted too and need people:read. See Using an mcp_ key over HTTP.
Bearer Token
Bearer Tokenstring
Required

Location secret key as bearer token. Format: Bearer sk_.... Resolves its own location — no location_id needed.

Location secret key as bearer token. Format: Bearer sk_.... Resolves its own location — no location_id needed.
path
personIdstring
Required

Canonical person id, or any raw identity value linked to the person (anonymous id, device id, email, or user id).

query
location_idstring

Required for agency (ak_) keys. Ignored for secret (sk_) keys, which resolve their own location. May also be supplied via the X-Location-Id header.

query
hours_backinteger

Look-back window in hours. Default 720 (30 days); max 43800 (5 years — effectively full history, since raw events are retained indefinitely). A person's first_seen_at can predate the default window — raise hours_back to retrieve their full stream.

Min: 1 • Max: 43800
query
limitinteger

Maximum events to return. Default 100, min 1, max 1000.

Min: 1 • Max: 1000
query
event_typestring

Restrict to these event types (comma-separated allow-list, e.g. $pageview,$identify).

query
exclude_event_typestring

Omit these event types (comma-separated deny-list). Applied before the limit, so high-volume telemetry like $replay_summary (which fires ~once per minute per recorded session) cannot push a visitor's real events past the row cap. e.g. exclude_event_type=$replay_summary.

Request Preview
Response

Response will appear here after sending the request

Authentication

header
Authorizationstring
Required

Bearer token. Agency key as bearer token. Format: Bearer ak_.... Must name a location via the location_id query parameter or X-Location-Id header. Scoped keys (mcp_) are accepted too and need people:read. See Using an mcp_ key over HTTP.

header
Authorizationstring
Required

Bearer token. Location secret key as bearer token. Format: Bearer sk_.... Resolves its own location — no location_id needed.

Path Parameters

personIdstring
Required

Canonical person id, or any raw identity value linked to the person (anonymous id, device id, email, or user id).

Example:
8f3c1e00-4a2b-4c9d-9e11-1a2b3c4d5e6f

Query Parameters

location_idstring

Required for agency (ak_) keys. Ignored for secret (sk_) keys, which resolve their own location. May also be supplied via the X-Location-Id header.

Example:
acme-retail
hours_backinteger

Look-back window in hours. Default 720 (30 days); max 43800 (5 years — effectively full history, since raw events are retained indefinitely). A person's first_seen_at can predate the default window — raise hours_back to retrieve their full stream.

limitinteger

Maximum events to return. Default 100, min 1, max 1000.

event_typestring

Restrict to these event types (comma-separated allow-list, e.g. $pageview,$identify).

exclude_event_typestring

Omit these event types (comma-separated deny-list). Applied before the limit, so high-volume telemetry like $replay_summary (which fires ~once per minute per recorded session) cannot push a visitor's real events past the row cap. e.g. exclude_event_type=$replay_summary.

Responses

successboolean
dataobject[]
rowsinteger

Number of rows returned.