cURL
curl "https://api.superskope.com/api/v1/chats/120000000000@g.us/access" \
-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.access('120000000000@g.us');
console.log(result);
import os
import requests
response = requests.get(
"https://api.superskope.com/api/v1/chats/120000000000@g.us/access",
headers={"Authorization": f"Bearer {os.environ['SUPERSKOPE_API_KEY']}"},
timeout=40,
)
print(response.status_code, response.json())
{
"accountId": "<string>",
"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>"
}Transport
Get chat access
Read current membership and verified aliases. Requires chats:access:read. Selected-conversation access and current account checks apply.
cURL
curl "https://api.superskope.com/api/v1/chats/120000000000@g.us/access" \
-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.access('120000000000@g.us');
console.log(result);
import os
import requests
response = requests.get(
"https://api.superskope.com/api/v1/chats/120000000000@g.us/access",
headers={"Authorization": f"Bearer {os.environ['SUPERSKOPE_API_KEY']}"},
timeout=40,
)
print(response.status_code, response.json())
{
"accountId": "<string>",
"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>"
}