September 18, 2023
over 1 year ago by Kamil Sindi
Simulate Webhook Events with the New Simulation Endpoint
Introducing: Sending Example Events
We're thrilled to announce a new feature that allows developers to send sample webhook events through the API. With this release, you can now test your integrations in the Sandbox environment using our new simulation endpoint.
Endpoint Details
- Endpoint:
POST https://sandbox.lithic.com/v1/simulate/event_subscriptions/{event_subscription_token}/send_example
Sample Request
To give it a try, here's a quick example using cURL:
curl https://sandbox.lithic.com/v1/simulate/event_subscriptions/ep_2VVERxQnBoXIeAyr9IGnM0d10F9/send_example \
-X POST \
-H 'Authorization: YOUR_API_KEY' \
-H 'accept: application/json' \
-H 'content-type: application/json' \
-d '{
"event_type": "card.created"
}'
Event Types & Schema
To view a comprehensive list of all the available events, please refer to our Event Types documentation.
Additionally, customers can now reference the schema of the various event types in our centralized OpenAPI spec. Check it out here: Lithic OpenAPI Specification.
What's Next
Start testing out your integrations with this new simulation feature! As always, our team is here to support you. Should you have any questions or feedback, please don't hesitate to reach out.