Skip to main content

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:
  1. Navigate to your product in the Galtea Dashboard
  2. Go to the “Endpoint Connections” section
  3. Click “New Endpoint Connection”
  4. 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 output key)
{
  "message": "{{ input }}"
}
This is all you need to start running evaluations against your endpoint. For advanced template syntax, conversation history loops, state management, and output mapping options, see Templates & Mapping.

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
In this setup:
  • Your Initialization connection extracts session_id via outputMapping.
  • Your Conversation connection can reuse it in the URL/body using {{ session_id }}.
  • Any additional fields extracted via outputMapping are stored in session metadata and can also be reused in later turns.

Endpoint Connection Properties

Name
Text
required
A unique name for the endpoint connection within the product. Example: “Production Chat API” or “Staging Summarizer”
Type
Enum
required
The purpose of the endpoint connection:
  • INITIALIZATION - Runs before the conversation
  • CONVERSATION - Runs for each turn
  • FINALIZATION - Runs after the conversation
URL
Text
required
The full URL of the endpoint. Must be a valid HTTP or HTTPS URL. Example: “https://api.company.com/v1/chat
HTTP Method
Enum
required
The HTTP method: GET, POST, PUT, PATCH, or DELETE.
Auth Type
Enum
required
Authentication method: NONE, BEARER, API_KEY, or BASIC.
Auth Token
Text
The authentication token or credentials. This value is securely stored.
Headers
JSON
Optional custom headers to include with each request.
Input Template
String (Jinja2)
required
A Jinja2 template defining the request body. See Templates & Mapping for the full placeholder reference and examples.
Output Mapping
JSON
required
A JSON object defining how to extract values from the response using JSONPath. See Templates & Mapping for special keys and examples.
Timeout
Number
Request timeout in seconds (1–300). Default: 30 seconds.
Rate Limit
Number
Optional rate limit for requests per minute.

Best Practices

Choose names that clearly identify the endpoint’s purpose and environment, such as “Production Chat API” or “Staging Document Analyzer”.
Set timeouts based on your endpoint’s expected response time. For complex AI operations, you may need longer timeouts (60-120 seconds).
Configure retries for endpoints that may experience transient failures. Start with 2-3 retries with exponential backoff. See Retry Configuration.
Never share your auth tokens. Galtea securely stores and encrypts all authentication credentials.

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.