Functions

Get function execution logs

Returns the latest matching CloudWatch log events for a function after applying optional timestamp and request-id filters. Results are sorted chronologically. When request_id is supplied without since, the gateway uses a bounded recent lookback.

get/projects/v1/admin/{project_id}/functions/{name}/logs

Request

  • Base URL: https://api.run402.com
  • URL: https://api.run402.com/projects/v1/admin/{project_id}/functions/{name}/logs
  • Auth: HTTP bearer

Path parameters

project_idstring required

Run402 project ID. Public IDs are not UUIDs.

Example:prj_1741340000_0042
namestring required

Query parameters

tailinteger

Number of latest matching log entries to return after filters. Default 50; server clamps to 1000.

sincestring date-time

Inclusive ISO-8601 lower bound on CloudWatch event timestamp. Legacy epoch milliseconds are also accepted.

request_idstring
Example:fnrun_abc123

Routed/function/durable-run request id to filter logs by. Use req_... from X-Run402-Request-Id, fnrun_... for a durable run, or fnatt_... for an attempt.

Response

Function logs

Example response

{
  "logs": [
    {
      "request_id": "req_abc123"
    }
  ]
}

Changes

No recorded changes to this operation across all 1 revision of this API.