List invocations
const url = 'https://api.deploybase.eu/api/v1/api/v1/projects/example/functions/example/invocations?page=1&page_size=20&trigger=queued';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/invocations?page=1&page_size=20&trigger=queued' \ --header 'Authorization: <Authorization>'Returns invocations for a function with pagination, newest first. Each row carries trigger (queued, schedule or schedule_manual; absent on rows from before DEP-247) and, for scheduled runs, scheduled_for. The trigger filter: queued also matches rows without a trigger; schedule matches both cron and “run now” runs; schedule_manual matches “run now” runs only. Requires the member role or above.
Authorizations
Section titled “ Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ”Project ID
Function ID
Query Parameters
Section titled “ Query Parameters ”Page number
Page size
Only invocations from this door
Responses
Section titled “ Responses ”OK
object
object
object
object
object
RequestURL is the absolute URL the handler is given as request.url (DEP-398):
https://{function}-{subdomain}.{FN_BASE_DOMAIN}/?{raw query}, the same origin and
pathname the HTTP door serves the same file on. It is built in the handler layer,
which is the only layer that knows the project’s subdomain. TEXT, not varchar:
a query string has no useful ceiling. Rows written before DEP-398 hold the API’s
own route path instead.
object
ScheduledFor is the nominal cron slot of a scheduled run (DEP-247).
Trigger is the door that created the invocation; nil on pre-DEP-247 rows.
Example
{ "data": { "invocations": [ { "status": "pending", "trigger": "queued" } ] }}Bad Request
object
object
Example generated
{ "code": "example", "details": "example", "error": "example", "meta": { "request_id": "example", "timestamp": "example", "trace_id": "example" }}Forbidden
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 a8b7eb1d built