Userpilot

App · 25 actions

Identify users and companies in Userpilot, track events, run bulk updates, manage email subscriptions, delete people's data, export raw analytics data, and follow new flows, segments, surveys and finished jobs.

Actions

ActionWhat it does
Bulk update companiesCreate or update many companies in one background job.
Bulk update usersCreate or update many users in one background job.
Delete companiesSchedule companies and their data for permanent deletion.
Delete usersSchedule users and their data for permanent deletion.
Get exportGet a data export's status and, once it completes, its download links (valid for 2 days).
Get jobGet a bulk update or import job's status and progress.
Identify companyCreate or update a company's profile.
Identify userCreate or update a user's profile, and the company they belong to.
List checklistsList onboarding checklists.
List company propertiesList the company properties Userpilot holds, with their types.
List email subscription typesList the live email subscription types people can opt out of.
List embedsList embeds (banners and cards).
List event propertiesList the properties tracked events carry, with the event each belongs to.
List exportsList data export jobs started with this API key, with their progress.
List features and eventsList the tracked features and events.
List flowsList flows (in-app experiences).
List jobsList bulk update and import jobs with their status.
List resource center modulesList the modules of the resource center.
List segmentsList user and company segments.
List spotlightsList spotlights (tooltips, hotspots and buttons).
List surveysList surveys with their questions.
List user propertiesList the user properties Userpilot holds, with their types.
Start exportStart exporting raw events, users and companies for a date range.
Track eventRecord an event a user did, such as a purchase, for analytics and targeting.
Update email subscriptionsUnsubscribe or re-subscribe email addresses from some subscription types, or from every email.

Bulk update companies

Create or update many companies in one background job.

Inputs

CompaniescompanieslistRequired
The companies, each with a company_id and their properties.

Outputs

dataobject
The response from Userpilot.
Example output
{
  "data": {
    "completed_rows": 1,
    "elapsed_time": 1,
    "end_time": "example",
    "file_size": 1,
    "filename": "example",
    "job_id": "example",
    "links": "example",
    "start_time": "example",
    "status": "example",
    "total_rows": 1,
    "type": "example"
  }
}

Bulk update users

Create or update many users in one background job.

Inputs

UsersuserslistRequired
The users, each with a user_id, an optional company_id and their properties.

Outputs

dataobject
The response from Userpilot.
Example output
{
  "data": {
    "completed_rows": 1,
    "elapsed_time": 1,
    "end_time": "example",
    "file_size": 1,
    "filename": "example",
    "job_id": "example",
    "links": "example",
    "start_time": "example",
    "status": "example",
    "total_rows": 1,
    "type": "example"
  }
}

Delete companies

Schedule companies and their data for permanent deletion. Their users are kept.

Inputs

Company IDsidslistRequired
The company IDs to delete.

Outputs

dataobject
The response from Userpilot.
Example output
{
  "data": {
    "message": "example",
    "scheduled": [
      "example"
    ]
  }
}

Delete users

Schedule users and their data for permanent deletion. Userpilot deletes them daily at 2:00 AM UTC.

Inputs

User IDsidslistRequired
The user IDs to delete.

Outputs

dataobject
The response from Userpilot.
Example output
{
  "data": {
    "message": "example",
    "scheduled": [
      "example"
    ]
  }
}

Get export

Get a data export's status and, once it completes, its download links (valid for 2 days).

Inputs

Export job IDjob_idtextRequired
The export's job ID, which Start export returns.

Outputs

dataobject
The response from Userpilot.
Example output
{
  "data": {
    "all_chunks": [
      "example"
    ],
    "app_token": "example",
    "completed_chunks": [
      "example"
    ],
    "current_chunk": "example",
    "end_time": "example",
    "job_id": "example",
    "presigned_urls": [
      {
        "filename": "example",
        "url": "example"
      }
    ],
    "progress": "example",
    "start_time": "example",
    "status": "example",
    "type": "example"
  }
}

Get job

Get a bulk update or import job's status and progress.

Inputs

Job IDjob_idtextRequired
The job's ID, which a bulk update returns.

Outputs

dataobject
The response from Userpilot.
Example output
{
  "data": {
    "completed_rows": 1,
    "elapsed_time": 1,
    "end_time": "example",
    "file_size": 1,
    "filename": "example",
    "job_id": "example",
    "links": "example",
    "start_time": "example",
    "status": "example",
    "total_rows": 1,
    "type": "example"
  }
}

Identify company

Create or update a company's profile.

Inputs

Company IDcompany_idtextRequired
The company's ID in your product, the same one your app sends Userpilot.
Namenametext
The company's name.
Other propertiespropertiesobject
Other properties to set, by name, such as plan or role. Values are saved as text.

Outputs

dataobject
The response from Userpilot.
Example output
{
  "data": {
    "accepted": true,
    "company_id": "example"
  }
}

Identify user

Create or update a user's profile, and the company they belong to.

Inputs

User IDusertextRequired
The user's ID in your product, the same one your app sends Userpilot.
Namenametext
The user's full name.
Emailemailtext
The user's email address.
Other propertiespropertiesobject
Other properties to set, by name, such as plan or role. Values are saved as text.
Company IDcompany_idtext
The ID of the company the user belongs to, in your product.
Company propertiescompany_propertiesobject
Properties of that company to set, by name, such as name or plan.

Outputs

dataobject
The response from Userpilot.
Example output
{
  "data": {
    "accepted": true,
    "user_id": "example"
  }
}

List checklists

List onboarding checklists.

Inputs

None.

Outputs

datalist
The response from Userpilot.
Example output
{
  "data": [
    {
      "data_type": "example",
      "display_name": "example",
      "key": "example"
    }
  ]
}

List company properties

List the company properties Userpilot holds, with their types.

Inputs

None.

Outputs

datalist
The response from Userpilot.
Example output
{
  "data": [
    {
      "data_type": "example",
      "display_name": "example",
      "id": 1,
      "is_auto_property": true,
      "key": "example",
      "type": "example"
    }
  ]
}

List email subscription types

List the live email subscription types people can opt out of.

Inputs

None.

Outputs

dataobject
The response from Userpilot.
Example output
{
  "data": {
    "topics": [
      {
        "id": 1,
        "title": "example"
      }
    ]
  }
}

List embeds

List embeds (banners and cards).

Inputs

None.

Outputs

datalist
The response from Userpilot.
Example output
{
  "data": [
    {
      "id": 1,
      "title": "example",
      "type": "example"
    }
  ]
}

List event properties

List the properties tracked events carry, with the event each belongs to.

Inputs

Records to returnlimitnumber
How many records to return. Leave empty for 50.At least 1.
Next page cursorafter_cursortext
The cursor after which to read, from the last page's cursor. Leave empty for the first page.

Outputs

dataobject
The response from Userpilot.
Example output
{
  "data": {
    "data": [
      {
        "category": "example",
        "data_type": "example",
        "description": "example",
        "display_name": "example",
        "event": {
          "display_name": "example",
          "id": 1
        },
        "id": 1,
        "inserted_at": "example",
        "is_archived": true,
        "is_auto_property": true,
        "key": "example",
        "last_seen": "example"
      }
    ],
    "metadata": {
      "cursor": {
        "after": "example",
        "before": "example"
      },
      "limit": 1,
      "total_count": 1
    }
  }
}

List exports

List data export jobs started with this API key, with their progress.

Inputs

None.

Outputs

datalist
The response from Userpilot.
Example output
{
  "data": [
    {
      "elapsed_time": "example",
      "end_time": "example",
      "job_id": "example",
      "progress": "example",
      "start_time": "example",
      "status": "example"
    }
  ]
}

List features and events

List the tracked features and events.

Inputs

None.

Outputs

datalist
The response from Userpilot.
Example output
{
  "data": [
    {
      "data_type": "example",
      "display_name": "example",
      "key": "example"
    }
  ]
}

List flows

List flows (in-app experiences).

Inputs

None.

Outputs

datalist
The response from Userpilot.
Example output
{
  "data": [
    {
      "id": 1,
      "title": "example"
    }
  ]
}

List jobs

List bulk update and import jobs with their status.

Inputs

None.

Outputs

datalist
The response from Userpilot.
Example output
{
  "data": [
    {
      "completed_rows": 1,
      "elapsed_time": 1,
      "end_time": "example",
      "file_size": 1,
      "filename": "example",
      "job_id": "example",
      "links": "example",
      "start_time": "example",
      "status": "example",
      "total_rows": 1,
      "type": "example"
    }
  ]
}

List resource center modules

List the modules of the resource center.

Inputs

None.

Outputs

datalist
The response from Userpilot.
Example output
{
  "data": [
    {
      "data_type": "example",
      "display_name": "example",
      "key": "example"
    }
  ]
}

List segments

List user and company segments.

Inputs

Records to returnlimitnumber
How many records to return. Leave empty for 50.At least 1.
Next page cursorafter_cursortext
The cursor after which to read, from the last page's cursor. Leave empty for the first page.

Outputs

dataobject
The response from Userpilot.
Example output
{
  "data": {
    "data": [
      {
        "category": "example",
        "id": 1,
        "is_hidden": true,
        "is_protected": true,
        "status": "example",
        "title": "example",
        "usage": "example"
      }
    ],
    "metadata": {
      "cursor": {
        "after": "example",
        "before": "example"
      },
      "limit": 1,
      "total_count": 1
    }
  }
}

List spotlights

List spotlights (tooltips, hotspots and buttons).

Inputs

None.

Outputs

datalist
The response from Userpilot.
Example output
{
  "data": [
    {
      "id": 1,
      "title": "example"
    }
  ]
}

List surveys

List surveys with their questions.

Inputs

None.

Outputs

datalist
The response from Userpilot.
Example output
{
  "data": [
    {
      "id": 1,
      "modules": [
        {
          "id": 1,
          "order": 1,
          "question": "example",
          "type": "example"
        }
      ],
      "platform": "example",
      "title": "example"
    }
  ]
}

List user properties

List the user properties Userpilot holds, with their types.

Inputs

None.

Outputs

datalist
The response from Userpilot.
Example output
{
  "data": [
    {
      "data_type": "example",
      "display_name": "example",
      "id": 1,
      "is_auto_property": true,
      "key": "example",
      "type": "example"
    }
  ]
}

Start export

Start exporting raw events, users and companies for a date range. Needs Userpilot's data export add-on.

Inputs

Fromfrom_datedateRequired
The first day to export.
Toto_datedateRequired
The last day to export.
Event typesevent_typeslist
Only these kinds of events. Leave empty for all of them.One or more of: identify_user (User identified), identify_company (Company identified), page_view (Page view), track (Tracked event), track_feature (Feature used), interaction (Content interaction), session_start (Session start).
User IDsuser_idslist
Only these users' data.
Company IDscompany_idslist
Only these companies' data.
Segmentsegment_idtext
Only users in this segment.
Formatformattext
The files' format. Leave empty for JSON.One of: json, csv.
Leave out excluded usersexclusionstrue/false
Leave out the users and companies excluded in Userpilot's settings.
Email links toemailslist
Email addresses to send the download links to when the export is ready.

Outputs

dataobject
The response from Userpilot.
Example output
{
  "data": {
    "environment_app_token": "example",
    "environment_name": "example",
    "job_id": "example",
    "links": "example",
    "start_time": "example"
  }
}

Track event

Record an event a user did, such as a purchase, for analytics and targeting.

Inputs

User IDusertextRequired
The user's ID in your product, the same one your app sends Userpilot.
Event nameevent_nametextRequired
The event's name, such as purchase_completed.
Event propertiespropertiesobject
Details of the event, by name, such as plan or amount.

Outputs

dataobject
The response from Userpilot.
Example output
{
  "data": {
    "accepted": true,
    "event_name": "example",
    "user_id": "example"
  }
}

Update email subscriptions

Unsubscribe or re-subscribe email addresses from some subscription types, or from every email.

Inputs

Email addressesemailslistRequired
Email addresses, up to 1,000.
Changestatustext
Unsubscribe or re-subscribe. Leave empty to unsubscribe.One of: unsubscribed (Unsubscribe), subscribed (Re-subscribe). Default: unsubscribed.
Subscription typestopic_idslist
The subscription types this applies to.
All emailsall_emailstrue/false
Apply it to every email, including ones with no subscription type.

Outputs

dataobject
The response from Userpilot.
Example output
{
  "data": {
    "received": 1,
    "rejected": [
      {
        "email": "example",
        "reason": "example"
      }
    ],
    "resubscribed": 1,
    "unsubscribed": 1
  }
}

On this page