Skip to main content

GET /scripts/{script_id}/functions

Published functions from supabase/functions/. Authentication: Scope: scripts.read Path parameters: script_id Response: { name, status, error, live_sha, updated_at, last_run_at, url }[]
cURL

POST /scripts/{script_id}/deploy

Redeploys the backend from the default branch. Authentication: Scope: functions.deploy Path parameters: script_id Response: { sha, functions, removed, collections, error }
cURL

POST /scripts/{script_id}/functions/{name}

Calls a function as the token’s user (request.user = @username). The body becomes request.body. Authentication: Scope: scripts.read
The function receives request.method = "POST", request.body with the submitted JSON, and request.query with the URL parameters. The X-DoglyTdc-Function-Ms header contains the execution time. Limit: 120 calls per minute per person and script.
Path parameters: script_id, name URL parameters: forwarded in request.query Body: any JSON Response: whatever the function returns
cURL