cURL
curl "https://api.superskope.com/api/v1/connection" \
-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,
});
const result = await client.connection();
console.log(result);
import os
import requests
response = requests.get(
"https://api.superskope.com/api/v1/connection",
headers={"Authorization": f"Bearer {os.environ['SUPERSKOPE_API_KEY']}"},
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
Get connection
Read this phone connection. Requires connection:read. Works with connection-only keys before first pairing. Status reads never start or restart a session.
cURL
curl "https://api.superskope.com/api/v1/connection" \
-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,
});
const result = await client.connection();
console.log(result);
import os
import requests
response = requests.get(
"https://api.superskope.com/api/v1/connection",
headers={"Authorization": f"Bearer {os.environ['SUPERSKOPE_API_KEY']}"},
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
Response
Success