SOURCE_HTTP
All functions > SOURCE > SOURCE_HTTP
Creates a HTTP connection to the given URI
Signatures
Returns: HTTP source connection for online API calls
SOURCE_HTTP(uri: VARCHAR, [method: VARCHAR], [path: VARCHAR], [headers: ROW], [query_params: ROW], [body: ROW], [timeout: DECIMAL]) → HTTPSOURCE sql
| Parameter | Type | Required | Description |
|---|---|---|---|
uri | VARCHAR | Yes | Base URI for HTTP requests (e.g., ' https://api.example.com ') |
method | VARCHAR | No | Optional HTTP method (GET, POST, etc.) |
path | VARCHAR | No | Optional URL path to append to base URI |
headers | ROW | No | Optional ROW of HTTP headers |
query_params | ROW | No | Optional ROW of query string parameters |
body | ROW | No | Optional ROW for request body (JSON) |
timeout | DECIMAL | No | Optional request timeout |
Notes
- Creates HTTP connection for real-time API feature enrichment
- Supports RESTful API calls with full control over HTTP parameters
- Connection config reused across requests
- Online-only restriction (for real-time serving)
- Used with EXTERNAL_HTTP to make actual API calls
- Supports GET, POST, PUT, DELETE, PATCH methods
- Returns JSON responses parsed as feature values
On this page