| Endpoint | Method | Admin Required |
|---|---|---|
/api/v1/buckets/:bucketName/notifications | GET | No |
Returns the webhook notification rules configured for a bucket you own. Alarik POSTs an S3-compatible event message to each enabled rule's URL when a matching object is created or removed. See Webhooks for the payload format and delivery semantics.
{
"rules": [
{
"id": "6ff08747-4ec0-48fd-a0b1-f5adda6d3161",
"url": "https://example.com/webhook",
"events": ["s3:ObjectCreated:*", "s3:ObjectRemoved:Delete"],
"prefix": "uploads/",
"suffix": ".jpg",
"enabled": true
}
]
}
The secret is never returned - it is write-only, like a password.
| Status | Reason |
|---|---|
400 | Missing bucket name |
404 | Bucket not found (or not owned by you) |