# Search events

### Search events

`POST /api/v1/events/search`

Operation ID: `searchEvents`

**Request body** (required)

- `types` (string[], optional)
- `channel` ("linkedin" | "instagram", optional)
- `campaignId` (string · uuid, optional)
- `leadId` (string · uuid, optional)
- `enrollmentId` (string · uuid, optional): Only events recorded for this campaign enrollment.
- `accountId` (string · uuid, optional)
- `actorUserId` (string · uuid, optional): Only events caused by this member: what they sent, approved or stopped, and what campaigns they started sent.
- `from` (string · date, optional)
- `to` (string · date, optional)
- `cursor` (string, optional)
- `limit` (integer, optional)

**200**: A page of events, newest first. Filter by campaign, lead, enrollment, account, member, type, channel, or date. Pass nextCursor as cursor for the next page.

- `events` (object[], required)
- `nextCursor` (string | null, required)
- `requestId` (string · uuid, required): Id of this request, for support and troubleshooting

**Errors**

- `400`: Bad request
- `401`: Unauthorized: missing or invalid API key
- `403`: Forbidden
- `404`: Not found
- `422`: Invalid request payload
