Send a test event API
  1. Docs
  2. Monitors
  3. Send a test event API

Send a test event API

Send a signed test event ("type": "test") to the monitor's webhook now and report what the receiver answered.

POST /v1/monitors/{monitor_id}/test

POST /v1/monitors/{monitor_id}/test

Send a signed test event ("type": "test") to the monitor's webhook now and report what the receiver answered. Free; nothing is stored.

  • Cost: Free
  • Cache: Not cached.

Parameters#

NameTypeRequiredDescriptionIn
monitor_idstringyesMonitor id.path

Example request#

Set your key in the environment first (see Authentication).

1curl -X POST "https://api.socialscrape.dev/v1/monitors/mon_0123456789abcdef/test" \2  -H "x-api-key: $SOCIALSCRAPE_API_KEY"

Example response#

This is a sample with illustrative values. Status 200.

200 OKSample response
1{2  "ok": true,3  "credits_charged": 0,4  "credits_remaining": 5000,5  "cached": false,6  "cached_at": null,7  "request_id": "req_125748a7f0deee6f71dc2c2a",8  "data": {9    "object": "webhook_test",10    "monitor_id": "mon_0123456789abcdef",11    "delivered": true,12    "status_code": 200,13    "error": null14  },15  "cursor": null,16  "has_more": null17}

Response#

A WebhookTest object in data.

See Data models for every field. The envelope around data is described in Responses.

Errors#

Failures are free: credits_charged is 0. Branch on error.code, never on the message.

CodeHTTPRetryMeaning
invalid_params400noA parameter is missing, unknown or has the wrong type.

Every request can also fail with the account and platform errors listed on the Errors page.