result = client.webhooks.test()
print(result.data.delivered, result.data.status_code)
const result = await client.webhooks.test();
console.log(result.data?.delivered, result.data?.statusCode);
curl -X POST 'https://api.hydradb.com/webhooks/indexing/test' \
-H "Authorization: Bearer $HYDRA_DB_API_KEY" \
-H "API-Version: 2"
{
"data": {
"delivered": true,
"message": "Success",
"status_code": 200
},
"error": null,
"meta": {
"collection": "team_docs",
"database": "acme_corp",
"latency_ms": 12.3,
"request_id": "9d13aef4-02f4-4e73-8c62-4c2601d04f9d",
"source_type": "file",
"sub_tenant_id": "team_docs",
"tenant_id": "acme_corp"
},
"success": true
}{
"data": "<unknown>",
"detail": {
"deprecated": true,
"deprecated_field": "tenant_id",
"error_code": "VALIDATION_ERROR",
"message": "Request validation failed",
"preferred_field": "database"
},
"error": {
"code": "DATABASE_NOT_FOUND",
"message": "Database not found"
},
"meta": {
"latency_ms": 12.3,
"request_id": "9d13aef4-02f4-4e73-8c62-4c2601d04f9d"
},
"success": false
}Webhooks
Send Test Delivery
Send a synthetic delivery to your registered webhook endpoint.
POST
/
webhooks
/
indexing
/
test
result = client.webhooks.test()
print(result.data.delivered, result.data.status_code)
const result = await client.webhooks.test();
console.log(result.data?.delivered, result.data?.statusCode);
curl -X POST 'https://api.hydradb.com/webhooks/indexing/test' \
-H "Authorization: Bearer $HYDRA_DB_API_KEY" \
-H "API-Version: 2"
{
"data": {
"delivered": true,
"message": "Success",
"status_code": 200
},
"error": null,
"meta": {
"collection": "team_docs",
"database": "acme_corp",
"latency_ms": 12.3,
"request_id": "9d13aef4-02f4-4e73-8c62-4c2601d04f9d",
"source_type": "file",
"sub_tenant_id": "team_docs",
"tenant_id": "acme_corp"
},
"success": true
}{
"data": "<unknown>",
"detail": {
"deprecated": true,
"deprecated_field": "tenant_id",
"error_code": "VALIDATION_ERROR",
"message": "Request validation failed",
"preferred_field": "database"
},
"error": {
"code": "DATABASE_NOT_FOUND",
"message": "Database not found"
},
"meta": {
"latency_ms": 12.3,
"request_id": "9d13aef4-02f4-4e73-8c62-4c2601d04f9d"
},
"success": false
}Sends a synthetic
indexing.status_changed payload to your registered endpoint so you can confirm it is reachable and that your signature verification works.
The test payload carries "test": true, and is signed exactly like a real delivery when a signing secret is configured. Use it to check your verifier before relying on it in production. The response reports whether your endpoint accepted it (delivered) and the HTTP status_code it returned. If no webhook is registered, the call returns 404.
Test deliveries do not appear in the delivery history returned by List Deliveries.
See Webhooks for the full payload shape.
result = client.webhooks.test()
print(result.data.delivered, result.data.status_code)
const result = await client.webhooks.test();
console.log(result.data?.delivered, result.data?.statusCode);
curl -X POST 'https://api.hydradb.com/webhooks/indexing/test' \
-H "Authorization: Bearer $HYDRA_DB_API_KEY" \
-H "API-Version: 2"
Authorizations
API key sent as a Bearer token: "Bearer prefix.secret"
Response
OK
Show child attributes
Show child attributes
Example:
{
"delivered": true,
"message": "Success",
"status_code": 200
}
Null on success; an object with code and message on failure.
Show child attributes
Show child attributes
Example:
null
Show child attributes
Show child attributes
Example:
{
"collection": "team_docs",
"database": "acme_corp",
"latency_ms": 12.3,
"request_id": "9d13aef4-02f4-4e73-8c62-4c2601d04f9d",
"source_type": "file",
"sub_tenant_id": "team_docs",
"tenant_id": "acme_corp"
}
Whether the request succeeded.
Example:
true
Was this page helpful?
