Zapier: Add Activity
curl --request POST \
--url https://api.stardex.ai/zapier/zap-add-activity \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"note_content": "<string>",
"name": "<string>",
"linkedin_url": "<string>",
"email": "jsmith@example.com",
"emails": "<string>",
"phone": "<string>",
"description": "<string>",
"job_title": "<string>",
"owner_email": "<string>",
"source_tool": "<string>"
}
'import requests
url = "https://api.stardex.ai/zapier/zap-add-activity"
payload = {
"note_content": "<string>",
"name": "<string>",
"linkedin_url": "<string>",
"email": "jsmith@example.com",
"emails": "<string>",
"phone": "<string>",
"description": "<string>",
"job_title": "<string>",
"owner_email": "<string>",
"source_tool": "<string>"
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
note_content: '<string>',
name: '<string>',
linkedin_url: '<string>',
email: 'jsmith@example.com',
emails: '<string>',
phone: '<string>',
description: '<string>',
job_title: '<string>',
owner_email: '<string>',
source_tool: '<string>'
})
};
fetch('https://api.stardex.ai/zapier/zap-add-activity', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.stardex.ai/zapier/zap-add-activity",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'note_content' => '<string>',
'name' => '<string>',
'linkedin_url' => '<string>',
'email' => 'jsmith@example.com',
'emails' => '<string>',
'phone' => '<string>',
'description' => '<string>',
'job_title' => '<string>',
'owner_email' => '<string>',
'source_tool' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.stardex.ai/zapier/zap-add-activity"
payload := strings.NewReader("{\n \"note_content\": \"<string>\",\n \"name\": \"<string>\",\n \"linkedin_url\": \"<string>\",\n \"email\": \"jsmith@example.com\",\n \"emails\": \"<string>\",\n \"phone\": \"<string>\",\n \"description\": \"<string>\",\n \"job_title\": \"<string>\",\n \"owner_email\": \"<string>\",\n \"source_tool\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.stardex.ai/zapier/zap-add-activity")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"note_content\": \"<string>\",\n \"name\": \"<string>\",\n \"linkedin_url\": \"<string>\",\n \"email\": \"jsmith@example.com\",\n \"emails\": \"<string>\",\n \"phone\": \"<string>\",\n \"description\": \"<string>\",\n \"job_title\": \"<string>\",\n \"owner_email\": \"<string>\",\n \"source_tool\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.stardex.ai/zapier/zap-add-activity")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"note_content\": \"<string>\",\n \"name\": \"<string>\",\n \"linkedin_url\": \"<string>\",\n \"email\": \"jsmith@example.com\",\n \"emails\": \"<string>\",\n \"phone\": \"<string>\",\n \"description\": \"<string>\",\n \"job_title\": \"<string>\",\n \"owner_email\": \"<string>\",\n \"source_tool\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"message": "<string>",
"data": {
"created_activities": [
{
"activity_id": "<string>",
"person_id": "<string>",
"email": "<string>"
}
],
"activity_type": "<string>"
}
}{
"success": false,
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"success": false,
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"success": false,
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}Zapier Endpoints
Zapier: Add Activity
Creates an activity with Zapier-tuned behavior including bulk email processing and LLM-based person matching. Matching finishes within about 20 seconds; when it needs longer, the activity is saved without a person (person_id is null) and is matched in the background shortly after.
POST
/
zapier
/
zap-add-activity
Zapier: Add Activity
curl --request POST \
--url https://api.stardex.ai/zapier/zap-add-activity \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"note_content": "<string>",
"name": "<string>",
"linkedin_url": "<string>",
"email": "jsmith@example.com",
"emails": "<string>",
"phone": "<string>",
"description": "<string>",
"job_title": "<string>",
"owner_email": "<string>",
"source_tool": "<string>"
}
'import requests
url = "https://api.stardex.ai/zapier/zap-add-activity"
payload = {
"note_content": "<string>",
"name": "<string>",
"linkedin_url": "<string>",
"email": "jsmith@example.com",
"emails": "<string>",
"phone": "<string>",
"description": "<string>",
"job_title": "<string>",
"owner_email": "<string>",
"source_tool": "<string>"
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
note_content: '<string>',
name: '<string>',
linkedin_url: '<string>',
email: 'jsmith@example.com',
emails: '<string>',
phone: '<string>',
description: '<string>',
job_title: '<string>',
owner_email: '<string>',
source_tool: '<string>'
})
};
fetch('https://api.stardex.ai/zapier/zap-add-activity', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.stardex.ai/zapier/zap-add-activity",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'note_content' => '<string>',
'name' => '<string>',
'linkedin_url' => '<string>',
'email' => 'jsmith@example.com',
'emails' => '<string>',
'phone' => '<string>',
'description' => '<string>',
'job_title' => '<string>',
'owner_email' => '<string>',
'source_tool' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.stardex.ai/zapier/zap-add-activity"
payload := strings.NewReader("{\n \"note_content\": \"<string>\",\n \"name\": \"<string>\",\n \"linkedin_url\": \"<string>\",\n \"email\": \"jsmith@example.com\",\n \"emails\": \"<string>\",\n \"phone\": \"<string>\",\n \"description\": \"<string>\",\n \"job_title\": \"<string>\",\n \"owner_email\": \"<string>\",\n \"source_tool\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.stardex.ai/zapier/zap-add-activity")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"note_content\": \"<string>\",\n \"name\": \"<string>\",\n \"linkedin_url\": \"<string>\",\n \"email\": \"jsmith@example.com\",\n \"emails\": \"<string>\",\n \"phone\": \"<string>\",\n \"description\": \"<string>\",\n \"job_title\": \"<string>\",\n \"owner_email\": \"<string>\",\n \"source_tool\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.stardex.ai/zapier/zap-add-activity")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"note_content\": \"<string>\",\n \"name\": \"<string>\",\n \"linkedin_url\": \"<string>\",\n \"email\": \"jsmith@example.com\",\n \"emails\": \"<string>\",\n \"phone\": \"<string>\",\n \"description\": \"<string>\",\n \"job_title\": \"<string>\",\n \"owner_email\": \"<string>\",\n \"source_tool\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"message": "<string>",
"data": {
"created_activities": [
{
"activity_id": "<string>",
"person_id": "<string>",
"email": "<string>"
}
],
"activity_type": "<string>"
}
}{
"success": false,
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"success": false,
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"success": false,
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}Body
application/json
Was this page helpful?