cURL
curl "https://api.superskope.com/api/v1/agents/api-example-agent-id/access?chatId=120000000000%40g.us" \
-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.agentAccess('api-example-agent-id', '120000000000@g.us');
console.log(result);
import os
import requests
response = requests.get(
"https://api.superskope.com/api/v1/agents/api-example-agent-id/access",
headers={"Authorization": f"Bearer {os.environ['SUPERSKOPE_API_KEY']}"},
params={"chatId": "120000000000@g.us"},
timeout=40,
)
print(response.status_code, response.json())
{
"chatId": "<string>",
"name": "<string>",
"selfIds": [
"<string>"
],
"participants": [
{
"ids": [
"<string>"
],
"admin": "<string>"
}
],
"membershipHash": "<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>"
}Agents
Get agent access
Read a delegated agent audience snapshot. Requires agents:read and chats:access:read. Explicit owner agentIds delegation and selected-chat authority remain required; management requires API-owned registrations; legacy callback identities are read/use-only when delegated.
cURL
curl "https://api.superskope.com/api/v1/agents/api-example-agent-id/access?chatId=120000000000%40g.us" \
-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.agentAccess('api-example-agent-id', '120000000000@g.us');
console.log(result);
import os
import requests
response = requests.get(
"https://api.superskope.com/api/v1/agents/api-example-agent-id/access",
headers={"Authorization": f"Bearer {os.environ['SUPERSKOPE_API_KEY']}"},
params={"chatId": "120000000000@g.us"},
timeout=40,
)
print(response.status_code, response.json())
{
"chatId": "<string>",
"name": "<string>",
"selfIds": [
"<string>"
],
"participants": [
{
"ids": [
"<string>"
],
"admin": "<string>"
}
],
"membershipHash": "<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>"
}