Activity

April 13, 2026 ยท View on GitHub

Overview

Available Operations

  • track - Track provider activity and engagement events

track

Track activity and engagement events for a specific delivery provider

Example Usage

package hello.world;

import co.novu.Novu;
import co.novu.models.operations.InboundWebhooksControllerHandleWebhookResponse;
import java.lang.Exception;
import java.util.Map;

public class Application {

    public static void main(String[] args) throws Exception {

        Novu sdk = Novu.builder()
                .secretKey("YOUR_SECRET_KEY_HERE")
            .build();

        InboundWebhooksControllerHandleWebhookResponse res = sdk.activity().track()
                .environmentId("<id>")
                .integrationId("<id>")
                .body(Map.ofEntries(
                ))
                .call();

        if (res.webhookResultDtos().isPresent()) {
            System.out.println(res.webhookResultDtos().get());
        }
    }
}

Parameters

ParameterTypeRequiredDescription
environmentIdString:heavy_check_mark:The environment identifier
integrationIdString:heavy_check_mark:The integration identifier for the delivery provider
idempotencyKeyOptional<String>:heavy_minus_sign:A header for idempotency purposes
bodyMap<String, Object>:heavy_check_mark:Webhook event payload from the delivery provider

Response

InboundWebhooksControllerHandleWebhookResponse

Errors

Error TypeStatus CodeContent Type
models/errors/APIException4XX, 5XX*/*