Maton

Get Run Logs

GET/functions/{function_id}/runs/{run_id}/logs

Authorization

bearerAuth
AuthorizationBearer <token>

Your Maton API key, sent as Authorization: Bearer <MATON_API_KEY>. Create one at https://maton.ai/settings.

In: header

Path Parameters

function_id*string

The function's unique identifier.

run_id*string

The run's unique identifier.

Query Parameters

limit?integer

Maximum number of log events to return.

Default100
next_token?string

Opaque pagination cursor from the previous response. Omit for the first page; absent/null in the response means the last page.

filter_pattern?string

CloudWatch Logs filter pattern applied to the events.

start_time?integer

Start of the window, in milliseconds since the epoch.

end_time?integer

End of the window, in milliseconds since the epoch. Must not be before start_time.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X GET \  "https://api.maton.ai/functions/{function_id}/runs/{run_id}/logs?limit=100" \  -H "Authorization: Bearer $MATON_API_KEY"
{
  "events": [
    {
      "timestamp": 1788000000123,
      "message": "INFO posting lead to #sales"
    }
  ],
  "next_token": null
}
{
  "message": "Invalid app name.",
  "type": "Bad Request",
  "code": 400
}
{
  "message": "Invalid API key.",
  "type": "Unauthorized",
  "code": 401
}
{
  "message": "Resource not found.",
  "type": "Not Found",
  "code": 404
}
{
  "message": "Too many requests.",
  "type": "Too Many Requests",
  "code": 429
}
{
  "message": "Internal server error.",
  "type": "Internal Server Error",
  "code": 500
}