Skip to main content
Some HR systems don’t allow a third-party connection to read their data. Rippling, for example, only lets App Shop partners use its API. When your HR system can’t connect through HR sync, let it tell Primo about each hire and each departure instead: an automation in your HR system calls the Primo API, and the cockpit starts the onboarding or the offboarding.
These endpoints start one onboarding or one offboarding per call. They don’t sync your employee directory. To import the employees you already have, see Import employees.

Prerequisites

  • A Company API key with Read/write access. See Create API keys for Primo.
  • An HR system that can send an HTTP request when someone is hired or leaves: an automation, a workflow, or a webhook with a custom body and headers.

Start an onboarding

Send a POST request when someone is hired:
The cockpit starts the same onboarding an admin starts by hand for a hire who isn’t an employee yet. It creates the onboarding ticket and its steps, or hands the onboarding to the Onboarding Agent when it runs your onboardings. The agent reads data to fill in what the four fields don’t say.

Start an offboarding

Send a POST request when someone leaves:
The cockpit finds the employee who holds that email address and starts the offboarding with your offboarding settings. A hidden employee isn’t matched.

Handle the responses

Both endpoints answer 201 with the onboarding or the offboarding they created. A refusal carries an errorCode your automation can branch on:

Set it up in Rippling

Rippling’s Automation Studio calls the Primo API with its Call a public API step: one automation for hires, one for departures. Share this section with your Rippling admin.

Before you start

  • Your Rippling plan includes Automation Studio and its Call a public API step. Rippling documents this step for the Platform Pro subscription: check with your Rippling account manager if you don’t see it.
  • You are a Rippling super admin or full admin, or you have the Automation Studio permission.
  • You have a Primo Company API key with Read/write access. See Create API keys for Primo.

Create the automation for hires

1

Create the automation

In Rippling, go to Tools > Automation Studio and click Create automation. Name it, for example Primo – start onboarding.
2

Choose the trigger

Click Choose your automation trigger and pick the hire event your team uses: for example the new hire accepting their offer under When something happens, or Relative to start date (for example 14 days before the first day). Event names can differ slightly in your Rippling account: pick the closest one.
3

Add a Call a public API step

Click + Add a step > Call a public API, then fill in the step:
4

Map the payload to Rippling variables

Replace each placeholder with a Rippling variable, inserted with the lightning bolt icon:
Add or remove any field in data: the Onboarding Agent reads all of it.

Create the automation for departures

1

Create the automation

Create a second automation, for example Primo – start offboarding.
2

Choose the trigger

Under When something happens, pick the termination event, for example Termination request is submitted or its approval.
3

Add a Call a public API step

Use the URL https://api.getprimo.com/employee-offboardings, the POST method, and the same headers as for hires. Map the payload:

Test and activate

1

Test each step

Click Test step with a test employee. The test sends a real request: a 201 response means the cockpit created the onboarding or the offboarding. Find it under Onboardings or Offboardings, then ignore it.
2

Publish and activate

Click Save, publish the automation, and turn on Activate this automation. An automation runs only once it is both published and activated.
Each automation lists its runs in its Execution history tab. A run fails when Primo answers an error or doesn’t answer within 60 seconds: match the status code with Handle the responses.

Next steps

Create API keys for Primo

Generate a Primo API key to authenticate requests to the Primo REST API.

Set up HR sync

Connect your HR system to sync employee data automatically and let it drive onboardings, offboardings, and your employee directory.

Onboarding Agent

Let Primo AI run every new onboarding from instructions you write: it builds the ticket and its tasks, works with the new hire by email, and hands your team what it can’t do.