Webhooks

public final class Webhooks extends Resource<Webhook>

Nylas Webhooks API

The Nylas Webhooks API allows your application to receive notifications in real-time when certain events occur.

Constructors

Link copied to clipboard
public Webhooks Webhooks(NylasClient client)

Functions

Link copied to clipboard

Create a webhook destination

Link copied to clipboard
public final WebhookDeleteResponse destroy(String webhookId)

Delete a webhook destination

Link copied to clipboard

Extract the challenge parameter from a URL

Link copied to clipboard
public final Response<Webhook> find(String webhookId)

Return a webhook destination

Link copied to clipboard

Get the current list of IP addresses that Nylas sends webhooks from

Link copied to clipboard
public final ListResponse<Webhook> list()

List all webhook destinations for the application

Link copied to clipboard
public final Response<WebhookWithSecret> rotateSecret(String webhookId)

Update the webhook secret value for a destination

Link copied to clipboard
public final Response<Webhook> update(String webhookId, UpdateWebhookRequest requestBody)

Update a webhook destination