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
Returns the new webhook subscription.
The response is of type object.
object
Was this page helpful?