Heap

App · 9 actions

Send Heap server-side events, identify users, set user and account properties, one at a time or in bulk, and delete users for privacy requests.

Actions

ActionWhat it does
Add account propertiesSet properties on an account (a company your users belong to), such as industry or plan.
Add account properties in bulkSet properties on up to 1,000 accounts at once.
Add user propertiesSet properties on an identified user, such as plan or sign-up date.
Add user properties in bulkSet properties on up to 1,000 users at once.
Delete usersDelete users and all their data from every environment in the Heap account, such as for a privacy request.
Get deletion statusCheck whether a user deletion request is pending or complete.
Identify userLink an anonymous Heap user to a known identity, moving their past events to that user.
Track eventSend Heap an event that happened on your servers, such as an order completed, for an identified user.
Track events in bulkSend Heap up to 1,000 server-side events at once.

Add account properties

Set properties on an account (a company your users belong to), such as industry or plan.

Inputs

Account IDaccount_idtextRequired
The account's ID, the one your users' Account ID property holds.
PropertiespropertiesobjectRequired
Properties by name, each a number or text under 1024 characters. Send email in lower case to fill Heap's built-in Email property.

Outputs

dataobject
The response from Heap.
Example output
{
  "data": {
    "updated": 1
  }
}

Add account properties in bulk

Set properties on up to 1,000 accounts at once.

Inputs

AccountsaccountslistRequired
The accounts, each with account_id and properties.

Outputs

dataobject
The response from Heap.
Example output
{
  "data": {
    "updated": 1
  }
}

Add user properties

Set properties on an identified user, such as plan or sign-up date. If the identity is new, Heap creates the user.

Inputs

IdentityidentitytextRequired
The user's identity, such as their email address or your own user ID, the one your app passes to Heap's identify. Up to 255 characters; case matters.
PropertiespropertiesobjectRequired
Properties by name, each a number or text under 1024 characters. Send email in lower case to fill Heap's built-in Email property.

Outputs

dataobject
The response from Heap.
Example output
{
  "data": {
    "updated": 1
  }
}

Add user properties in bulk

Set properties on up to 1,000 users at once.

Inputs

UsersuserslistRequired
The users, each with identity and properties.

Outputs

dataobject
The response from Heap.
Example output
{
  "data": {
    "updated": 1
  }
}

Delete users

Delete users and all their data from every environment in the Heap account, such as for a privacy request. Needs the API key.

Inputs

Identitiesidentitieslist
Identities of the users to delete.
Heap user IDsheap_user_idslist
Heap user IDs of anonymous users to delete.

Outputs

dataobject
The response from Heap.
Example output
{
  "data": {
    "deletion_request_id": "example",
    "deletion_request_location": "example",
    "status": "example"
  }
}

Get deletion status

Check whether a user deletion request is pending or complete. Needs the API key.

Inputs

Deletion request IDdeletion_request_idtextRequired
The request's ID, which Delete users returns.

Outputs

dataobject
The response from Heap.
Example output
{
  "data": {
    "deletion_request_id": "example",
    "status": "example"
  }
}

Identify user

Link an anonymous Heap user to a known identity, moving their past events to that user.

Inputs

Heap user IDheap_user_idtextRequired
Heap's own user ID for the anonymous user, from Heap's SDK.
IdentityidentitytextRequired
The user's identity, such as their email address or your own user ID, the one your app passes to Heap's identify. Up to 255 characters; case matters.
Timetimestampdate and time
When they were identified. Leave empty for now.

Outputs

dataobject
The response from Heap.
Example output
{
  "data": {
    "heap_user_id": "example",
    "identified": true,
    "identity": "example"
  }
}

Track event

Send Heap an event that happened on your servers, such as an order completed, for an identified user.

Inputs

Event nameeventtextRequired
The event's name, up to 1024 characters, such as Order completed.
Identityidentitytext
The user's identity, such as their email address or your own user ID, the one your app passes to Heap's identify. Up to 255 characters; case matters.
Heap user IDheap_user_idtext
Heap's own user ID for an anonymous user, from Heap's SDK, instead of an identity.
Propertiespropertiesobject
Details about the event by name, each a number or text under 1024 characters. Don't use user_id, session_id or screen_name.
Timetimestampdate and time
When it happened. Leave empty for now.
Session IDsession_idtext
The Heap session the event belongs to.
Idempotency keyidempotency_keytext
A unique ID for this event, so sending it twice records it once.

Outputs

dataobject
The response from Heap.
Example output
{
  "data": {
    "event": "example",
    "tracked": 1
  }
}

Track events in bulk

Send Heap up to 1,000 server-side events at once.

Inputs

EventseventslistRequired
The events, each with event, identity (or user_id), and optionally timestamp, properties and idempotency_key.

Outputs

dataobject
The response from Heap.
Example output
{
  "data": {
    "tracked": 1
  }
}

On this page