Humanitec · Capability
Humanitec API — Logs
Humanitec API — Logs. 1 operations. Lead operation: Get container log entries for the environment. Self-contained Naftiko capability covering one Humanitec business surface.
What You Can Do
GET
Get
— Get container log entries for the environment
/v1/orgs/{orgid}/apps/{appid}/envs/{envid}/logs
MCP Tools
get-container-log-entries-environment
Get container log entries for the environment
read-only
idempotent
Capability Spec
naftiko: 1.0.0-alpha2
info:
label: Humanitec API — Logs
description: 'Humanitec API — Logs. 1 operations. Lead operation: Get container log entries for the environment. Self-contained
Naftiko capability covering one Humanitec business surface.'
tags:
- Humanitec
- Logs
created: '2026-05-19'
modified: '2026-05-19'
binds:
- namespace: env
keys:
HUMANITEC_API_KEY: HUMANITEC_API_KEY
capability:
consumes:
- type: http
namespace: humanitec-logs
baseUri: https://api.humanitec.io
description: Humanitec API — Logs business capability. Self-contained, no shared references.
resources:
- name: orgs-orgId-apps-appId-envs-envId-logs
path: /orgs/{orgId}/apps/{appId}/envs/{envId}/logs
operations:
- name: get
method: GET
description: Get container log entries for the environment
outputRawFormat: json
outputParameters:
- name: result
type: object
value: $.
inputParameters:
- name: orgId
in: path
type: string
description: The Organization ID
required: true
- name: appId
in: path
type: string
description: The Application ID
required: true
- name: envId
in: path
type: string
description: The Environment ID
required: true
- name: workload_id
in: query
type: string
description: filter by workload ID
- name: container_id
in: query
type: string
description: filter by container ID
- name: deployment_id
in: query
type: string
description: filter by deployment ID
- name: timestamp_from
in: query
type: string
description: filter by min time, RFC 3339 format, e.g. "2021-10-02T15:01:23.045Z"
- name: timestamp_to
in: query
type: string
description: filter by max time, RFC 3330 format, e.g. "2021-10-02T15:01:23.045Z"
- name: limit
in: query
type: string
description: limit log entries returned
- name: asc
in: query
type: boolean
description: if true request results in ascending order, default order is descending
- name: invert
in: query
type: boolean
description: if true reverse the order of the log entries in the output
exposes:
- type: rest
namespace: humanitec-logs-rest
port: 8080
description: REST adapter for Humanitec API — Logs. One Spectral-compliant resource per consumed operation, prefixed with
/v1.
resources:
- path: /v1/orgs/{orgid}/apps/{appid}/envs/{envid}/logs
name: orgs-orgid-apps-appid-envs-envid-logs
description: REST surface for orgs-orgId-apps-appId-envs-envId-logs.
operations:
- method: GET
name: get
description: Get container log entries for the environment
call: humanitec-logs.get
with:
orgId: rest.orgId
appId: rest.appId
envId: rest.envId
workload_id: rest.workload_id
container_id: rest.container_id
deployment_id: rest.deployment_id
timestamp_from: rest.timestamp_from
timestamp_to: rest.timestamp_to
limit: rest.limit
asc: rest.asc
invert: rest.invert
outputParameters:
- type: object
mapping: $.
- type: mcp
namespace: humanitec-logs-mcp
port: 9090
transport: http
description: MCP adapter for Humanitec API — Logs. One tool per consumed operation, routed inline through this capability's
consumes block.
tools:
- name: get-container-log-entries-environment
description: Get container log entries for the environment
hints:
readOnly: true
destructive: false
idempotent: true
call: humanitec-logs.get
with:
orgId: tools.orgId
appId: tools.appId
envId: tools.envId
workload_id: tools.workload_id
container_id: tools.container_id
deployment_id: tools.deployment_id
timestamp_from: tools.timestamp_from
timestamp_to: tools.timestamp_to
limit: tools.limit
asc: tools.asc
invert: tools.invert
outputParameters:
- type: object
mapping: $.