result = client.webhooks.retry_delivery("{delivery_id}")
const result = await client.webhooks.retryDelivery({ deliveryId: "{delivery_id}" });
curl -X POST 'https://api.hydradb.com/webhooks/indexing/deliveries/{delivery_id}/retry' \
-H "Authorization: Bearer $HYDRA_DB_API_KEY" \
-H "API-Version: 2"
{
"data": {
"delivery_id": "dlv_9f8e7d6c",
"message": "Success",
"queued": true
},
"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
Retry Delivery
Queue a failed webhook delivery to be attempted again.
POST
/
webhooks
/
indexing
/
deliveries
/
{delivery_id}
/
retry
result = client.webhooks.retry_delivery("{delivery_id}")
const result = await client.webhooks.retryDelivery({ deliveryId: "{delivery_id}" });
curl -X POST 'https://api.hydradb.com/webhooks/indexing/deliveries/{delivery_id}/retry' \
-H "Authorization: Bearer $HYDRA_DB_API_KEY" \
-H "API-Version: 2"
{
"data": {
"delivery_id": "dlv_9f8e7d6c",
"message": "Success",
"queued": true
},
"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
}Queues a
failed or permanently_failed delivery for another attempt. Use it after fixing the problem on your side, such as a receiver that was down or was rejecting valid signatures. For a delivery in any other state, the call returns queued: false and nothing is retried.
The retry is signed with your current signing secret, not the one in force when the delivery was first attempted. If you have rotated since, your receiver must know the new secret.
See Webhooks for retry and backoff behaviour.
result = client.webhooks.retry_delivery("{delivery_id}")
const result = await client.webhooks.retryDelivery({ deliveryId: "{delivery_id}" });
curl -X POST 'https://api.hydradb.com/webhooks/indexing/deliveries/{delivery_id}/retry' \
-H "Authorization: Bearer $HYDRA_DB_API_KEY" \
-H "API-Version: 2"
Authorizations
API key sent as a Bearer token: "Bearer prefix.secret"
Path Parameters
Delivery ID
Example:
"dlv_9f8e7d6c"
Response
OK
Show child attributes
Show child attributes
Example:
{
"delivery_id": "dlv_9f8e7d6c",
"message": "Success",
"queued": true
}
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?
