# RPC Interface (/reference/rest/rpc)



The RPC interface provides a developer-friendly way to call API methods using a natural `Resource.operation(args)` syntax.

How It Works [#how-it-works]

**Reads** execute immediately:

```
GET /rpc/Deals.find({"status":"active"})
```

**Mutations** return a confirmation URL (202 Accepted):

```
POST /rpc/Deals.create {"name": "Big Deal"}
→ 202 { confirmUrl: "/rpc/confirm/abc123" }
```

Clicking or fetching the confirmation URL executes the mutation. This makes mutations safe for browser-based exploration.

Read Operations [#read-operations]

| Method                          | Description                         |
| ------------------------------- | ----------------------------------- |
| `Resource.find(filter?, opts?)` | Query entities with optional filter |
| `Resource.get(id)`              | Get single entity by ID             |
| `Resource.count(filter?)`       | Count matching entities             |

Examples [#examples]

```bash
