What is an Endpoint Connection?
An Endpoint Connection tells Galtea how to call your AI system’s API. You configure the URL, authentication, request format, and response mapping once, and Galtea uses it to run evaluations against your endpoint automatically.Endpoint Connections are configured through the Galtea Dashboard only — they are not currently accessible via the SDK.
Use Cases
- Automate evaluations — Galtea calls your endpoint directly for each test case, no manual inference needed
- Standardize API calls — Define reusable configurations with consistent auth and request formatting
- Manage multiple environments — Create separate connections for development, staging, and production
Creating an Endpoint Connection
To create an Endpoint Connection:- Navigate to your product in the Galtea Dashboard
- Go to the “Endpoint Connections” section
- Click “New Endpoint Connection”
- Configure the connection properties as described below
Quick Start: Single Conversation Endpoint
Most integrations only need one Conversation endpoint. At its simplest, you just need to configure:- Input Template — How to format the request body (using
{{ input }}for the simulated user message) - Output Mapping — How to extract your product’s AI response (using a JSONPath expression for the
outputkey)
Multi-Step Session Lifecycle (Advanced)
Some AI products expose separate endpoints for session setup and cleanup. In those cases, you can configure up to three endpoint connections:- Initialization (optional): runs before conversation
- Conversation (required): runs for each turn
- Finalization (optional): runs after conversation
Session Lifecycle Flow
When a version has initialization and/or finalization endpoints configured, the evaluation follows this lifecycle:Example Use Case: Multi-Step Chatbot
Some chatbot APIs require multiple steps:- Initialization: create a session and return a
session_id - Conversation: send messages using that
session_id - Finalization: clean up the session
- Your Initialization connection extracts
session_idviaoutputMapping. - Your Conversation connection can reuse it in the URL/body using
{{ session_id }}. - Any additional fields extracted via
outputMappingare stored in session metadata and can also be reused in later turns.
Endpoint Connection Properties
A unique name for the endpoint connection within the product. Example: “Production Chat API” or “Staging Summarizer”
The purpose of the endpoint connection:
INITIALIZATION- Runs before the conversationCONVERSATION- Runs for each turnFINALIZATION- Runs after the conversation
The full URL of the endpoint. Must be a valid HTTP or HTTPS URL. Example: “https://api.company.com/v1/chat”
The HTTP method:
GET, POST, PUT, PATCH, or DELETE.Authentication method:
NONE, BEARER, API_KEY, or BASIC.The authentication token or credentials. This value is securely stored.
Optional custom headers to include with each request.
A Jinja2 template defining the request body. See Templates & Mapping for the full placeholder reference and examples.
A JSON object defining how to extract values from the response using JSONPath. See Templates & Mapping for special keys and examples.
Request timeout in seconds (1–300). Default: 30 seconds.
Optional rate limit for requests per minute.
Best Practices
Use descriptive names
Use descriptive names
Choose names that clearly identify the endpoint’s purpose and environment, such as “Production Chat API” or “Staging Document Analyzer”.
Configure appropriate timeouts
Configure appropriate timeouts
Set timeouts based on your endpoint’s expected response time. For complex AI operations, you may need longer timeouts (60-120 seconds).
Use retry configuration
Use retry configuration
Configure retries for endpoints that may experience transient failures. Start with 2-3 retries with exponential backoff. See Retry Configuration.
Secure your credentials
Secure your credentials
Never share your auth tokens. Galtea securely stores and encrypts all authentication credentials.
Related
Templates & Mapping
Full reference for Input Templates, Output Mapping, state management, and retry configuration.
Version
Attach endpoint connections to a version for evaluation.
Direct Inferences Tutorial
Run evaluations from the dashboard using your endpoint connection.