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

# sicarv4.custom.query

> Read-only free-form SQL (SELECT / SHOW / DESCRIBE only). INSERT/UPDATE/DELETE/DROP rejected. Mutations use registry *.create functions.

# `sicarv4.custom.query`

Read-only free-form SQL (SELECT / SHOW / DESCRIBE only). INSERT/UPDATE/DELETE/DROP rejected. Mutations use registry \*.create functions.

|                |            |
| -------------- | ---------- |
| **Adapter**    | `sicarv4`  |
| **Operation**  | `db.query` |
| **SQL policy** | `read`     |

## Parameters

| Name  | Kind  | Required | Notes                                                               |
| ----- | ----- | -------- | ------------------------------------------------------------------- |
| `sql` | `sql` | Yes      | Read-only SQL only (SELECT / SHOW TABLES / DESCRIBE / SHOW COLUMNS) |

## Example

```bash theme={"system"}
curl -s -X POST "$API/v1/devices/$DEVICE_ID/functions/sicarv4.custom.query" \
  -H "Authorization: Bearer $ORQUESTR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"input":{"sql":"SELECT art_id, clave, descripcion FROM articulo LIMIT 10"}}'
```
