View as Markdown
TMetric icon

TMetric ACTION

Create Time Entry

Create a new Time Entry. See the documentation
  • Action
  • Writes data
  • API key
  • SDK
  • MCP

IMPLEMENTATION

Call this tool

Connect a user's TMetric account once, then configure and run Create Time Entry 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: "tmetric-create-time-entry",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    tmetric: { authProvisionId: "apn_xxxxxxx" },
    accountId: "Account ID",
    startTime: "Start Time",
  },
})

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 Time Entry inputs
Property Type Description
accountId Account ID string
Identifier of the account
Required Dynamic
startTime Start Time string
Start timestamp in ISO format, e.g. 2025-11-26T14:16:00; leave blank to start the timer at the current moment
Optional
endTime End Time string
End timestamp in ISO format, e.g. 2025-11-26T15:16:00; leave blank to keep the timer running indefinitely
Optional
note Note string
Additional note for the time entry
Optional
isBillable Is Billable boolean
Whether the time entry is billable
Optional
isInvoiced Is Invoiced boolean
Whether the time entry has been invoiced
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
tmetric-create-time-entry
Version
0.0.1
App
TMetric
Authentication
API key
Read-only
No
Destructive
No
Open world
Yes