RevKeen Docs
Api reference

Create a test event

Creates a simulated test event that triggers webhook delivery to configured endpoints. Useful for testing webhook integrations.


Related endpoints

  • GET /events — List events
  • GET /events/{id} — Retrieve an event
  • POST /events/{id}/resend — Resend webhook for an event

Common errors

  • 401 unauthenticated — missing, malformed, or revoked API key.

Idempotency

Pass an Idempotency-Key header (UUID v4 recommended) to make retries safe. Keys are valid for 24 hours; see the idempotency guide.

POST
/events/test
x-api-key<token>

Your RevKeen API key (powered by Unkey). Get it from Dashboard > Settings > API Keys. Use rk_sandbox_* for test mode and rk_live_* for production.

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

curl -X POST "https://api.revkeen.com/v2/events/test" \  -H "x-api-key: $REVKEEN_API_KEY" \  -H "Content-Type: application/json" \  -d '{    "type": "invoice.paid"  }'
{
  "success": true,
  "event": {
    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
    "object": "event",
    "type": "invoice.paid",
    "data": {
      "object": null,
      "previous_attributes": null
    },
    "request": {
      "id": "string",
      "idempotency_key": "string"
    },
    "pending_webhooks": 0,
    "api_version": "2026-01-15",
    "livemode": true,
    "created": 1704067200
  },
  "message": "string"
}
{
  "error": {
    "type": "string",
    "code": "string",
    "message": "string",
    "param": "string"
  }
}