سجل Webhook
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
الحصول على سجل تسليم webhook مجمّعًا حسب الإجراء
GET
/
hook
/
history
سجل Webhook
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
استرجع سجل تسليم webhook الأخير مجمّعًا حسب نوع الإجراء. يحتوي كائن الاستجابة على مفاتيح لكل إجراء (على سبيل المثال،social وscheduled وmessages وfeed وbatch وmentions وcomments وautomations)، ويقابل كل مفتاح مصفوفة من الأحداث.
معلمات الرأس
معلمات الاستعلام
إجراء webhook لإرجاع سجل آخر 6 أشهر. إذا لم يتم توفيره، فسيتم إرجاع جميع الإجراءات.الإجراءات المتاحة:
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
