Skip to main content

Functions

RestAPI.com provides serverless functions that execute custom JavaScript code in response to events, on schedules, or via HTTP endpoints.

Function Types

TypeTriggerUse Case
TriggerData changes (POST, PUT, PATCH, DELETE)Validate, transform, sync data
TimerScheduled intervalsBackground jobs, cleanup, reports
InvocableHTTP requests to custom endpointsCustom APIs, webhooks, integrations

Quick Comparison

FeatureTriggerTimerInvocable
Automatic executionOn data changeOn scheduleManual (HTTP call)
Collection monitoringYesNoNo
Custom HTTP endpointNoNoYes
Access controlVia execution contextVia execution contextRole-based per method

Action Types

Functions can execute two types of actions:

ActionDescription
JavaScriptCustom code executed in serverless containers
External EndpointCall an external webhook/HTTP endpoint

In This Section