Webhook-Historie
curl --request GET \
--url https://api.ayrshare.com/api/hook/history \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.ayrshare.com/api/hook/history', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.ayrshare.com/api/hook/history"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.ayrshare.com/api/hook/history",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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.ayrshare.com/api/hook/history"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.ayrshare.com/api/hook/history")
.header("Authorization", "Bearer <token>")
.asString();{
"social": [
{
"action": "social",
"created": "2025-09-05T23:13:08Z",
"displayName": "ayrshare",
"hookId": "6e4zPT9ozQpxD72WX78r",
"platform": "snapchat",
"refId": "9abf1426d6ce9122ef11c72bd62e59807c5cc083",
"source": "user",
"timeStamp": 1757166928,
"title": "Primary Profile",
"type": "link",
"url": "https://us-central1-ayrshare.cloudfunctions.net/testFeed"
},
{
"action": "social",
"created": "2025-09-05T23:13:00Z",
"displayName": "madworlds25",
"hookId": "UWURsgBxTdRAMCZJV4Yp",
"platform": "snapchat",
"refId": "9abf1426d6ce9122ef11c72bd62e59807c5cc083",
"source": "user",
"timeStamp": 1757166928,
"title": "Primary Profile",
"type": "unlink",
"url": "https://us-central1-ayrshare.cloudfunctions.net/testFeed"
}
],
"scheduled": [
{
"action": "scheduled",
"created": "2025-09-06T17:02:08Z",
"errors": [],
"hookId": "AxGbVck3Y7hsOdbAqVp7",
"id": "NAOWq7cQf1CsyT7vqTng",
"idShare": "v_pub_url~v2.7547022225119938615",
"isVideo": true,
"mediaUrls": [
"https://img.ayrshare.com/random/portrait8.mp4"
],
"platform": "tiktok",
"platforms": [
"tiktok"
],
"post": "Wise men talk because they have something to say; fools, because they have to say something. - Plato",
"postIds": [
{
"status": "success",
"idShare": "v_pub_url~v2.7547022225119938615",
"id": "7547022158694731022",
"isVideo": true,
"platform": "tiktok",
"postUrl": "https://www.tiktok.com/@helmar1066/video/7547022158694731022",
"mediaUrls": [
"https://img.ayrshare.com/random/portrait8.mp4"
]
}
],
"postUrl": "https://www.tiktok.com/@helmar1066/video/7547022158694731022",
"refId": "9abf1426d6ce9122ef11c72bd62e59807c5cc083",
"source": "user",
"status": "success",
"subAction": "tikTokPublished",
"timeStamp": 1757180499,
"title": "Primary Profile",
"url": "https://us-central1-ayrshare.cloudfunctions.net/testFeed"
},
{
"action": "scheduled",
"created": "2025-09-05T11:26:07Z",
"errors": [],
"hookId": "D92f6fMh2FCxNps4S27O",
"id": "2Is9BJkDdoBv01K4nZ2k",
"idShare": "v_pub_url~v2.7546563700132497463",
"isVideo": true,
"mediaUrls": [
"https://img.ayrshare.com/random/portrait6.mp4"
],
"platform": "tiktok",
"platforms": [
"tiktok"
],
"post": "Either write something worth reading or do something worth writing. - Benjamin Franklin",
"postIds": [
{
"status": "success",
"idShare": "v_pub_url~v2.7546563700132497463",
"id": "7546564355161099533",
"isVideo": true,
"platform": "tiktok",
"postUrl": "https://www.tiktok.com/@helmar1066/video/7546564355161099533",
"mediaUrls": [
"https://img.ayrshare.com/random/portrait6.mp4"
]
}
],
"postUrl": "https://www.tiktok.com/@helmar1066/video/7546564355161099533",
"refId": "9abf1426d6ce9122ef11c72bd62e59807c5cc083",
"source": "user",
"status": "success",
"subAction": "tikTokPublished",
"timeStamp": 1757180499,
"title": "Primary Profile",
"url": "https://us-central1-ayrshare.cloudfunctions.net/testFeed"
}
]
}
Webhooks
Webhook-Historie
Rufen Sie den Webhook-Zustellverlauf gruppiert nach Aktion ab
GET
/
hook
/
history
Webhook-Historie
curl --request GET \
--url https://api.ayrshare.com/api/hook/history \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.ayrshare.com/api/hook/history', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.ayrshare.com/api/hook/history"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.ayrshare.com/api/hook/history",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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.ayrshare.com/api/hook/history"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.ayrshare.com/api/hook/history")
.header("Authorization", "Bearer <token>")
.asString();{
"social": [
{
"action": "social",
"created": "2025-09-05T23:13:08Z",
"displayName": "ayrshare",
"hookId": "6e4zPT9ozQpxD72WX78r",
"platform": "snapchat",
"refId": "9abf1426d6ce9122ef11c72bd62e59807c5cc083",
"source": "user",
"timeStamp": 1757166928,
"title": "Primary Profile",
"type": "link",
"url": "https://us-central1-ayrshare.cloudfunctions.net/testFeed"
},
{
"action": "social",
"created": "2025-09-05T23:13:00Z",
"displayName": "madworlds25",
"hookId": "UWURsgBxTdRAMCZJV4Yp",
"platform": "snapchat",
"refId": "9abf1426d6ce9122ef11c72bd62e59807c5cc083",
"source": "user",
"timeStamp": 1757166928,
"title": "Primary Profile",
"type": "unlink",
"url": "https://us-central1-ayrshare.cloudfunctions.net/testFeed"
}
],
"scheduled": [
{
"action": "scheduled",
"created": "2025-09-06T17:02:08Z",
"errors": [],
"hookId": "AxGbVck3Y7hsOdbAqVp7",
"id": "NAOWq7cQf1CsyT7vqTng",
"idShare": "v_pub_url~v2.7547022225119938615",
"isVideo": true,
"mediaUrls": [
"https://img.ayrshare.com/random/portrait8.mp4"
],
"platform": "tiktok",
"platforms": [
"tiktok"
],
"post": "Wise men talk because they have something to say; fools, because they have to say something. - Plato",
"postIds": [
{
"status": "success",
"idShare": "v_pub_url~v2.7547022225119938615",
"id": "7547022158694731022",
"isVideo": true,
"platform": "tiktok",
"postUrl": "https://www.tiktok.com/@helmar1066/video/7547022158694731022",
"mediaUrls": [
"https://img.ayrshare.com/random/portrait8.mp4"
]
}
],
"postUrl": "https://www.tiktok.com/@helmar1066/video/7547022158694731022",
"refId": "9abf1426d6ce9122ef11c72bd62e59807c5cc083",
"source": "user",
"status": "success",
"subAction": "tikTokPublished",
"timeStamp": 1757180499,
"title": "Primary Profile",
"url": "https://us-central1-ayrshare.cloudfunctions.net/testFeed"
},
{
"action": "scheduled",
"created": "2025-09-05T11:26:07Z",
"errors": [],
"hookId": "D92f6fMh2FCxNps4S27O",
"id": "2Is9BJkDdoBv01K4nZ2k",
"idShare": "v_pub_url~v2.7546563700132497463",
"isVideo": true,
"mediaUrls": [
"https://img.ayrshare.com/random/portrait6.mp4"
],
"platform": "tiktok",
"platforms": [
"tiktok"
],
"post": "Either write something worth reading or do something worth writing. - Benjamin Franklin",
"postIds": [
{
"status": "success",
"idShare": "v_pub_url~v2.7546563700132497463",
"id": "7546564355161099533",
"isVideo": true,
"platform": "tiktok",
"postUrl": "https://www.tiktok.com/@helmar1066/video/7546564355161099533",
"mediaUrls": [
"https://img.ayrshare.com/random/portrait6.mp4"
]
}
],
"postUrl": "https://www.tiktok.com/@helmar1066/video/7546564355161099533",
"refId": "9abf1426d6ce9122ef11c72bd62e59807c5cc083",
"source": "user",
"status": "success",
"subAction": "tikTokPublished",
"timeStamp": 1757180499,
"title": "Primary Profile",
"url": "https://us-central1-ayrshare.cloudfunctions.net/testFeed"
}
]
}
Webhook-Historie
Rufen Sie den aktuellen Webhook-Zustellverlauf gruppiert nach Aktionstyp ab. Das Antwortobjekt enthält Schlüssel für jede Aktion (z. B.social, scheduled, messages, feed, batch, mentions, comments, automations), und jeder Schlüssel verweist auf ein Array von Ereignissen.
Header-Parameter
Query-Parameter
Die Webhook-Aktion, deren Historie der letzten 6 Monate zurückgegeben werden soll. Wenn nicht angegeben, werden alle Aktionen zurückgegeben.Verfügbare Aktionen:
social, scheduled, messages, feed, batch, mentions, comments, automations{
"social": [
{
"action": "social",
"created": "2025-09-05T23:13:08Z",
"displayName": "ayrshare",
"hookId": "6e4zPT9ozQpxD72WX78r",
"platform": "snapchat",
"refId": "9abf1426d6ce9122ef11c72bd62e59807c5cc083",
"source": "user",
"timeStamp": 1757166928,
"title": "Primary Profile",
"type": "link",
"url": "https://us-central1-ayrshare.cloudfunctions.net/testFeed"
},
{
"action": "social",
"created": "2025-09-05T23:13:00Z",
"displayName": "madworlds25",
"hookId": "UWURsgBxTdRAMCZJV4Yp",
"platform": "snapchat",
"refId": "9abf1426d6ce9122ef11c72bd62e59807c5cc083",
"source": "user",
"timeStamp": 1757166928,
"title": "Primary Profile",
"type": "unlink",
"url": "https://us-central1-ayrshare.cloudfunctions.net/testFeed"
}
],
"scheduled": [
{
"action": "scheduled",
"created": "2025-09-06T17:02:08Z",
"errors": [],
"hookId": "AxGbVck3Y7hsOdbAqVp7",
"id": "NAOWq7cQf1CsyT7vqTng",
"idShare": "v_pub_url~v2.7547022225119938615",
"isVideo": true,
"mediaUrls": [
"https://img.ayrshare.com/random/portrait8.mp4"
],
"platform": "tiktok",
"platforms": [
"tiktok"
],
"post": "Wise men talk because they have something to say; fools, because they have to say something. - Plato",
"postIds": [
{
"status": "success",
"idShare": "v_pub_url~v2.7547022225119938615",
"id": "7547022158694731022",
"isVideo": true,
"platform": "tiktok",
"postUrl": "https://www.tiktok.com/@helmar1066/video/7547022158694731022",
"mediaUrls": [
"https://img.ayrshare.com/random/portrait8.mp4"
]
}
],
"postUrl": "https://www.tiktok.com/@helmar1066/video/7547022158694731022",
"refId": "9abf1426d6ce9122ef11c72bd62e59807c5cc083",
"source": "user",
"status": "success",
"subAction": "tikTokPublished",
"timeStamp": 1757180499,
"title": "Primary Profile",
"url": "https://us-central1-ayrshare.cloudfunctions.net/testFeed"
},
{
"action": "scheduled",
"created": "2025-09-05T11:26:07Z",
"errors": [],
"hookId": "D92f6fMh2FCxNps4S27O",
"id": "2Is9BJkDdoBv01K4nZ2k",
"idShare": "v_pub_url~v2.7546563700132497463",
"isVideo": true,
"mediaUrls": [
"https://img.ayrshare.com/random/portrait6.mp4"
],
"platform": "tiktok",
"platforms": [
"tiktok"
],
"post": "Either write something worth reading or do something worth writing. - Benjamin Franklin",
"postIds": [
{
"status": "success",
"idShare": "v_pub_url~v2.7546563700132497463",
"id": "7546564355161099533",
"isVideo": true,
"platform": "tiktok",
"postUrl": "https://www.tiktok.com/@helmar1066/video/7546564355161099533",
"mediaUrls": [
"https://img.ayrshare.com/random/portrait6.mp4"
]
}
],
"postUrl": "https://www.tiktok.com/@helmar1066/video/7546564355161099533",
"refId": "9abf1426d6ce9122ef11c72bd62e59807c5cc083",
"source": "user",
"status": "success",
"subAction": "tikTokPublished",
"timeStamp": 1757180499,
"title": "Primary Profile",
"url": "https://us-central1-ayrshare.cloudfunctions.net/testFeed"
}
]
}
⌘I
