Skip to content

List functions

GET
/api/v1/projects/{id}/functions
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).

id
required
string

Project ID

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
Allowed values: background http
name
string
project_id
string
runtime
string
Allowed values: nodejs20 nodejs22
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
Allowed values: repeated_failures plan_limit
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