Source system connectivity and metadata operations including credential validation, metadata retrieval, and preflight checks.
Authentication & metadata
Source system connectivity and metadata operations including credential validation, metadata retrieval, and preflight checks.
Endpoints
Test authentication
POST/workflows/v1/authVerify source system connection credentials and authentication parameters without performing any data operations. Validates connection string, authentication tokens, SSL certificates, and network accessibility. The exact shape of the request body is defined by the credentials needed by the app.
Request Body
Source system credentials for the connection to validate. The payload is deserialized into the handler's typed AuthInput and dispatched to handler.test_auth().
authTypestringREQUIRED"basic""oauth""token""basic"hoststringREQUIRED"localhost"portintegerREQUIRED5432usernamestringREQUIRED"username"passwordstringREQUIRED"password"databasestringREQUIRED"databasename"extraobjectoptional{
"ssl_cert": "-----BEGIN CERTIFICATE-----...",
"api_key": "sk-1234567890abcdef",
"oauth_token": "bearer_token_123",
"ssl_mode": "require"
}Response
successbooleanREQUIREDtruemessagestringREQUIRED"Authentication successful"Error Codes
Invalid request parameters or malformed JSON payload
Missing or invalid authentication token
Source system connectivity or authentication error
Code examples - Test authentication
- cURL
- Python
curl -X POST "http://localhost:8000/workflows/v1/auth" \
-H "Content-Type: application/json" \
-d '{
"authType": "basic",
"host": "localhost",
"port": 5432,
"username": "username",
"password": "password",
"database": "databasename"
}'
import requests
response = requests.post(
"http://localhost:8000/workflows/v1/auth",
json={
"authType": "basic",
"host": "localhost",
"port": 5432,
"username": "username",
"password": "password",
"database": "databasename"
}
)
auth_result = response.json()