cURL
curl "https://api.superskope.com/api/v1/events" \
-H "Authorization: Bearer $SUPERSKOPE_API_KEY"import { SuperSkope } from '@superskope/sdk';
const client = new SuperSkope({
origin: 'https://api.superskope.com',
apiKey: process.env.SUPERSKOPE_API_KEY,
});
// Save page.nextCursor and pass it next time
const result = await client.events();
console.log(result);
import os
import requests
response = requests.get(
"https://api.superskope.com/api/v1/events",
headers={"Authorization": f"Bearer {os.environ['SUPERSKOPE_API_KEY']}"},
timeout=40,
)
print(response.status_code, response.json())
{
"events": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "message.received",
"createdAt": "2023-11-07T05:31:56Z",
"accountId": "<string>",
"chatId": "<string>",
"data": {}
}
],
"nextCursor": "<string>",
"hasMore": true
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}Events and logs
Start or pull events
Start or pull a metadata event cursor. Requires events:read. Metadata only, filtered to exact selected chats. Event types: message.received, message.sent, message.receipt, message.reaction, message.edited, message.deleted, message.submitted, message.uncertain, connection.changed, group.joined, group.left, group.updated, group.participants and agent.message. Fetch scoped message/history endpoints for content. Source retention is seven days or 50,000 events; HTTP 410 requires resync and a new cursor. Existing linked sessions need an approved webhook configuration refresh for newly added event types; no live pinned-engine contract test is implied.
cURL
curl "https://api.superskope.com/api/v1/events" \
-H "Authorization: Bearer $SUPERSKOPE_API_KEY"import { SuperSkope } from '@superskope/sdk';
const client = new SuperSkope({
origin: 'https://api.superskope.com',
apiKey: process.env.SUPERSKOPE_API_KEY,
});
// Save page.nextCursor and pass it next time
const result = await client.events();
console.log(result);
import os
import requests
response = requests.get(
"https://api.superskope.com/api/v1/events",
headers={"Authorization": f"Bearer {os.environ['SUPERSKOPE_API_KEY']}"},
timeout=40,
)
print(response.status_code, response.json())
{
"events": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "message.received",
"createdAt": "2023-11-07T05:31:56Z",
"accountId": "<string>",
"chatId": "<string>",
"data": {}
}
],
"nextCursor": "<string>",
"hasMore": true
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}