View as Markdown
Fomo icon

Fomo ACTION

Create Event

Creates an event. See docs here
  • Action
  • Writes data
  • API key
  • SDK
  • MCP

IMPLEMENTATION

Call this tool

Connect a user's Fomo account once, then configure and run Create 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: "fomo-create-event",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    fomo: { authProvisionId: "apn_xxxxxxx" },
    eventTypeId: "Event Type ID",
    firstName: "First Name",
  },
})

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 Event inputs
Property Type Description
eventTypeId Event Type ID string
Event type unique ID
Required
firstName First Name string
First name of the person on the event.
Optional
email Email string
Person's email address, used to create dynamic customer avatars. Never shown publicly.
Optional
city City string
City where the event happend. Size range: 0..255
Optional
province Province string
Province (state) where the event happened.
Optional
country Country string
Country where the event happend ISO-2 standard. Size range: 0..255
Optional
title Title string
Title of the event, such as a product name.
Optional
url Url string
Url to redirect on the event click. Size range: 0..255
Optional
imageURL Image URL string
URL of the image to be displayed.
Optional

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
fomo-create-event
Version
0.0.1
App
Fomo
Authentication
API key
Behavior
May modify external data