---
title: "List automation events"
method: GET
path: "/automations/{id}/events"
tags: ["Automations"]
---

# List automation events

`GET /automations/{id}/events`

## Request

- Base URL: `https://api.omnisocials.com/v1`
- URL: `https://api.omnisocials.com/v1/automations/{id}/events`
- Auth: HTTP bearer

One row per comment or message the automation acted on, newest first: the DM that was sent, an answer that waits in the queue, a skip with its reason, or a failure with the platform's error. `counts` gives the total per outcome. On Facebook `person.username` is the person's name and `kind` is `comment` or `dm`; on X `kind` is always `dm` and `opted_out` rows mark people who replied STOP.

## Path parameters

- `id` string, required

## Query parameters

- `outcome` 'sent' | 'queued' | 'skipped' | 'opted_out' | 'failed' | 'pending'
- `limit` integer
- `offset` integer

## Response `200`

Activity

- object
  - `data` AutomationEvent[]
    - `id` string
    - `automation_id` string
    - `kind` 'comment' | 'dm' | 'story_reply': What the person did.
    - `outcome` 'sent' | 'skipped' | 'failed' | 'pending' | 'queued' | 'opted_out': `queued` = the answer waits for a free slot under the channel's send cap (X 15 per 15 minutes and 450 a day, Instagram and Facebook 180 an hour) and goes out within the hour, else it becomes `skipped` with `rate_limited`. `opted_out` = the person replied STOP on X (no automatic DMs to them from the account again).
    - `reason` string, nullable: For `skipped`: `already_sent`, `limit_reached`, `stopped`, `window_passed` (comment older than 7 days), `rate_limited` (the send cap stayed full for an hour), `cannot_message` (Meta refused the message: a Page made the comment, or the person's settings block messages), `already_replied` (the comment already has a private reply), `dm_window_passed` (their message is older than 24 hours), `dms_closed` (X refused: the person does not accept DMs from the account), `no_credits` (X DMs had no credits for the answer), `opted_out` (the person replied STOP before), `automation_off` (the automation was paused or finished while the answer waited). For `failed`: the platform's error text.
    - `reason_label` string, nullable: The reason in plain words.
    - `person` object
      - `id` string: The id of the person as the account sees it: Instagram-scoped on Instagram, Page-scoped on Facebook.
      - `username` string, nullable: The Instagram @handle, or on Facebook the person's name (Facebook has no handle).
    - `trigger_id` string, nullable: The comment id or message id that started the event.
    - `trigger_text` string, nullable: The comment or message text (300 characters). For `dm` and `story_reply` events it is returned only to a key with the `inbox:read` scope (OAuth: the social inbox permission); otherwise `null`.
    - `message` string, nullable: The DM that was sent.
    - `public_reply` string, nullable: The public reply posted under the comment, when one was.
    - `platform_message_id` string, nullable
    - `created_at` string, date-time
    - `sent_at` string, date-time, nullable
  - `counts` object: Rows per outcome, e.g. `{ "sent": 12, "skipped": 3 }`.
  - `pagination` Pagination
    - `total` integer: Total number of items
    - `limit` integer: Items per page
    - `offset` integer: Number of items skipped
    - `has_more` boolean: Whether there are more items

## Other responses

- `404`: Automation not found

## Changes

- **2026-10-25** `4e6e28d10892`: 2 warning, 2 info
  - added the new `opted_out` enum value to the `data/items/outcome` response property for the response status `200`
  - added the new `queued` enum value to the `data/items/outcome` response property for the response status `200`
  - added the new enum value `opted_out` to the `query` request parameter `outcome`
  - added the new enum value `queued` to the `query` request parameter `outcome`
- **2026-10-11** `b64e4a7a8c4b`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/omnisocials/apis/omnisocials-api/changes/automations/:id/events/get.md)

---

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