Auto-Configure
An AI-powered feature that generates endpoint request and response mappings by analyzing curl commands, API documentation, or code snippets.
Overview
Configuring an endpoint in Rhesis requires specifying how to format requests to your API and how to extract fields from its responses. Auto-Configure automates this by using an LLM to analyze existing API documentation or examples and generate the configuration for you.
How It Works
- Provide reference material: Paste a curl command, a code snippet, OpenAPI spec excerpt, or a plain-text description of your API.
- LLM analysis: The auto-configure service sends the material to an LLM, which analyzes the request and response structure.
- Endpoint probing: The service probes your actual endpoint with a generated test request to validate the configuration.
- Self-correction: If the probe fails, the service feeds the error back to the LLM, which adjusts and retries—up to a configured number of attempts.
- Review and confirm: You review the proposed configuration in a two-step modal before it is saved.
Security Features
API Key Redaction: Auto-Configure automatically detects and redacts API keys and secrets from the reference material before sending it to the LLM. A warning is displayed in the UI when keys are detected.
SSRF Protection: Cloud metadata service addresses (such as 169.254.169.254) are blocked during endpoint probing to prevent Server-Side Request Forgery attacks. Localhost addresses are allowed to support local development.
UI Workflow
The auto-configure modal is integrated into the endpoint creation form and contains two steps:
- Input step: Paste your reference material
- Review step: Inspect the proposed configuration, edit if needed, and confirm
SDK Usage
Best Practices
- Review the auto-generated configuration carefully in the review step before saving, especially the response mappings
- Provide a representative example that includes a real (non-sensitive) request and response for best results
- Remove or redact API keys from your reference material before pasting—Auto-Configure will warn you if it detects them
- Test the auto-configured endpoint with a small test set before scaling up to a full test run