Skip to main content
All endpoints are under /v2/compute/funcs/{id} and require a valid Telnyx API key in the Authorization header. {id} is the function id.

Get function logs

The type query parameter selects the log stream: Both types support the same time-window and limit parameters: Invocation records include request metadata such as timestamp, method, path, status code, duration, request and response size, and serving region when available.

Get function metric aggregates

Returns aggregate request, latency, CPU, memory, and resource-limit metrics for the requested time window. Required query parameters are start_time and end_time. The endpoint also supports edge-site and namespace filters and standard page parameters.

List function revisions

Returns ship/deployment history newest first. Each entry describes that ship’s build and deployment state. Failed ships can include their own failure stage and failure reason; a build that failed before producing an image has no rollback revision id.

Inspect latest ship

Returns the outcome of the function’s latest ship. The response classifies the outcome by stage and includes a customer-facing reason. Failure stages include build, deploy, platform, pre_build, and security_review; none represents success and pending represents a ship still in progress. A build or deploy failure can also include a platform-provided snippet when one is available. ship_inspection is the customer-facing, stage-neutral name for this operation: the result describes the entire ship rather than only the build stage.