cURL
curl --request GET \
--url https://app.revyops.com/api/public/activities/batch/{batch_id}/ \
--header 'X-API-KEY: <api-key>'import requests
url = "https://app.revyops.com/api/public/activities/batch/{batch_id}/"
headers = {"X-API-KEY": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-KEY': '<api-key>'}};
fetch('https://app.revyops.com/api/public/activities/batch/{batch_id}/', 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://app.revyops.com/api/public/activities/batch/{batch_id}/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"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"
"net/http"
"io"
)
func main() {
url := "https://app.revyops.com/api/public/activities/batch/{batch_id}/"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-KEY", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://app.revyops.com/api/public/activities/batch/{batch_id}/")
.header("X-API-KEY", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.revyops.com/api/public/activities/batch/{batch_id}/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-KEY"] = '<api-key>'
response = http.request(request)
puts response.read_bodyActivities
Get Batch Result
Returns what happened to each event in a batch: stored, duplicate or unmatched.
GET
/
public
/
activities
/
batch
/
{batch_id}
/
cURL
curl --request GET \
--url https://app.revyops.com/api/public/activities/batch/{batch_id}/ \
--header 'X-API-KEY: <api-key>'import requests
url = "https://app.revyops.com/api/public/activities/batch/{batch_id}/"
headers = {"X-API-KEY": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-KEY': '<api-key>'}};
fetch('https://app.revyops.com/api/public/activities/batch/{batch_id}/', 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://app.revyops.com/api/public/activities/batch/{batch_id}/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"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"
"net/http"
"io"
)
func main() {
url := "https://app.revyops.com/api/public/activities/batch/{batch_id}/"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-KEY", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://app.revyops.com/api/public/activities/batch/{batch_id}/")
.header("X-API-KEY", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.revyops.com/api/public/activities/batch/{batch_id}/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-KEY"] = '<api-key>'
response = http.request(request)
puts response.read_bodyReturns what happened to a batch sent with Log Activities in Bulk. Only batches sent with a key for the same workspace are visible.
A
{
"batch_id": "4e7c9b1e-2f1a-4c8e-9a51-1b7d3c0e6f42",
"state": "done",
"received": 1000,
"stored": 962,
"duplicates": 20,
"unmatched": 18,
"unmatched_ids": ["u8821:opened_app:2026-10-08", "u9020:opened_app:2026-10-08"],
"created_at": "2026-10-09T03:10:04+00:00",
"finished_at": "2026-10-09T03:10:11+00:00",
"error": ""
}
| Field | Meaning |
|---|---|
state | queued, running, done or failed. |
stored | Events saved and linked to a contact or company. |
duplicates | Events whose id was already stored for that type and source. Nothing changed. |
unmatched | Events whose phone, email, LinkedIn URL or domain matched no record. They are not stored. Once the record exists, send them again. |
unmatched_ids | The ids of unmatched events. |
failed batch keeps the events stored before the failure. Sending the same batch again completes it without duplicates.Was this page helpful?

