Skip to main content
Convoy provides SDKs for in-app integration. These SDKs carry out the same operations as the API and Convoy dashboard. The methods in each SDK mirror the API. This page introduces you to the SDKs as well as demonstrates the steps involved in sending an event to your Convoy instance. You will need your project API key and project ID, both available 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

Next, require the convoy module and set it up with your instance URL, API key, and project ID.
example

Create an Endpoint

example

Create a Subscription

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

Send an Event

example
To verify webhook signatures on the receiving side with these SDKs, see the receiving guide. Contribute to this doc in Github

Don’t miss anything.

Subscribe to the Convoy Newsletter find tutorials and tools that will help you grow as a developer and scale your project or business, and see interesting topics.