@xano/developer-mcp 1.0.22 → 1.0.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -594,11 +594,13 @@ api.request {
|
|
|
594
594
|
url = "https://api.example.com/data"
|
|
595
595
|
method = "POST"
|
|
596
596
|
params = { key: "value" }
|
|
597
|
-
headers = [
|
|
597
|
+
headers = ["Content-Type: application/json", "Authorization: Bearer " ~ $env.API_KEY]
|
|
598
598
|
timeout = 30
|
|
599
599
|
} as $api_result
|
|
600
600
|
```
|
|
601
601
|
|
|
602
|
+
> **Note:** The `headers` parameter expects an array of text strings, where each string contains the header name and value separated by a colon (e.g., `["Content-Type: application/json", "X-Custom-Header: value"]`).
|
|
603
|
+
|
|
602
604
|
### Response Structure
|
|
603
605
|
|
|
604
606
|
The `api.request` statement returns an object with both request and response details:
|