Skip to main content
In this guide, you’ll learn how to deploy your first webhook event with Convoy. You’ll be making use of your project API key which can be generated by creating a project from your us dashboard or eu dashboard. You’ll also need your project ID which can be retrieved from your Project Settings page. Your instance URL depends on where your project lives:
  • Convoy Cloud (US): https://us.getconvoy.cloud/api/v1
  • Convoy Cloud (EU): https://eu.getconvoy.cloud/api/v1
  • Self-hosted: https://your-instance/api/v1
The Ruby gem is the one exception: it appends /v1 itself, so Convoy.base_uri takes the URL without /v1 (for example https://us.getconvoy.cloud/api). The Ruby tab below shows this.

Install Client

Install convoy.js with:
terminal

Configure

The client requires your instance URL, API key, and project ID.
example
Now that your client has been configured, create an endpoint.

Create an Endpoint

example
The next step is to create a subscription to the webhook source. Subscriptions are the conduit through which events are routed from a source to a destination on Convoy.

Subscribe for Events

example
With the subscription in place, you’re set to send an event.

Send an Event

To send an event, you’ll need the uid from the endpoint you created earlier.
example

Cheers! 🎉

You have successfully created a Convoy application to send events to your configured endpoint.