Skip to main content
POST
/
endpointConnections
/
testConnection
Test endpoint connection
curl --request POST \
  --url https://api.galtea.ai/endpointConnections/testConnection \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "id": "id_123",
  "url": "https://api.example.com",
  "httpMethod": "<string>",
  "authType": "<string>",
  "authToken": "<string>",
  "username": "<string>",
  "password": "securePass123!",
  "headers": {},
  "inputTemplate": "<string>",
  "timeout": 123
}
'
{
  "success": true,
  "statusCode": 123,
  "latency": 123,
  "response": {},
  "error": "<string>"
}

Authorizations

Authorization
string
header
required

API key authorization. Pass your API key in the Authorization header as a Bearer token. Both new (gsk_*) and legacy (gsk-) API keys are accepted, e.g. Authorization: Bearer gsk_... or Authorization: Bearer gsk-....

Body

application/json
id
string

Optional ID of an existing endpoint connection. When provided, stored connection data is used as base and remaining fields act as overrides.

Example:

"id_123"

url
string

The endpoint URL to test

Example:

"https://api.example.com"

httpMethod
string

HTTP method (GET, POST, etc.)

authType
string

Authentication type (NONE, BEARER, API_KEY, BASIC)

authToken
string

Authentication token (for BEARER or API_KEY)

username
string

Username (for BASIC auth)

password
string

Password (for BASIC auth)

Example:

"securePass123!"

headers
object

Custom headers as key-value pairs

inputTemplate
string

Input template with Jinja2 placeholders

timeout
number

Request timeout in seconds

Response

Test connection result

success
boolean
statusCode
number
latency
number
response
object
error
string