Get function
const url = 'https://api.deploybase.eu/api/v1/api/v1/projects/example/functions/example';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/example \ --header 'Authorization: <Authorization>'Returns a single serverless function by ID. schedule is null when the function has no active cron schedule, else the schedule detail: the next three fire times, the pause state, the derived consecutive_failures streak, the last run and skip, and the plan’s schedule limits (DEP-247).
Authorizations
Section titled “ Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ”Project ID
Function ID
Responses
Section titled “ Responses ”OK
object
object
object
Schedule is null when the function has no active schedule.
object
ConsecutiveFailures is derived, not stored: the newest consecutive failures among the last 10 terminal scheduled runs since the failure window last moved (a deploy of changed code or a resume). 10 pauses the schedule.
NextRuns are the next fire times (slot plus jitter), RFC 3339 UTC. While paused, they are the times a resume right now would lead to.
The plan’s schedule limits. Null when the plan could not be resolved.
Example
{ "data": { "kind": "background", "runtime": "nodejs20", "schedule": { "cron": "0 * * * *", "jitter_seconds": 17, "last_skip_reason": "overlap", "next_runs": [ "2026-10-02T13:00:17Z" ], "pause_reason": "repeated_failures" } }}Bad Request
object
object
Example generated
{ "code": "example", "details": "example", "error": "example", "meta": { "request_id": "example", "timestamp": "example", "trace_id": "example" }}Not Found
object
object
Example generated
{ "code": "example", "details": "example", "error": "example", "meta": { "request_id": "example", "timestamp": "example", "trace_id": "example" }}Internal Server Error
object
object
Example generated
{ "code": "example", "details": "example", "error": "example", "meta": { "request_id": "example", "timestamp": "example", "trace_id": "example" }}Live 174db30c built