Send a test event
const url = 'https://api-staging.asqary.com/v1/webhooks/example/test';const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api-staging.asqary.com/v1/webhooks/example/test \ --header 'Authorization: Bearer <token>'Queues a webhook.test event to this endpoint, even if disabled. It
is attempted once, within a few seconds; poll the delivery for the
result.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Responses
Section titled “Responses”Queued
object
Set while pending.
The JSON body POSTed to your endpoint. Verify the Asqary-Signature
header before trusting it (see docs/api.md#webhooks). Deliveries can
repeat or arrive out of order; deduplicate on id.
object
backtest.*: backtest_id, status, environment, policy, dataset,
summary, error, created_at, completed_at (as in GET /v1/backtest/{id}).
policy.activated: policy_id, name, product, version, version_id,
was_tested, replaced. policy.archived: policy_id, name, product.
webhook.test: webhook_id, message.
object
Detail only. Most recent first, up to 50.
object
First 512 bytes of the response body.
Example
{ "event_type": "backtest.completed", "status": "pending", "payload": { "type": "backtest.completed", "environment": "live" }}Missing scope or role, IP not allowed, or monthly quota exceeded (quota_exceeded).
object
Invalid_request, unauthorized, key_expired, key_revoked, forbidden, ip_not_allowed, quota_exceeded, not_found, method_not_allowed, conflict, policy_in_use, policy_active, policy_archived, idempotency_key_reused, validation_failed, rule_not_available, backtest_invalid_rows, backtest_too_large, rate_limited, internal_error
object
object
Example generated
{ "error_code": "example", "message": "example", "retryable": true, "request_id": "example", "details": {}}Resource or endpoint not found.
object
Invalid_request, unauthorized, key_expired, key_revoked, forbidden, ip_not_allowed, quota_exceeded, not_found, method_not_allowed, conflict, policy_in_use, policy_active, policy_archived, idempotency_key_reused, validation_failed, rule_not_available, backtest_invalid_rows, backtest_too_large, rate_limited, internal_error
object
object
Example generated
{ "error_code": "example", "message": "example", "retryable": true, "request_id": "example", "details": {}}