---
title: "[legacy] Fetches safety activity event feed"
method: GET
path: "/fleet/safety-events/audit-logs/feed"
tags: ["Legacy APIs"]
---

# \[legacy\] Fetches safety activity event feed

`GET /fleet/safety-events/audit-logs/feed`

## Request

- Base URL: `https://api.samsara.com`
- URL: `https://api.samsara.com/fleet/safety-events/audit-logs/feed`
- Auth: HTTP bearer

**Note: This is a legacy endpoint, consider using [this endpoint](https://developers.samsara.com/reference/getsafetyeventsv2stream) instead. The endpoint will continue to function as documented.**

Get continuous safety events. The safety activity event feed offers a change-log for safety events. Use this endpoint to subscribe to safety event changes. See documentation below for all supported change-log types.

| ActivityType      | Description |
| ----------- | ----------- |
| CreateSafetyEventActivityType | a new safety event is processed by Samsara      |
| BehaviorLabelActivityType     | a label is added or removed from a safety event |
| CoachingStateActivityType     | a safety event coaching state is updated        |

 <b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href="https://developers.samsara.com/docs/rate-limits" target="_blank">here</a>).

To use this endpoint, select **Read Safety Events & Scores** under the Safety & Cameras category when creating or editing an API token. <a href="https://developers.samsara.com/docs/authentication#scopes-for-api-tokens" target="_blank">Learn More.</a>
 

 **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href="https://forms.gle/zkD4NCH7HjKb7mm69" target="_blank">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href="https://www.samsara.com/help" target="_blank">submit a case</a> to our support team.

## Query parameters

- `after` string
- `startTime` string

## Response `200`

OK response.

- SafetyEventsGetSafetyActivityEventFeedResponseBody
  - `data` SafetyEventActivityFeedItemResponseBody[], required: Paginated safety event activity feed limited to 10 events.
    - `id` string, required: The ID of the activity event feed line item.
    - `safetyEvent` SafetyEventObjectResponseBody, required: The safety event that was updated.
      - `behaviorLabels` SafetyEventBehaviorLabelsResponseBody[]: Behavior labels for a safety event.
        - `name` string: Name of the behavior label.
        - `type` 'Acceleration' | 'Braking' | 'Crash' | 'DefensiveDriving' | 'DidNotYield' | 'Drinking' | 'Drowsy' | 'Eating' | 'EatingDrinking' | 'EdgeDistractedDriving' | 'EdgeRailroadCrossingViolation' | 'FollowingDistance' | 'FollowingDistanceModerate' | 'FollowingDistanceSevere' | 'ForwardCollisionWarning' | 'GenericDistraction' | 'GenericTailgating' | 'HarshImpact' | 'HarshTurn' | 'HighSpeedSuddenDisconnect' | 'ImproperEgress' | 'Invalid' | 'LaneDeparture' | 'LateResponse' | 'MobileUsage' | 'NearCollison' | 'NoSeatbelt' | 'ObstructedCamera' | 'OperationalEvent' | 'Passenger' | 'PolicyViolationMask' | 'ProtectiveEquipment' | 'ProximityWarning' | 'RanRedLight' | 'RearCollisionWarning' | 'RollingStop' | 'RolloverProtection' | 'Smoking' | 'Speeding' | 'VehicleInBlindSpotWarning' | 'VulnerableRoadUserCollisionWarning' | 'YawControl': Type of the BehaviorLabel. Valid values: `Acceleration`, `Braking`, `Crash`, `DefensiveDriving`, `DidNotYield`, `Drinking`, `Drowsy`, `Eating`, `EatingDrinking`, `EdgeDistractedDriving`, `EdgeRailroadCrossingViolation`, `FollowingDistance`, `FollowingDistanceModerate`, `FollowingDistanceSevere`, `ForwardCollisionWarning`, `GenericDistraction`, `GenericTailgating`, `HarshImpact`, `HarshTurn`, `HighSpeedSuddenDisconnect`, `ImproperEgress`, `Invalid`, `LaneDeparture`, `LateResponse`, `MobileUsage`, `NearCollison`, `NoSeatbelt`, `ObstructedCamera`, `OperationalEvent`, `Passenger`, `PolicyViolationMask`, `ProtectiveEquipment`, `ProximityWarning`, `RanRedLight`, `RearCollisionWarning`, `RollingStop`, `RolloverProtection`, `Smoking`, `Speeding`, `VehicleInBlindSpotWarning`, `VulnerableRoadUserCollisionWarning`, `YawControl`
      - `driver` SafetyEventDriverObjectResponseBody: A minified driver object.
        - `id` string: ID of the driver.
      - `id` string: The unique Samsara ID of the safety event.
      - `time` string: The time the safety event occurred in RFC 3339 milliseconds format.
      - `uuid` string: The unique Samsara ID (uuid) of the safety event.
      - `vehicle` SafetyEventVehicleObjectResponseBody: A minified vehicle object.
        - `id` string: ID of the vehicle.
    - `time` string, required: The time the activity occurred in the corresponding safety event in RFC 3339 milliseconds format.
    - `type` 'BehaviorLabelActivityType' | 'CoachingStateActivityType' | 'CreateSafetyEventActivityType', required: The type of activity that occurred in the safety event. We currently only support CoachingStateActivityType, BehaviorLabelActivityType, and CreateSafetyEventActivityType, but we may add support for more activity types in the future. Valid values: `BehaviorLabelActivityType`, `CoachingStateActivityType`, `CreateSafetyEventActivityType`
  - `pagination` GoaPaginationResponseResponseBody, required: Pagination parameters.
    - `endCursor` string, required: Cursor identifier representing the last element in the response. This value should be used in conjunction with a subsequent request's 'after' query parameter. This may be an empty string if there are no more pages left to view.
    - `hasNextPage` boolean, required: True if there are more pages of results immediately available after this endCursor.

## Other responses

- `401`: Unauthorized response.
- `404`: Not Found response.
- `405`: Method Not Allowed response.
- `413`: Content Too Large response.
- `429`: Too Many Requests response.
- `500`: Internal Server Error response.
- `501`: Not Implemented response.
- `502`: Bad Gateway response.
- `503`: Service Unavailable response.
- `504`: Gateway Timeout response.
- `default`: Bad Request response.

---

[API](https://skmtc.dev/samsara/apis/samsara-api.md) - [All operations](https://skmtc.dev/samsara/apis/samsara-api/llms.txt) - [OpenAPI document](https://skmtc.dev/samsara/apis/samsara-api/revisions/a9e35d4999be?raw)
