curl --request POST \
--url http://localhost:8080/minio-events \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"EventName": "s3:ObjectCreated:Put",
"Key": "datris/incoming/stock-prices.csv",
"Records": [
{
"eventName": "<string>",
"s3": {
"bucket": {
"name": "<string>"
},
"object": {
"key": "<string>",
"size": 123
}
}
}
]
}
'import requests
url = "http://localhost:8080/minio-events"
payload = {
"EventName": "s3:ObjectCreated:Put",
"Key": "datris/incoming/stock-prices.csv",
"Records": [
{
"eventName": "<string>",
"s3": {
"bucket": { "name": "<string>" },
"object": {
"key": "<string>",
"size": 123
}
}
}
]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
EventName: 's3:ObjectCreated:Put',
Key: 'datris/incoming/stock-prices.csv',
Records: [
{
eventName: '<string>',
s3: {bucket: {name: '<string>'}, object: {key: '<string>', size: 123}}
}
]
})
};
fetch('http://localhost:8080/minio-events', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "8080",
CURLOPT_URL => "http://localhost:8080/minio-events",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'EventName' => 's3:ObjectCreated:Put',
'Key' => 'datris/incoming/stock-prices.csv',
'Records' => [
[
'eventName' => '<string>',
's3' => [
'bucket' => [
'name' => '<string>'
],
'object' => [
'key' => '<string>',
'size' => 123
]
]
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "http://localhost:8080/minio-events"
payload := strings.NewReader("{\n \"EventName\": \"s3:ObjectCreated:Put\",\n \"Key\": \"datris/incoming/stock-prices.csv\",\n \"Records\": [\n {\n \"eventName\": \"<string>\",\n \"s3\": {\n \"bucket\": {\n \"name\": \"<string>\"\n },\n \"object\": {\n \"key\": \"<string>\",\n \"size\": 123\n }\n }\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("http://localhost:8080/minio-events")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"EventName\": \"s3:ObjectCreated:Put\",\n \"Key\": \"datris/incoming/stock-prices.csv\",\n \"Records\": [\n {\n \"eventName\": \"<string>\",\n \"s3\": {\n \"bucket\": {\n \"name\": \"<string>\"\n },\n \"object\": {\n \"key\": \"<string>\",\n \"size\": 123\n }\n }\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:8080/minio-events")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"EventName\": \"s3:ObjectCreated:Put\",\n \"Key\": \"datris/incoming/stock-prices.csv\",\n \"Records\": [\n {\n \"eventName\": \"<string>\",\n \"s3\": {\n \"bucket\": {\n \"name\": \"<string>\"\n },\n \"object\": {\n \"key\": \"<string>\",\n \"size\": 123\n }\n }\n }\n ]\n}"
response = http.request(request)
puts response.read_bodyOKMinIO bucket notification webhook (internal)
Internal callback, not a client API. MinIO’s notify_webhook target posts an S3-style bucket event here when an object lands; Datris enqueues the event for the file notifier, which starts ingestion, and writes one collapsed ingest-trigger audit record per bucket per minute. The path is outside /api/**, so the API-key, capability and session interceptors do not apply; instead the request must carry Authorization: Bearer <MINIO_WEBHOOK_TOKEN> (compared in constant time). When MINIO_WEBHOOK_TOKEN is unset the endpoint still accepts events but logs a warning on every call — set the token (and MinIO’s matching auth_token) in any reachable deployment. Under AUDIT_LOG_STRICT, while the audit log is not accepting entries the event is refused with 503 + Retry-After: 5 so MinIO redelivers it.
curl --request POST \
--url http://localhost:8080/minio-events \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"EventName": "s3:ObjectCreated:Put",
"Key": "datris/incoming/stock-prices.csv",
"Records": [
{
"eventName": "<string>",
"s3": {
"bucket": {
"name": "<string>"
},
"object": {
"key": "<string>",
"size": 123
}
}
}
]
}
'import requests
url = "http://localhost:8080/minio-events"
payload = {
"EventName": "s3:ObjectCreated:Put",
"Key": "datris/incoming/stock-prices.csv",
"Records": [
{
"eventName": "<string>",
"s3": {
"bucket": { "name": "<string>" },
"object": {
"key": "<string>",
"size": 123
}
}
}
]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
EventName: 's3:ObjectCreated:Put',
Key: 'datris/incoming/stock-prices.csv',
Records: [
{
eventName: '<string>',
s3: {bucket: {name: '<string>'}, object: {key: '<string>', size: 123}}
}
]
})
};
fetch('http://localhost:8080/minio-events', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "8080",
CURLOPT_URL => "http://localhost:8080/minio-events",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'EventName' => 's3:ObjectCreated:Put',
'Key' => 'datris/incoming/stock-prices.csv',
'Records' => [
[
'eventName' => '<string>',
's3' => [
'bucket' => [
'name' => '<string>'
],
'object' => [
'key' => '<string>',
'size' => 123
]
]
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "http://localhost:8080/minio-events"
payload := strings.NewReader("{\n \"EventName\": \"s3:ObjectCreated:Put\",\n \"Key\": \"datris/incoming/stock-prices.csv\",\n \"Records\": [\n {\n \"eventName\": \"<string>\",\n \"s3\": {\n \"bucket\": {\n \"name\": \"<string>\"\n },\n \"object\": {\n \"key\": \"<string>\",\n \"size\": 123\n }\n }\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("http://localhost:8080/minio-events")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"EventName\": \"s3:ObjectCreated:Put\",\n \"Key\": \"datris/incoming/stock-prices.csv\",\n \"Records\": [\n {\n \"eventName\": \"<string>\",\n \"s3\": {\n \"bucket\": {\n \"name\": \"<string>\"\n },\n \"object\": {\n \"key\": \"<string>\",\n \"size\": 123\n }\n }\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:8080/minio-events")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"EventName\": \"s3:ObjectCreated:Put\",\n \"Key\": \"datris/incoming/stock-prices.csv\",\n \"Records\": [\n {\n \"eventName\": \"<string>\",\n \"s3\": {\n \"bucket\": {\n \"name\": \"<string>\"\n },\n \"object\": {\n \"key\": \"<string>\",\n \"size\": 123\n }\n }\n }\n ]\n}"
response = http.request(request)
puts response.read_bodyOKAuthorizations
Shared secret for the POST /minio-events callback only — the value of MINIO_WEBHOOK_TOKEN, which MinIO sends as its notify_webhook auth_token. Not an API key.
Body
Response
Event queued (OK, text/plain)
The response is of type string.
"OK"
