Home Articles Pitch Api

Contents

Start hereAPI DocsIntroductionSend your first eventEvent parametersStructured EventsActionsContextsError handlingManualIntroductionBasicsConventionsSetupTest modeNotificationsPWA

Sending your first event

Run this code in your node.js backend.

import Operational from "@operational.co/sdk";
// Or use this if imports are not supported in your node.js version
// const Operational = require("@operational.co/sdk");

const ops = new Operational("yourapikey");

const e = {
  name: "Operational!",
}

await ops.events.ingest(e);
Copy

This will show an event inside ops.

~
Operational!

12:00 am

IntroductionEvent parameters