Webhooks
Send Test Event
POST
header
x-api-key<token>Workspace API key, sent in the x-api-key header. Keys start with op_ and are created in the dashboard.
id*stringLength
1 <= lengthTest event accepted
application/json- response
ok*booleanExample Request
import { Configuration, WebhooksApi } from "@onepostly/sdk";const webhooksApi = new WebhooksApi( new Configuration({ apiKey: process.env.ONEPOSTLY_API_KEY }));const response = await webhooksApi.testWebhook({ id: "dlv_1",});console.log(response);Example Response
{ "ok": true}