Skip to content

Retrieve a Single Activity

Terminal window
https://mapi.storyblok.com/v1/spaces/:space_id/activities/:activity_id

Returns a single activity object with a specific numeric ID. Every response contains two extra keys, one called trackable, that contains data about the changed object and the other called user that contains the user information.

  • :space_id required number

    Numeric ID of a space

  • :activity_id required number

    Numeric activity id

  • activity The Activity Object
  • trackable object
  • user object

    The user object

    Show child properties
    • id number

      The numeric user ID

    • userid string

      User ID of collaborator

    • friendly_name string

      Friendly name of collaborator

    • active boolean

      True if the user is active

Example Request

curl "https://mapi.storyblok.com/v1/spaces/606/activities/1234312323" \
-H "Authorization: YOUR_OAUTH_TOKEN"
Response Example
{
"activity": {
"id": 1234312323,
"trackable_id": 162372,
"trackable_type": "Comment",
"owner_id": 123123,
"owner_type": "User",
"key": "comment.create",
"parameters": "{}",
"recipient_id": null,
"recipient_type": null,
"created_at": "2024-05-22T11:12:52.510Z",
"updated_at": "2024-05-22T11:12:52.510Z",
"space_id": 123431
},
"trackable": {},
"user": {
"id": 123123,
"userid": "chakit",
"friendly_name": "Chakit Arora",
"active": true
}
}