> ## Documentation Index
> Fetch the complete documentation index at: https://docs.superskope.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Connect your own agent

> Run SuperSkope as a scoped WhatsApp backend for your own infrastructure.

Your server can integrate without the built-in AI or an open dashboard. Start with read access and explicitly approve any WhatsApp effects in your own host.

## 1. Link a number

An owner [links and confirms the business number](https://docs.superskope.com/guides/connect.md). Each customer key belongs to that one phone. Keep the service online.

## 2. Create a scoped customer key

In **Developer**, choose a name, expiry, exact conversations and permissions. Start with `status:read`, `chats:read`, `messages:read` and `events:read` as needed. Select `messages:write` separately to send. Copy the secret once into your backend’s secret store.

## 3. Verify from your backend

Replace the example origin with your dedicated installation address. The domain below is a placeholder. Examples only copy text; this documentation cannot execute API calls.

```bash theme={null}
export SUPERSKOPE_URL="https://your-installation.example"
export SUPERSKOPE_API_KEY="<your-customer-api-key>"

curl "$SUPERSKOPE_URL/api/v1/status" \
  -H "Authorization: Bearer $SUPERSKOPE_API_KEY"

curl "$SUPERSKOPE_URL/api/v1/chats" \
  -H "Authorization: Bearer $SUPERSKOPE_API_KEY"
```

Use the exact returned chat ID. IDs are opaque; never invent phone/LID aliases.

## 4. Receive events and reply deliberately

Persist an [event cursor or signed webhook event ID](https://docs.superskope.com/developers/events.md), fetch selected-chat history for content, then run your own agent policy. A callback duplicate must never create a second send.

Send using a stable `Idempotency-Key`, save the returned request identifier and inspect uncertain results using the original key. See [replies and attachments](https://docs.superskope.com/developers/messages.md) and [safe requests](https://docs.superskope.com/developers/reliability.md).

The [SDK and MCP guide](https://docs.superskope.com/developers/sdk-mcp.md) covers downloads and explicit host approval for writes. The [endpoint index](https://docs.superskope.com/developers/endpoints.md) and API reference describe the current contract.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.