cURL
# Persist the key first. Reuse it only to inspect an uncertain result.
curl -X PATCH "https://api.superskope.com/api/v1/schedules/00000000-0000-4000-8000-000000000001/enabled" \
-H "Authorization: Bearer $SUPERSKOPE_API_KEY" \
-H "Idempotency-Key: $IDEMPOTENCY_KEY" \
-H "Content-Type: application/json" \
-d '{"enabled":false,"expectedUpdatedAt":"2026-11-26T09:00:00.000Z"}'import { SuperSkope } from '@superskope/sdk';
const client = new SuperSkope({
origin: 'https://api.superskope.com',
apiKey: process.env.SUPERSKOPE_API_KEY,
});
// Persist the key first. Reuse it only to inspect an uncertain result.
const idempotencyKey = process.env.IDEMPOTENCY_KEY;
const result = await client.setScheduleEnabled('00000000-0000-4000-8000-000000000001', false, '2026-11-26T09:00:00.000Z', { idempotencyKey });
console.log(result);
import os
import requests
response = requests.patch(
"https://api.superskope.com/api/v1/schedules/00000000-0000-4000-8000-000000000001/enabled",
headers={"Authorization": f"Bearer {os.environ['SUPERSKOPE_API_KEY']}", "Idempotency-Key": os.environ["IDEMPOTENCY_KEY"]},
json={"enabled": False, "expectedUpdatedAt": "2026-11-26T09:00:00.000Z"},
timeout=40,
)
print(response.status_code, response.json())
{
"id": "<string>",
"chat_id": "<string>",
"name": "<string>",
"updated_at": "<string>",
"enabled": 123,
"replayed": 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>"
}Scheduling
Pause or resume a schedule
Pause or resume a selected schedule. Requires schedules:write. Exact key-selected conversations and current phone are enforced. Completed identical repeats return the saved result. Unknown effects cannot execute again with that key; inspect /requests/.
cURL
# Persist the key first. Reuse it only to inspect an uncertain result.
curl -X PATCH "https://api.superskope.com/api/v1/schedules/00000000-0000-4000-8000-000000000001/enabled" \
-H "Authorization: Bearer $SUPERSKOPE_API_KEY" \
-H "Idempotency-Key: $IDEMPOTENCY_KEY" \
-H "Content-Type: application/json" \
-d '{"enabled":false,"expectedUpdatedAt":"2026-11-26T09:00:00.000Z"}'import { SuperSkope } from '@superskope/sdk';
const client = new SuperSkope({
origin: 'https://api.superskope.com',
apiKey: process.env.SUPERSKOPE_API_KEY,
});
// Persist the key first. Reuse it only to inspect an uncertain result.
const idempotencyKey = process.env.IDEMPOTENCY_KEY;
const result = await client.setScheduleEnabled('00000000-0000-4000-8000-000000000001', false, '2026-11-26T09:00:00.000Z', { idempotencyKey });
console.log(result);
import os
import requests
response = requests.patch(
"https://api.superskope.com/api/v1/schedules/00000000-0000-4000-8000-000000000001/enabled",
headers={"Authorization": f"Bearer {os.environ['SUPERSKOPE_API_KEY']}", "Idempotency-Key": os.environ["IDEMPOTENCY_KEY"]},
json={"enabled": False, "expectedUpdatedAt": "2026-11-26T09:00:00.000Z"},
timeout=40,
)
print(response.status_code, response.json())
{
"id": "<string>",
"chat_id": "<string>",
"name": "<string>",
"updated_at": "<string>",
"enabled": 123,
"replayed": 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>"
}