Galon Cloud
Galon API v1

/functions/sources

Base URL https://api.galon.ai/v1 · export GALON_API_BASE="https://api.galon.ai/v1"

POST /functions/sources

Upload a function source

Upload the JavaScript module of a function. Use when the function code is ready to deploy. Before: get_functions_pricing (needs job read access). Returns source (source_ref art_..., source_sha256, size_bytes) for deploy_function. Scope: functions:deploy.

API key (Bearer), on the public API endpoint.

Request body

application/javascript

Responses

StatusDescriptionBody
2XXSuccess: the JSON body the route returns (see the description for its fields).object
401Key missing or invalidError
4XXRefused: act on detail.code, then follow detail.next_action (404 not_found while the service is not open to the account).Error

Examples

curl

curl -X POST "$GALON_API_BASE/functions/sources" \
  -H "Authorization: Bearer $GALON_API_KEY"