Sonatype · Capability

Sonatype Lifecycle Public REST API — Audit Logs

Sonatype Lifecycle Public REST API — Audit Logs. 1 operations. Lead operation: Audit Logs. Self-contained Naftiko capability covering one Sonatype business surface.

Run with Naftiko SonatypeAudit Logs

What You Can Do

GET
Getauditlogs — Use this method to retrieve the audit events for the specified time period.
/v1/api/v2/auditlogs

MCP Tools

use-this-method-retrieve-audit

Use this method to retrieve the audit events for the specified time period.

read-only idempotent

Capability Spec

lifecycle-audit-logs.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Sonatype Lifecycle Public REST API — Audit Logs
  description: 'Sonatype Lifecycle Public REST API — Audit Logs. 1 operations. Lead operation: Audit Logs. Self-contained
    Naftiko capability covering one Sonatype business surface.'
  tags:
  - Sonatype
  - Audit Logs
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    SONATYPE_API_KEY: SONATYPE_API_KEY
capability:
  consumes:
  - type: http
    namespace: lifecycle-audit-logs
    baseUri: ''
    description: Sonatype Lifecycle Public REST API — Audit Logs business capability. Self-contained, no shared references.
    resources:
    - name: api-v2-auditLogs
      path: /api/v2/auditLogs
      operations:
      - name: getauditlogs
        method: GET
        description: Use this method to retrieve the audit events for the specified time period.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: startUtcDate
          in: query
          type: string
          description: Enter the start UTC date in the format (yyyy-mm-dd).
        - name: endUtcDate
          in: query
          type: string
          description: Enter the end UTC date in the format (yyyy-mm-dd).
    authentication:
      type: bearer
      token: '{{env.SONATYPE_API_KEY}}'
  exposes:
  - type: rest
    namespace: lifecycle-audit-logs-rest
    port: 8080
    description: REST adapter for Sonatype Lifecycle Public REST API — Audit Logs. One Spectral-compliant resource per consumed
      operation, prefixed with /v1.
    resources:
    - path: /v1/api/v2/auditlogs
      name: api-v2-auditlogs
      description: REST surface for api-v2-auditLogs.
      operations:
      - method: GET
        name: getauditlogs
        description: Use this method to retrieve the audit events for the specified time period.
        call: lifecycle-audit-logs.getauditlogs
        with:
          startUtcDate: rest.startUtcDate
          endUtcDate: rest.endUtcDate
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: lifecycle-audit-logs-mcp
    port: 9090
    transport: http
    description: MCP adapter for Sonatype Lifecycle Public REST API — Audit Logs. One tool per consumed operation, routed
      inline through this capability's consumes block.
    tools:
    - name: use-this-method-retrieve-audit
      description: Use this method to retrieve the audit events for the specified time period.
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: lifecycle-audit-logs.getauditlogs
      with:
        startUtcDate: tools.startUtcDate
        endUtcDate: tools.endUtcDate
      outputParameters:
      - type: object
        mapping: $.