Path Parameters
The unique identifier of the content session to end.
Response
Returns the updated content session object with the following changes:
completed set to true
completedAt set to the current timestamp
lastActivityAt updated to the current timestamp
# End a content session
curl https://api.usertour.io/v1/content-sessions/cmaavyi16003twg0bgimbcdnr/end \
-X POST \
-H 'Authorization: Bearer ak_123456789' \
-H 'Content-Type: application/json'
{
"id": "cmaavyi16003twg0bgimbcdnr",
"object": "contentSession",
"answers": null,
"completedAt": "2025-05-05T09:36:13.016Z",
"completed": true,
"contentId": "cm9f6vwed0002iejc4vg2zu3t",
"content": null,
"createdAt": "2025-05-05T09:36:13.002Z",
"companyId": "group-1746437717425",
"company": null,
"isPreview": false,
"lastActivityAt": "2025-05-05T09:36:13.016Z",
"progress": 11,
"userId": "user-1746437717384",
"user": null,
"versionId": "cm9mjsv7d001bvfe8qe8tgzv9",
"version": null
}