cURL
# Persist the key first. Reuse it only to inspect an uncertain result.
curl -X POST "https://api.superskope.com/api/v1/connection/disconnect" \
-H "Authorization: Bearer $SUPERSKOPE_API_KEY" \
-H "Idempotency-Key: $IDEMPOTENCY_KEY" \
-H "Content-Type: application/json" \
-d '{"confirm":true,"accountId":"910000000001@c.us","expectedVersion":3}'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.disconnectConnection('910000000001@c.us', 3, { idempotencyKey, confirm: true });
console.log(result);
import os
import requests
response = requests.post(
"https://api.superskope.com/api/v1/connection/disconnect",
headers={"Authorization": f"Bearer {os.environ['SUPERSKOPE_API_KEY']}", "Idempotency-Key": os.environ["IDEMPOTENCY_KEY"]},
json={"confirm": True, "accountId": "910000000001@c.us", "expectedVersion": 3},
timeout=40,
)
print(response.status_code, response.json())
{
"status": "<string>",
"accountId": "<string>",
"connectedAccountId": "<string>",
"confirmed": true,
"mismatch": true,
"paused": true,
"version": 1,
"state": "completed",
"requestId": "<string>",
"action": "<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>"
}{
"error": "<string>"
}{
"error": "<string>"
}Connection
Disconnect phone
Disconnect the linked phone. Requires connection:disconnect. Explicit account/version confirmation required. Pauses all outbound activity, cancels queued native/external-agent work, pauses agents and schedules, then logs out the assigned default session. Already-submitted remote work may finish. Available when billing is paused. Confirming the same number later does not auto-resume old work. No session file deletion or new number binding.
cURL
# Persist the key first. Reuse it only to inspect an uncertain result.
curl -X POST "https://api.superskope.com/api/v1/connection/disconnect" \
-H "Authorization: Bearer $SUPERSKOPE_API_KEY" \
-H "Idempotency-Key: $IDEMPOTENCY_KEY" \
-H "Content-Type: application/json" \
-d '{"confirm":true,"accountId":"910000000001@c.us","expectedVersion":3}'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.disconnectConnection('910000000001@c.us', 3, { idempotencyKey, confirm: true });
console.log(result);
import os
import requests
response = requests.post(
"https://api.superskope.com/api/v1/connection/disconnect",
headers={"Authorization": f"Bearer {os.environ['SUPERSKOPE_API_KEY']}", "Idempotency-Key": os.environ["IDEMPOTENCY_KEY"]},
json={"confirm": True, "accountId": "910000000001@c.us", "expectedVersion": 3},
timeout=40,
)
print(response.status_code, response.json())
{
"status": "<string>",
"accountId": "<string>",
"connectedAccountId": "<string>",
"confirmed": true,
"mismatch": true,
"paused": true,
"version": 1,
"state": "completed",
"requestId": "<string>",
"action": "<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>"
}{
"error": "<string>"
}{
"error": "<string>"
}Authorizations
Body
application/json
Response
Success