List activity stream for entity
const url = 'https://api.wink.travel/api/activity-stream/f4d1c8e5-2b9a-4f3d-9e7c-1b6a5d3f8c92/list';const options = { method: 'GET', headers: {'Wink-Version': '2.0', Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.wink.travel/api/activity-stream/f4d1c8e5-2b9a-4f3d-9e7c-1b6a5d3f8c92/list \ --header 'Authorization: Bearer <token>' \ --header 'Wink-Version: 2.0'Retrieve a chronological list of activity events recorded against a given entity, filtered to the caller’s access level (EVERYONE, AUTHENTICATED, or ADMIN).
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”UUID of entity (booking, property, etc.) to retrieve stream for
Example
f4d1c8e5-2b9a-4f3d-9e7c-1b6a5d3f8c92Header Parameters
Section titled “Header Parameters ”Responses
Section titled “ Responses ”Activity stream entries successfully retrieved.
object
Document UUID
Datetime this record was first created
Datetime this record was last updated
Version property that shows how many times this document has been persisted. Document will not persist if the version property is less than current version property in the system. Result in an optimistic locking exception.
Who can view this stream? Determines visibility level for activity entries.
Unique identifier of the entity (booking, property, etc.) this activity is recorded against.
Optional emotional sentiment or reaction emoji to accompany the activity (e.g., fire, heart, thumbs-up). Interpretation is client-side.
Optional text comment from the user who created this activity. Used when manually recording events. Either comment or i18nKey must be provided.
Localized i18n message key to generate text on the front-end. Used for system-generated activities. Either comment or i18nKey must be provided.
Optional document attachment ID (e.g., Cloudinary asset ID) for files uploaded with the activity.
Optional user profile information of the person who created this activity, if available in the request context.
object
User ID of authenticated person that created the stream.
Full name of user.
Optional URL of user’s profile picture.
Example
Invalid entity identifier format.
object
object
Example generated
{ "type": "https://example.com", "title": "example", "status": 1, "detail": "example", "instance": "https://example.com", "properties": { "additionalProperty": "example" }}object
object
object
object
object
object
object
object
Caller is not authenticated.
object
object
Forbidden
object
object
Entity not found or has no activity stream.
object
Document UUID
Datetime this record was first created
Datetime this record was last updated
Version property that shows how many times this document has been persisted. Document will not persist if the version property is less than current version property in the system. Result in an optimistic locking exception.
Who can view this stream? Determines visibility level for activity entries.
Unique identifier of the entity (booking, property, etc.) this activity is recorded against.
Optional emotional sentiment or reaction emoji to accompany the activity (e.g., fire, heart, thumbs-up). Interpretation is client-side.
Optional text comment from the user who created this activity. Used when manually recording events. Either comment or i18nKey must be provided.
Localized i18n message key to generate text on the front-end. Used for system-generated activities. Either comment or i18nKey must be provided.
Optional document attachment ID (e.g., Cloudinary asset ID) for files uploaded with the activity.
Optional user profile information of the person who created this activity, if available in the request context.
object
User ID of authenticated person that created the stream.
Full name of user.
Optional URL of user’s profile picture.
Example
[ { "id": "", "createdDate": "", "lastUpdate": "", "version": "", "acl": "EVERYONE", "entityIdentifier": "", "emotion": "", "comment": "", "i18nKey": "", "attachmentId": "", "user": "" }]Internal Server Error
object
Example generated
{}