Who changed what in the workspace, newest first
GET
/api/v1/workspaces/{workspaceId}/activity
const url = 'https://api.crossmart.io/api/v1/workspaces/example/activity?action=product_created&outcome=SUCCEEDED&direction=desc&limit=25&subjectType=product';const options = {method: 'GET'};
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.crossmart.io/api/v1/workspaces/example/activity?action=product_created&outcome=SUCCEEDED&direction=desc&limit=25&subjectType=product'Includes operations that failed, such as an import that created nothing.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”workspaceId
required
string
Query Parameters
Section titled “Query Parameters”action
string
outcome
string
FAILED lists only what went wrong
direction
string
cursor
string format: uuid
nextCursor from the previous page
page
number
1-based page number, for tables with page numbers. It wins over cursor.
limit
number
subjectType
string
subjectId
string format: uuid
Events about this record, including bulk actions that touched it
actorUserId
string format: uuid
Only what this user did
actorApiKeyId
string format: uuid
Only what this API key did
Responses
Section titled “Responses”Media typeapplication/json
object
items
required
Array<object>
object
id
required
string format: uuid
action
required
string
outcome
required
string
summary
required
string
actor
required
object
type
required
string
userId
required
string format: uuid
apiKeyId
required
string format: uuid
name
required
User or API key name; null for system actions and deleted users or keys
string
email
required
Set for users only
string
subject
required
object
type
required
string
id
required
string format: uuid
label
required
The name when the event happened
string
itemCount
required
Items the action covered, such as products changed in bulk
number
failureReason
required
Why a failed action failed
string
createdAt
required
string format: date-time
nextCursor
required
Null on the last page
string
total
required
How many match in all, for page numbers
number
Example
{ "items": [ { "action": "product_created", "outcome": "SUCCEEDED", "summary": "Updated product “Linen Shirt”", "actor": { "type": "USER" }, "subject": { "type": "product" } } ]}