HTTP
httpRequest
Global functions available to smart-app code. Call them by bare name; there is no object to import.
| Function | Summary |
|---|---|
httpRequest | Fire-and-forget outbound HTTP request from the hub. |
httpRequest
Not available to AI-generated user automations.
Fire-and-forget outbound HTTP request from the hub. Useful for hitting integrations the action catalog doesn't cover (chat platforms, IFTTT, custom backends). The host issues the request off-thread; smart-app callers don't see the response. Errors are logged on the host side. headers is an object of string values; body is sent verbatim (set Content-Type in headers to declare the encoding).
Signature
function httpRequest(opts: { url: string; method: 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE'; headers?: Record<string, string>; body?: string; }): { ok: boolean; reason?: string }Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
opts | { url: string; method: 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE'; headers?: Record<string, string>; body?: string; } | yes | — | Request description. |
opts.url | see signature | no | — | http or https URL. Loopback, link-local and multicast destinations are refused; LAN addresses are allowed. |
opts.method | see signature | no | — | One of GET, POST, PUT, PATCH, DELETE. |
opts.headers | see signature | no | — | String values only. Set Content-Type to declare the body encoding. |
opts.body | see signature | no | — | Sent verbatim. |
Returns
{ ok: boolean; reason?: string } — Whether the request was accepted for sending. The response is never visible to the app; failures are logged on the hub.
Notes
- Redirects are not followed.
- Not available to AI-generated user automations.
Examples
httpRequest({
url: 'https://hooks.example.com/novon',
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ event: 'door-open', at: new Date().toISOString() }),
});See also
Generated from docs-bundle v0.1.0, novon-platform 9ce3486c (2026-10-09).Apps and instances
getChildApps, getParent, getChildAppById, listSmartAppInstances, runSmartApp, pauseSmartApp, resumeSmartApp
Catalog introspection
getActionDomains, getServicesForDomain, getServiceParameters, getDomainStateOptions, getEntityDomains, getEntityFeatures, getHvacModeOptions, getFanModeOptions, getPlacePresenceOptions