TriNet+

TriNet Node.js SDK

Build TriNet integrations in Node.js with Apideck's official SDK. Type-safe, well-documented, and production-ready.

Quick Installation

Get started with TriNet in Node.js in under a minute

Terminal
npm install @apideck/node
import { Apideck } from '@apideck/node'

const apideck = new Apideck({
  apiKey: process.env.APIDECK_API_KEY,
  appId: process.env.APIDECK_APP_ID,
  consumerId: 'user-123'
})

// Connect to TriNet
const { data } = await apideck.hris.connectionsAll({
  serviceId: 'trinet'
})

// List data from TriNet
const response = await apideck.hris.companiesAll({
  serviceId: 'trinet'
})

console.log(response.data)

Why use the Node.js SDK?

Type Safety

Full type definitions for Node.js. Catch errors at compile time, not runtime.

Auto-generated

SDK is auto-generated from our OpenAPI spec, always up-to-date with the latest API.

Error Handling

Built-in error types and retry logic. Handle rate limits and errors gracefully.

Pagination

Automatic pagination handling. Iterate through large datasets effortlessly.

Authentication

OAuth, API keys, and consumer tokens handled automatically.

Documentation

Comprehensive docs with examples for every endpoint and method.

TriNet available in all SDKs

Choose your preferred language

API Resources

TriNet resources available

All these TriNet endpoints are accessible via the Node.js SDK

Launch accounting integrations in weeks, not months

Get started for free