Test
Send a test event to your configured webhook URL. This verifies that your endpoint is reachable and can receive webhook deliveries from Aistetic.
The test sends a webhook.test event to your configured URL with the same headers and signature format as real deliveries.
Request
POST /garment-tagging/webhook/test
Headers
| Key | Value | Description |
|---|---|---|
| API-KEY | YOUR_API_KEY | Authentication key for the API |
| DOMAIN | YOUR_DOMAIN | Domain identifier for tenant isolation |
Responses
200 OK (Success)
{
"status": true,
"data": {
"success": true,
"response_time_ms": 142,
"error": "",
"timestamp": "2025-02-03T16:30:00Z"
},
"error": [],
"message": "success!"
}
200 OK (Delivery failed)
{
"status": true,
"data": {
"success": false,
"response_time_ms": 5000,
"error": "connection timeout",
"timestamp": "2025-02-03T16:30:00Z"
},
"error": [],
"message": "success!"
}
400 Bad Request (Webhook not configured)
{
"status": false,
"data": {},
"error": ["Webhook is not enabled or URL is not configured"],
"message": "Cannot send test webhook"
}
Test Payload
The test event sent to your webhook URL has the following format:
{
"event": "webhook.test",
"timestamp": "2025-02-03T16:30:00Z",
"message": "This is a test webhook from Aistetic",
"domain": "your-domain"
}