Skip to main content
POST
/
stocks
/
api
/
webhooks
/
test
/
{partnerId}
curl -X POST "https://api.trusset.org/stocks/api/webhooks/test/wh_abc123" \
  -H "X-API-Key: trusset_abc123xy_secret..."
{
  "success": true,
  "data": {
    "delivered": true,
    "statusCode": 200,
    "responseTime": 142
  },
  "metadata": {
    "requestId": "550e8400-e29b-41d4-a716-446655440000",
    "timestamp": "2025-06-15T12:00:00.000Z",
    "instanceId": "inst_abc123"
  }
}
Sends a test payload to the partner’s webhook URL to verify connectivity and correct signature validation on the receiving end. The test event uses a clearly marked test payload that should not trigger production logic.

Path Parameters

partnerId
string
required
ID of the webhook partner to test.

Response Fields

success
boolean
Request status.
data
object
Test delivery result including the HTTP status code returned by the webhook endpoint.
curl -X POST "https://api.trusset.org/stocks/api/webhooks/test/wh_abc123" \
  -H "X-API-Key: trusset_abc123xy_secret..."
{
  "success": true,
  "data": {
    "delivered": true,
    "statusCode": 200,
    "responseTime": 142
  },
  "metadata": {
    "requestId": "550e8400-e29b-41d4-a716-446655440000",
    "timestamp": "2025-06-15T12:00:00.000Z",
    "instanceId": "inst_abc123"
  }
}