remagicaDocs home
API referenceWebhooks

Send a test event

POST
/webhook-endpoints/{endpointId}/test

Needs a key withwebhooks:write

Sends the endpoint a webhook.test event, signed like any other, whatever events it receives. Follow it in the endpoint's deliveries.

Requires scope webhooks:write.

Authorization

apiKey
headerx-api-key<token>

An API key of your workspace (rmg_…), created in the web app. It acts for that workspace, not for a person, and keeps working when its creator leaves.

Path Parameters

endpointId*string
Length1 <= length <= 128

Response Body

The test delivery, on its way.

application/json
  1. response

One event sent to one endpoint.

attempts*integer
Range0 <= value
createdAt*string
Formatdate-time
deliveredAt*|null
endpointId*string
eventId*string

The event's id (evt_...), the same in every delivery and redelivery of it: sent as Remagica-Event-Id.

eventType*string
id*string
lastError*|

What the last failed attempt got back, or why it got nothing.

lastStatus*|

The HTTP status of the last attempt; null when nothing answered.

nextAttemptAt*|

When the next retry is due, while it's pending.

status*string

pending (being sent, or waiting to retry), delivered (a 2xx came back) or failed (every retry failed).

Value in"pending""delivered""failed"
Example Request
curl -X POST 'https://api.remagica.com/api/v1/webhook-endpoints/whe_4f5a8b9c0d1e2f3a/test'
Example Response
{  "attempts": 1,  "createdAt": "2026-10-21T12:00:00.000Z",  "deliveredAt": "2026-10-21T12:00:00.000Z",  "endpointId": "2ecb03ae-5b3d-4f60-8e2a-1d9c6b4f7e05",  "eventId": "5e0e63b4-5b3d-4f60-8e2a-1d9c6b4f7e05",  "eventType": "generation.succeeded",  "id": "whd_0d1e2f3a4b5c6d7e",  "lastError": "string",  "lastStatus": 1,  "nextAttemptAt": "2026-10-21T12:00:00.000Z",  "status": "pending"}