Spoar
Alerts

Test an alert target

POST
/v2/projects/{project}/alerts/targets/{name}/test

Sends a sample alert to the target now, outside the queue, and answers whether the provider accepted it and what it said.

Authorization

AuthorizationBearer <token>

An API token from POST /v2/tokens (at_live_...), or a project's secret key (sk_...) for server-side ingest.

In: header

Path Parameters

project*string

The project id, as listed by GET /v2/projects.

Length1 <= length
name*string

The target's name within the project, used in its paths; defaults to the channel name.

Match^[a-z0-9][a-z0-9-]*$
Length1 <= length <= 40

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/v2/projects/string/alerts/targets/string/test"
{  "data": {    "name": "string",    "channel": "mail",    "delivered": true,    "message": "string"  }}