# Persist the key first. Reuse it only to inspect an uncertain result.
curl -X POST "https://api.superskope.com/api/v1/groups" \
-H "Authorization: Bearer $SUPERSKOPE_API_KEY" \
-H "Idempotency-Key: $IDEMPOTENCY_KEY" \
-H "Content-Type: application/json" \
-d '{"subject":"Order updates","participants":["910000000001@c.us"]}'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.createGroup('Order updates', ['910000000001@c.us'], { idempotencyKey });
console.log(result);
import os
import requests
response = requests.post(
"https://api.superskope.com/api/v1/groups",
headers={"Authorization": f"Bearer {os.environ['SUPERSKOPE_API_KEY']}", "Idempotency-Key": os.environ["IDEMPOTENCY_KEY"]},
json={"subject": "Order updates", "participants": ["910000000001@c.us"]},
timeout=40,
)
print(response.status_code, response.json())
{
"requestId": "<string>",
"state": "completed",
"groupId": "<string>",
"requiresOwnerChatGrant": 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>"
}{
"error": "<string>"
}Create a group
Create a WhatsApp group. Requires groups:create, an explicit phone-wide permission separate from selected chats. Send subject (1–100 characters) and up to 20 full phone numbers or participant IDs. Without groups:created, the returned group requires a separate owner conversation grant. Optional groups:created (unchecked by default) grants access only to groups verified as successfully created by this key on this account and phone; read, send and management operations still require their separate scopes. Explicit selections stay unchanged. Durable grants are stored before a completed response; scope removal, revocation, expiry and owner removal invalidate derived access. Maximum 1,000 grants and unresolved reservations per key; capacity is reserved before creation. Unknown results and failed grant persistence never grant access or automatically retry. Stable Idempotency-Key required; never repeat uncertain creation with a new key.
# Persist the key first. Reuse it only to inspect an uncertain result.
curl -X POST "https://api.superskope.com/api/v1/groups" \
-H "Authorization: Bearer $SUPERSKOPE_API_KEY" \
-H "Idempotency-Key: $IDEMPOTENCY_KEY" \
-H "Content-Type: application/json" \
-d '{"subject":"Order updates","participants":["910000000001@c.us"]}'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.createGroup('Order updates', ['910000000001@c.us'], { idempotencyKey });
console.log(result);
import os
import requests
response = requests.post(
"https://api.superskope.com/api/v1/groups",
headers={"Authorization": f"Bearer {os.environ['SUPERSKOPE_API_KEY']}", "Idempotency-Key": os.environ["IDEMPOTENCY_KEY"]},
json={"subject": "Order updates", "participants": ["910000000001@c.us"]},
timeout=40,
)
print(response.status_code, response.json())
{
"requestId": "<string>",
"state": "completed",
"groupId": "<string>",
"requiresOwnerChatGrant": 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>"
}{
"error": "<string>"
}