Skip to main content

API Endpoint: Card Activities

Retrieves activities from Voice cards.

Written by Tristram Jones

A card activity represents an action or event associated with a specific Voice card. Activities track updates made to cards, including comments, workflow changes, labels, attachments, due dates, and team member assignments.

Request

GET {LENS_URL}/api/v2/card-activities

Headers

Include your PAT in the Authorization header of your request.

Header

Description

token

Your Personal Access Token

Query Parameters

Parameter

Description

Required

groupNames

Comma-separated list of entity group names.

No

includeArchived

Include activities associated with archived Voice cards in response data.

No

days

Filter response data to activities from Voice cards created within the specified number of days prior to the current date. Accepted values range from 1 to 365, default is 7.

No

Response

Field

Description

Required

_id

The activity’s unique ID.

Yes

createdAt

Date and time the activity occurred.

Yes

activityType

Type of activity performed on the card, options include: createCard, moveCard, addComment, setCardWorkflowState, removeCardWorkflowState, addLabel, removeLabel, joinMember, unjoinMember, addAttachment, removeAttachment, addDueDate, removeDueDate, and addCompletedDate.

Yes

userId

Associated user _id who performed the activity.

No

workflowStateId

Associated workflow state _id.

No

workflowStateTimestamp

Date and time the workflow state was applied.

No

labelId

Associated label _id related to the activity.

No

commentId

Associated comment _id related to the activity.

No

cardId

Associated card _id where the activity occurred.

Yes

Example Request

GET https://example.safeandreliable.care/api/v2/cardActivities?groupNames=west-er

Example Response

{
"data": [
{
"_id": "p2QKrCudjA6PzBEjs",
"createdAt": "2026-05-01T15:22:11.000Z",
"activityType": "createCard",
"userId": "Swd3cQRNpZCF4LzuX",
"workflowStateId": null,
"workflowStateTimestamp": null,
"labelId": null,
"commentId": null,
"cardId": "iNmE12kKNa8iY9KRw"
},
{
"_id": "Tt8qQKyg32txRNe9v",
"createdAt": "2026-05-02T09:45:30.000Z",
"activityType": "addComment",
"userId": "DbDdNvwitg7vvNHR3",
"workflowStateId": null,
"workflowStateTimestamp": null,
"labelId": null,
"commentId": "Ag40vD4r69YzkhYpc9",
"cardId": "iNmE12kKNa8iY9KRw"
},
{
"_id": "9AwKsygFLCDFiKrDd",
"createdAt": "2026-05-03T11:10:05.000Z",
"activityType": "setCardWorkflowState",
"userId": "DbDdNvwitg7vvNHR3",
"workflowStateId": "601c293d25cad9abc2076123",
"workflowStateTimestamp": "2026-05-03T11:10:05.000Z",
"labelId": null,
"commentId": null,
"cardId": "iNmE12kKNa8iY9KRw"
}
],
"metadata": {
"endpoint": "cardActivities",
"count": 3,
"filters": {
"groupNames": [
"west-er"
]
}
}
}


Looking for more support?

We’re here to help — email us at LENSsupport@safeandreliablecare.com or click the Help button on your LENS board.

Did this answer your question?