List Activity

Use this API call to fetch a list of recent activity on a given hub.

Returns

Returns an hub resource, otherwise returns an Error.

GET /v1/hub/current

Example Request
$ curl https://api.cycle.io/v1/hubs/current/activity \
-H
"Authorization: Bearer API_KEY"
\
-H
"X-HUB-ID: HUB_ID"
Example Response
{
"data": [
{
"id": "5ecfe8955e41120001fdaaaa",
"hub_id": "5a14ddd8b6393d000bcabcad",
"user": {
"id": "5bac2478b6393d0001f21eea",
"type": "account"
},
"verbosity": 1,
"context": {
"stack_id": "5cc78a084146380001c52222"
},
"session": {
"url": "/v1/stacks/5cc78a084146380001c22222/builds/5ebb339e91238b0001a32132?",
"ip": "147.75.69.205",
"token": {
"application_id": "5e425b30320ac400012111231",
"application_capabilities_version": 1
},
"api_key": null
},
"changes": [],
"annotations": {},
"error": null,
"component": {
"type": "stack.build",
"id": "5ebb339e91238b0001a43211"
},
"status": "request",
"event": "stack.build.task.delete",
"time": "2020-05-28T16:36:37.641Z"
}
]
}