List functions
GET
/api/v1/projects/{id}/functions
const url = 'https://api.deploybase.eu/api/v1/api/v1/projects/example/functions';const options = {method: 'GET', headers: {Authorization: '<Authorization>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.deploybase.eu/api/v1/api/v1/projects/example/functions \ --header 'Authorization: <Authorization>'Returns all active serverless functions for a project. Each item carries schedule: null when the function has no active cron schedule, else its cron, next_run_at (the stored fire time, slot plus jitter), paused and pause_reason (DEP-247).
Authorizations
Section titled “ Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ” id
required
string
Project ID
Responses
Section titled “ Responses ”OK
Media type application/json
object
data
meta
object
request_id
string
timestamp
string
trace_id
string
data
Array<object>
object
active
boolean
created_at
string
deployment_id
string
file_path
string
id
string
image_ref
string
kind
string
name
string
project_id
string
runtime
string
schedule
Schedule is null when the function has no active schedule.
object
cron
string
next_run_at
NextRunAt is the stored fire time (slot plus jitter). While paused it is the value the schedule had when it paused; a resume recomputes it.
string
pause_reason
string
paused
boolean
source_hash
string
team_id
string
timeout_seconds
integer
updated_at
string
Example
{ "data": [ { "kind": "background", "runtime": "nodejs20", "schedule": { "cron": "0 * * * *", "pause_reason": "repeated_failures" } } ]}Bad Request
Media type application/json
object
code
string
details
error
string
meta
object
request_id
string
timestamp
string
trace_id
string
Example generated
{ "code": "example", "details": "example", "error": "example", "meta": { "request_id": "example", "timestamp": "example", "trace_id": "example" }}Unauthorized
Media type application/json
object
code
string
details
error
string
meta
object
request_id
string
timestamp
string
trace_id
string
Example generated
{ "code": "example", "details": "example", "error": "example", "meta": { "request_id": "example", "timestamp": "example", "trace_id": "example" }}Internal Server Error
Media type application/json
object
code
string
details
error
string
meta
object
request_id
string
timestamp
string
trace_id
string
Example generated
{ "code": "example", "details": "example", "error": "example", "meta": { "request_id": "example", "timestamp": "example", "trace_id": "example" }}Live a8b7eb1d built