> ## Documentation Index
> Fetch the complete documentation index at: https://docs.xenia.team/llms.txt
> Use this file to discover all available pages before exploring further.

# List Announcements

> List announcements, with filters for status and the date they were created.

Returns announcements, newest first. With `status=active`, pinned announcements come first.

> [!NOTE]
>
> Announcements must be on your workspace's plan. Otherwise every Announcements endpoint returns `403` with "Workspace doesn't have "Announcements" feature activated."

## Permissions

The key acts as its default user, or the user in the `x-client-user` header (who must be in the workspace). That user's role permissions apply.

* **Manage All Announcements** or **View All Announcements**: every announcement in the workspace
* **Create & Manage Own Announcements** only: announcements the user created

In a franchisee workspace, users with Manage All or View All Announcements also see the announcements the brand has sent to it.

## Path parameters

**workspaceId** `string\<uuid\>` *required*

UUID of the workspace. Must be the workspace your API key is bound to.

## Query parameters

All optional, combined with AND. Any other parameter is refused.

**status** `string`

`draft`, `scheduled`, `active` (sent and not expired), or `past` (expired). Leave it out for all of them. To get every sent announcement, call once with `active` and once with `past`.

**dateFrom** `string\<date\>`

Only announcements created on or after this day (UTC), such as `2026-11-01`.

**dateTo** `string\<date\>`

Only announcements created on or before this day (UTC), such as `2026-11-30`.

**limit** `integer` (default: 50)

1 to 100.

**offset** `integer` (default: 0)

How many announcements to skip.

## Pagination

`count` is the total number of announcements that match. Add `limit` to `offset` to get the next page, until `offset` reaches `count`.

## Response

Returns `200` with `{ "data": { "announcements": [<announcement>, …], "count", "limit", "offset" } }`.

Each announcement has the fields of [Get Announcement](https://docs.xenia.team/api-reference/endpoints/announcements/get-announcement.md) up to `acknowledgedCount`: `id`, `title`, `status`, `pinned`, `sendAt`, `publishedNow`, `expiresAt`, `createdAt`, `createdBy`, `requireAcknowledgement`, `recipientCount`, `openedCount`, and `acknowledgedCount`. Get the announcement for its content, attachments, and audience.

## Errors

Errors return the message at `error.message`.

| Status | When |
| - | - |
| `401` | Invalid client credentials |
| `403` | Announcements isn't on the workspace's plan |
| `403` | The user doesn't have any of the permissions above |
| `422` | A bad parameter. The message names it, such as ""limit" must be less than or equal to 100" or ""locationId" is not allowed" |

```bash cURL theme={null}
curl "https://api.xenia.team/api/v1/ops/workspaces/{workspaceId}/announcements?status=active&dateFrom=2026-11-01&limit=50" \
  -H "x-client-key: YOUR_CLIENT_KEY" \
  -H "x-client-secret: YOUR_CLIENT_SECRET"
```

```json 200 theme={null}
{
  "data": {
    "announcements": [
      {
        "id": "6a1f…",
        "title": "Holiday hours",
        "status": "active",
        "pinned": true,
        "sendAt": "2026-12-01T15:00:00.000Z",
        "publishedNow": true,
        "expiresAt": "2026-12-08T15:00:00.000Z",
        "createdAt": "2026-12-01T14:58:12.401Z",
        "createdBy": { "id": "9d03…", "firstName": "Alex", "lastName": "Kim" },
        "requireAcknowledgement": true,
        "recipientCount": 48,
        "openedCount": 31,
        "acknowledgedCount": 22
      }
    ],
    "count": 1,
    "limit": 50,
    "offset": 0
  }
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.