Activity
For instructions on how to authenticate to use this endpoint, see API overview.
Endpoints
List all activity log
Required API key scopes
activity_log:read
Path parameters
- project_idstring
Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.
Query parameters
- cursorstring
The pagination cursor value.
Response
Request
GET
/api /projects /:project_id /activity_log
export POSTHOG_PERSONAL_API_KEY=[your personal api key]curl \-H "Authorization: Bearer $POSTHOG_PERSONAL_API_KEY" \https://app.posthog.com/api/projects/:project_id/activity_log/
Response
Status 200
RESPONSE
{"next": "string","previous": "string","results": [{"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08","user": {"id": 0,"uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f","distinct_id": "string","first_name": "string","last_name": "string","email": "user@example.com","is_email_verified": true},"unread": true,"organization_id": "7c60d51f-b44e-4682-87d6-449835ea4de6","was_impersonated": true,"is_system": true,"activity": "string","item_id": "string","scope": "string","detail": null,"created_at": "2019-08-24T14:15:22Z"}]}
Create activity log bookmark activity notification
Path parameters
- project_idstring
Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.
Request parameters
- user
- organization_idstring
- was_impersonatedboolean
- is_systemboolean
- activitystring
- item_idstring
- scopestring
- detail
- created_atstring
Response
Request
POST
/api /projects /:project_id /activity_log /bookmark_activity_notification
export POSTHOG_PERSONAL_API_KEY=[your personal api key]curl-H 'Content-Type: application/json'\-H "Authorization: Bearer $POSTHOG_PERSONAL_API_KEY" \https://app.posthog.com/api/projects/:project_id/activity_log/bookmark_activity_notification/\-d user=undefined,\-d activity="string",\-d scope="string"
Response
Status 200
RESPONSE
{"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08","user": {"id": 0,"uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f","distinct_id": "string","first_name": "string","last_name": "string","email": "user@example.com","is_email_verified": true},"unread": true,"organization_id": "7c60d51f-b44e-4682-87d6-449835ea4de6","was_impersonated": true,"is_system": true,"activity": "string","item_id": "string","scope": "string","detail": null,"created_at": "2019-08-24T14:15:22Z"}
Retrieve activity log important changes
Path parameters
- project_idstring
Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.
Response
Request
GET
/api /projects /:project_id /activity_log /important_changes
export POSTHOG_PERSONAL_API_KEY=[your personal api key]curl \-H "Authorization: Bearer $POSTHOG_PERSONAL_API_KEY" \https://app.posthog.com/api/projects/:project_id/activity_log/important_changes/
Response
Status 200
RESPONSE
{"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08","user": {"id": 0,"uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f","distinct_id": "string","first_name": "string","last_name": "string","email": "user@example.com","is_email_verified": true},"unread": true,"organization_id": "7c60d51f-b44e-4682-87d6-449835ea4de6","was_impersonated": true,"is_system": true,"activity": "string","item_id": "string","scope": "string","detail": null,"created_at": "2019-08-24T14:15:22Z"}