Get Timeline Event
curl --request GET \
--url https://api.hubapi.com/integrations/v1/{application-id}/timeline/event/{event-type-id}/{event-id}import requests
url = "https://api.hubapi.com/integrations/v1/{application-id}/timeline/event/{event-type-id}/{event-id}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.hubapi.com/integrations/v1/{application-id}/timeline/event/{event-type-id}/{event-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://api.hubapi.com/integrations/v1/{application-id}/timeline/event/{event-type-id}/{event-id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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://api.hubapi.com/integrations/v1/{application-id}/timeline/event/{event-type-id}/{event-id}"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.hubapi.com/integrations/v1/{application-id}/timeline/event/{event-type-id}/{event-id}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.hubapi.com/integrations/v1/{application-id}/timeline/event/{event-type-id}/{event-id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body[
{
"id": "3",
"applicationId": 123456,
"portalId": 12345678,
"eventTypeId": 123,
"objectType": "CONTACT",
"objectId": 1,
"extraData": null,
"timestamp": 1416852689573
},
{
"name": "John Doe",
"weather": "Cloudy"
}
]v1
Get Timeline Event
Get the data for a specific timeline event. All data that the event has will be returned, including the optional fields that were set for you.
GET
/
integrations
/
v1
/
{application-id}
/
timeline
/
event
/
{event-type-id}
/
{event-id}
Get Timeline Event
curl --request GET \
--url https://api.hubapi.com/integrations/v1/{application-id}/timeline/event/{event-type-id}/{event-id}import requests
url = "https://api.hubapi.com/integrations/v1/{application-id}/timeline/event/{event-type-id}/{event-id}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.hubapi.com/integrations/v1/{application-id}/timeline/event/{event-type-id}/{event-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://api.hubapi.com/integrations/v1/{application-id}/timeline/event/{event-type-id}/{event-id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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://api.hubapi.com/integrations/v1/{application-id}/timeline/event/{event-type-id}/{event-id}"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.hubapi.com/integrations/v1/{application-id}/timeline/event/{event-type-id}/{event-id}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.hubapi.com/integrations/v1/{application-id}/timeline/event/{event-type-id}/{event-id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body[
{
"id": "3",
"applicationId": 123456,
"portalId": 12345678,
"eventTypeId": 123,
"objectType": "CONTACT",
"objectId": 1,
"extraData": null,
"timestamp": 1416852689573
},
{
"name": "John Doe",
"weather": "Cloudy"
}
]Scope requirements
Scope requirements
Antwort
200 - application/json
Successful response - Get the data for a specific timeline event
The response is of type object.
Zuletzt geändert am 1. April 2026
⌘I