Overview
Unify provides an official TypeScript library that makes it easy to interact with the Unify API from your code. The library handles authentication, request formatting, and response parsing so you can focus on building your integration.The TypeScript library source code is available on GitHub.
Quick start
You can install the Unify TypeScript library with your preferred package manager:The TypeScript library reads the
UNIFY_API_KEY environment variable by
default. If the variable is set, you can omit the apiKey parameter when
initializing the client.Usage
List objects
List objects
Retrieve all objects in your Unify workspace to see what’s available:
TypeScript
List attributes on an object
List attributes on an object
Retrieve the attributes defined on a specific object to understand its schema:
TypeScript
Upsert a person record
Upsert a person record
Use the upsert endpoint to create a new record or update an existing one based
on a unique attribute. This is the recommended approach for syncing data into
Unify because it handles deduplication automatically.Running this again with updated attributes (for example, a new title) will
update the existing record rather than creating a duplicate, because
TypeScript
email is
used as the match key.Find a record by unique attribute
Find a record by unique attribute
If you know the value of a unique attribute (like an email address), you can
look up the record directly without needing the record ID:
TypeScript
Next steps
Send records via API
Send data from external tools and systems via API.
Data API reference
Explore the full Data API reference.