# Activity

The activity log records the events of a license. Each record is an event, and each event belongs to one license.

The log records refused calls as well as successful calls. A refused call shows the reason for the refusal.

## Event properties

| Property | Description |
| --- | --- |
| Action | The call that the event records, such as a claim or a download. See [Recorded actions](#recorded-actions). |
| Outcome | Succeeded or refused. |
| Reason | The reason for a refusal, such as `device_limit_reached`. Your application got the same reason in the response. A successful call has no reason. |
| License | The license that the call used. |
| Device | The device that made the call. An event has a device only when the device holds a binding on the license. For example, a refused claim has no device. |
| Customer | The customer who holds the seat. An event has a customer only when the policy binds customers. |
| Publishable key | The [publishable key](../products/#publishable-keys) that your application sent. Only License API calls have a publishable key. |
| Time | The time when Seatify recorded the event. |

## Recorded actions

| Kind | Actions |
| --- | --- |
| License API calls | [Claim](../../license-api/licenses/claim/), [validate](../../license-api/licenses/validate/), [heartbeat](../../license-api/licenses/heartbeat/), [release](../../license-api/licenses/release/), [check-out](../../license-api/licenses/check-out/), [spawn](../../license-api/processes/spawn/), [process heartbeat](../../license-api/processes/heartbeat/) and [exit](../../license-api/processes/exit/). |
| Distribution API calls | [Download](../../distribution-api/download-an-artifact/) and [update check](../../distribution-api/check-for-an-update/). |
| Changes to the license | Create, bind, suspend, reinstate and lease end. |

- A successful process heartbeat is not recorded. A refused process heartbeat is recorded.
- A [stable download link](../../distribution-api/stable-download-link/) is recorded as a download.
- A bind is a claim that is made for the device, not by the application. Only a successful creation, bind, suspension or reinstatement is recorded.
- A lease end is recorded when the lease of a device ends. The event has the reason `heartbeat_lapsed`, and its outcome is succeeded. See [Heartbeats and leases](../seats-and-devices/#heartbeats-and-leases).
- Distribution API events have no device and no publishable key.
- A creation event has no device and no publishable key.

## Calls that are not recorded

An event needs a license. These calls are not recorded:

- A call with an unknown license key. The API answers it with `license_not_found`.
- A Distribution API call without a license key, on an `open` product.
- A request that fails authentication or goes over a rate limit.
- A download of a release or an artifact that does not exist or that the license cannot see. A draft release counts as a release that does not exist. The exception is a release outside the window of an expired license. That refusal is recorded with `release_not_covered`.
- The end of a process lease. See [Leases](../concurrent-runs/#leases).

## A key of another product

If your application sends a license key of another product, the call fails with `product_mismatch`. Seatify records the refusal on the license of that key. The event names the publishable key that your application sent. Use this event to find a build that ships with the wrong publishable key.

## Retention and deletion

- Seatify keeps events for the activity log retention of your plan. Older events are deleted. See [Activity log retention](../plans-and-limits/#activity-log-retention).
- An event cannot be changed.
- Deleting a license deletes its events too.
- Deleting a device, a customer or a publishable key keeps the events. The events then have no device, customer or publishable key.

## Related pages

- [Seats and devices](../seats-and-devices/) describes claims, releases and device leases.
- [Concurrent runs](../concurrent-runs/) describes spawn, process heartbeat and exit.
- [Products](../products/#publishable-keys) describes publishable keys.

