# IRIS API Samples This folder contains sample code to call IRIS from the `soc-integrator` context. ## Python example ```bash python soc-integrator/examples/iris_api_examples.py ``` Environment variables: - `IRIS_BASE_URL` (default: `https://localhost:8443`) - `IRIS_API_KEY` (optional) - `IRIS_VERIFY_SSL` (default: `false`) - `INTEGRATOR_URL` (default: `http://localhost:8088`) ## Curl example ```bash bash soc-integrator/examples/iris_api_examples.sh ``` This script demonstrates: 1. Direct call to `IRIS /api/v2/cases` 2. Call through `soc-integrator /action/create-iris-case` ## Send sample event to Shuffle webhook Use this helper with the sample workflow: - `/Users/simplicoltd./projects/soc/shuffle-workflows/sample-webhook-soc-integrator-iris-workflow.json` Run: ```bash SHUFFLE_WEBHOOK_URL='http://localhost:3001/api/v1/hooks/webhook_xxx' \ bash soc-integrator/examples/send_to_shuffle_webhook.sh ``` Environment variables: - `SHUFFLE_WEBHOOK_URL` (required) - `INTEGRATOR_URL` (default: `http://localhost:8088`) - `INTERNAL_KEY` (optional)