Webhooks
Get Last Event
Get data of last webhook event of a specific type
GET
Retrieve the most recent occurrence of a specified webhook event type. This endpoint is useful for testing webhook integrations and verifying event data structures.
Request Headers
API Key. Go to your Konstantly site > Settings > API and copy the value from there.
Query Parameters
Type of webhook event to retrieve
Example: user.created
Response
Returns the full webhook event data structure for the most recent event of the specified type.
Error Responses
Not Found error response
Usage Notes
- Event Types:
- Use dot notation for event types (e.g.,
user.created
,course.published
) - Case sensitive matching
- Only returns events from the last 30 days
- Common Uses:
- Testing webhook handlers
- Debugging integration issues
- Verifying event structures
- Recreating missed events
- Best Practices:
- Cache responses when appropriate
- Handle “no events” cases gracefully
- Use for testing, not production monitoring
- Verify event data matches expectations