cURL
curl -X PUT "https://api.superskope.com/api/v1/chats/120000000000@g.us/presence" \
-H "Authorization: Bearer $SUPERSKOPE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"agentId":"api-example-agent-id","on":true}'import { SuperSkope } from '@superskope/sdk';
const client = new SuperSkope({
origin: 'https://api.superskope.com',
apiKey: process.env.SUPERSKOPE_API_KEY,
});
const result = await client.presence('120000000000@g.us', 'api-example-agent-id', true);
console.log(result);
import os
import requests
response = requests.put(
"https://api.superskope.com/api/v1/chats/120000000000@g.us/presence",
headers={"Authorization": f"Bearer {os.environ['SUPERSKOPE_API_KEY']}"},
json={"agentId": "api-example-agent-id", "on": True},
timeout=40,
)
print(response.status_code, response.json())
{
"ok": true,
"leaseSeconds": 0
}{
"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>"
}Agents
Set typing presence
Set a bounded delegated-bot typing lease. Requires presence:write and agents:use. Explicit owner agentIds delegation and selected-chat authority remain required; management requires API-owned registrations; legacy callback identities are read/use-only when delegated. Transient operation; no Idempotency-Key. Separate bounded presence budget and lease expiry apply.
cURL
curl -X PUT "https://api.superskope.com/api/v1/chats/120000000000@g.us/presence" \
-H "Authorization: Bearer $SUPERSKOPE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"agentId":"api-example-agent-id","on":true}'import { SuperSkope } from '@superskope/sdk';
const client = new SuperSkope({
origin: 'https://api.superskope.com',
apiKey: process.env.SUPERSKOPE_API_KEY,
});
const result = await client.presence('120000000000@g.us', 'api-example-agent-id', true);
console.log(result);
import os
import requests
response = requests.put(
"https://api.superskope.com/api/v1/chats/120000000000@g.us/presence",
headers={"Authorization": f"Bearer {os.environ['SUPERSKOPE_API_KEY']}"},
json={"agentId": "api-example-agent-id", "on": True},
timeout=40,
)
print(response.status_code, response.json())
{
"ok": true,
"leaseSeconds": 0
}{
"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>"
}