View as Markdown
Gleap icon

Gleap ACTION

Create Track Event

Creates a new track event in Gleap. See the documentation
  • Action
  • Writes data
  • OAuth
  • SDK
  • MCP

IMPLEMENTATION

Call this tool

Connect a user's Gleap account once, then configure and run Create Track Event from your backend or agent.

import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const result = await pd.actions.run({
  id: "gleap-create-track-event",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    gleap: { authProvisionId: "apn_xxxxxxx" },
    name: "Event Name",
    data: "Event Data",
  },
})

console.log(result)

SCHEMA

Inputs

Pipedream supplies the connected account. Your application provides the operation-specific values below. Dynamic inputs are resolved against that user's account.

Create Track Event inputs
Property Type Description
name Event Name string
The name of the event.
Required
data Event Data object
The data associated with the event.
Required
date Event Date string
The date of the event. Format YYYY-MM-DDTHH:MM:SS.SSSZ
Required
projectId Project ID string
The unique identifier for the project
Required Dynamic
userId User ID string
The unique identifier for the user
Required Dynamic

REFERENCE

Tool details

Behavior hints are published with the component in the Pipedream registry and surface as MCP tool annotations, so an agent can reason about a tool before it calls it.

Registry key
gleap-create-track-event
Version
0.0.2
App
Gleap
Authentication
OAuth
Read-only
No
Destructive
No
Open world
Yes