Javascript
import Ivy from '@getivy/node-sdk'; const client = new Ivy({ apiKey: 'My API Key', }); const subscription = await client.webhook.subscription.create({ url: 'url' }); console.log(subscription.id);
{ "id": "<any>", "merchant": "<any>", "merchantApp": "<any>", "url": "<string>", "events": [ "test" ], "createdAt": "<any>", "updatedAt": "<any>" }
Creates a webhook subscription that sends various events from Ivy to a specified url. There can be multiple subscriptions per app.
API key for authentication
The endpoint where webhook events are sent.
The events to subscribe the url to.
Show child attributes
Returns the new webhook subscription.
Was this page helpful?