Overview
This tutorial walks through the process of sending records from a Clay sheet into Unify. To do this, we’ll set up a webhook in Clay that sends records to the Data API.Prerequisites
- An existing Clay sheet that you want to send into Unify
- An existing API key for Unify
Steps
Select the webhook action

The webhook action appears under Enrichments in the Actions pane.

Select the HTTP API action from the menu.

After selecting the HTTP API action, the configuration panel should appear.
Add credentials

The Configure tab can be selected in the top-right corner of the panel.
X-Api-Key whose value is your Unify API key.
Fill in your Unify credentials here.
Determine which object to use
company.For an overview of how objects work in Unify, see Objects in Unify.Construct the request
{object_name} with the API name of the object you
want to send records into (e.g., company, person, or a custom object).For example, the company object’s API name is company, so the URL is:-
Method: Choose
POSTwhen performing an upsert. For other operations, use the correct method from the API reference. - Endpoint: Insert the URL of the API constructed above.
-
Body: A valid payload for the Upsert method. For example:
A person upsert can also include a nested company match or upsert:Be sure to replace these placeholders with the actual column names from your Clay sheet. Press the slash (
/) key to select a column when editing the body.

A fully configured HTTP API action for upserting records into Unify.
Test and save

Test the configured API call for the first five rows in the sheet.

Test the configured API call for the first five rows in the sheet.

View the full API response for a specific row.
FAQ
Why am I getting an undefined or 400 status code error response?
Why am I getting an undefined or 400 status code error response?
- Inspect the response: All error responses should contain details about why the request failed. Click into the cell in the sheet to view the full response and look for any error messages or details.
- Check the object API name: The URL must use the object’s API name,
such as
company,person, or the custom object API name from settings. - Check the upsert body: Upsert requests must include
matchand one ofcreate,create_or_update, orcreate_or_update_if_empty. - Check the body formatting: Ensure that the JSON body correctly matches the expected format of the Data API method you are trying to use. Double check that all Clay column variable placeholders are inside quotation marks.
- Check nested references: If you are linking a person to a company, make sure the nested company value is a valid match, create, or upsert payload.
- Check for sheet errors: Look for a red error symbol in the column name of the HTTP API column in the sheet. Sometimes, this will indicate an error in the Clay UI. For example, you may be referencing a deleted column name, or there may have been a subtle error when pasting the body into the Clay UI.