# GET /services/{name}/events

First published 14 Oct 2026 (release 0.2.0) · Unchanged since publication

UrbeStack release 0.2.35 API operation in the services group.

List events for a daemon

- Who may call it: administrator
- Token scope, any of: settings, read, all
- Answers: 200 OK

The response includes the daemon name and up to 200 events, newest first. Events record what the monitor found, what actions the monitor or web interface took, and the outcomes.

The default lookback is 30 days. Set days to a value from 1 to 90 to change it. Invalid name syntax or an invalid days value returns HTTP 400. An unknown daemon returns HTTP 404.

## Parameters

- `name` (path, string, matching ^[a-z][a-z0-9.-]{0,39}$, required): UrbeStack daemon name returned by GET /services, such as postfix, php-8.3, panel-web, or mariadb.
- `days` (query, integer, 1 to 90)

## Example

Set $API to the base URL and $TOKEN to the token, as the [API overview](https://urbestack.com/docs/api.md) shows.

```
curl -sS -X GET "$API/services/alice/events?days=1" \
  -H "Authorization: Bearer $TOKEN"
```

Response, 200 OK:

```
{
  "events": [
    {
      "action": "text",
      "actor": "text",
      "at": "text",
      "found": "text",
      "id": 1,
      "mailed": true,
      "result": "text",
      "words": "text"
    }
  ],
  "name": "alice"
}
```

## Errors

- 400: A daemon is named with letters, digits, dots and hyphens
- 400: days is 1 to 90
- 401: Authentication required
- 404: No daemon named <name>
