functions

Get function logs

Changed on

Returns logs oldest first. type=runtime (default) returns function stdout/stderr. type=invocations returns one platform-generated record per HTTP request served.

get/compute/funcs/{id}/logs

Request

  • Base URL
    https://api.telnyx.com/v2
  • URL
    https://api.telnyx.com/v2/compute/funcs/{id}/logs
  • Auth
    HTTP bearer

Path parameters

idstring required

Function ID

Query parameters

type'runtime' | 'invocations'

Log stream to return.

start_timestring date-time

Return records at or after this RFC 3339 timestamp.

end_timestring date-time

Return records at or before this RFC 3339 timestamp.

limitinteger

Maximum records to return.

Response

Logs retrieved successfully

OR

Changes

    • breaking

      the // response's property type changed from integer to string, and format from int32 to no format for status

    • breaking

      the // response's property type changed from integer to string, and format from int32 to no format for status

    • breaking

      the // response's property type changed from integer to string, and format from int32 to no format for status

    • breaking

      the // response's property type changed from integer to string, and format from int32 to no format for status

    • info

      added the optional property // to the response with the status

    • info

      added the optional property // to the response with the status

    • info

      added the optional property // to the response with the status

    • info

      added the optional property // to the response with the status

    • info

      endpoint added