Returns
Returns an Endpoint Connection object for the given parameters, orNone if an error occurs.
Example
Parameters
Name of the endpoint connection. Must be unique per product.
ID of the product this connection belongs to.
The endpoint URL (HTTPS only). For multi-step session lifecycles, the URL supports a
{{ session_id }} placeholder for dynamic session IDs (e.g., https://api.example.com/v1/threads/{{ session_id }}/messages). Only available when an INITIALIZATION endpoint connection returns a session_id.Type of endpoint connection. Valid values:
INITIALIZATION, CONVERSATION, FINALIZATION.
CONVERSATION is required for all products. INITIALIZATION and FINALIZATION are only needed
for complex session management
(e.g., when your API requires a separate setup call that returns a session ID, or a cleanup call
after the conversation ends).HTTP method. Valid values:
GET, POST, PUT, PATCH, DELETE. Defaults to POST.Authentication type. Valid values:
NONE, BEARER, API_KEY, BASIC. Defaults to BEARER.Authentication token. Required for
BEARER and API_KEY auth types.Username for
BASIC authentication.Password for
BASIC authentication.Custom headers as key-value pairs. Supports credential placeholders (e.g.,
{{ bearer_token }}, {{ api_key }}). See Custom Headers.Input template with Jinja2 placeholders. Required for
CONVERSATION type. Must contain {{ input }}. See Templates & Mapping.Output mapping configuration using JSONPath expressions. Required for
INITIALIZATION (needs session_id) and CONVERSATION (needs output) types. See Templates & Mapping.Request timeout in seconds.
Maximum requests per minute.
Whether automatic retry is enabled. Defaults to
false. See Retry Configuration.Maximum retry attempts (0–10). Defaults to
3.Initial delay in milliseconds before first retry. Defaults to
1000.Backoff strategy. Valid values:
FIXED, EXPONENTIAL, LINEAR.Maximum delay cap in milliseconds. Defaults to
30000.HTTP status codes that trigger retry. Defaults to
[429, 500, 502, 503, 504].