openapi: 3.2.0 info: title: Jans Lock Lock - Audit Telemetry API contact: name: Contact url: https://github.com/JanssenProject/jans/discussions license: name: License url: https://github.com/JanssenProject/jans/blob/main/LICENSE version: OAS Version servers: - url: https://jans.local.io description: The Jans server tags: - name: Lock - Audit Telemetry paths: /api/v1/audit/telemetry/bulk: post: tags: - Lock - Audit Telemetry summary: Bulk save telemetry data operationId: processBulkTelemetryRequest requestBody: description: Bulk telemetry entry content: application/json: schema: type: array items: $ref: '#/components/schemas/TelemetryEntry' responses: '200': description: Ok '400': description: Bad Request content: application/json: schema: $ref: '#/components/schemas/LockApiError' '401': description: Unauthorized '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/LockApiError' '500': description: InternalServerError content: application/json: schema: $ref: '#/components/schemas/LockApiError' security: - oauth2: - https://jans.io/oauth/lock/telemetry.write /api/v1/audit/telemetry: post: tags: - Lock - Audit Telemetry summary: Save telemetry data operationId: processTelemetryRequest requestBody: description: Telemetry entry content: application/json: schema: $ref: '#/components/schemas/TelemetryEntry' responses: '200': description: Ok '400': description: Bad Request content: application/json: schema: $ref: '#/components/schemas/LockApiError' '401': description: Unauthorized '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/LockApiError' '500': description: InternalServerError content: application/json: schema: $ref: '#/components/schemas/LockApiError' security: - oauth2: - https://jans.io/oauth/lock/telemetry.write components: schemas: TelemetryEntry: type: object properties: dn: type: string baseDn: type: string inum: type: string creationDate: type: string description: Creation date of the entry format: date-time example: 2026-07-24 15:33:06.872000+00:00 service: type: string description: Service name example: Lock Server nodeName: type: string description: Node name or identifier example: 04bbe9ef-a853-417c-a2b8-5328b62936e2 status: type: string description: Service status example: running policyStats: type: object additionalProperties: type: integer description: Per-policy evaluation counters as key-value pairs format: int64 description: Per-policy evaluation counters as key-value pairs errorCounters: type: object additionalProperties: type: integer description: Error counters broken down by error type format: int64 description: Error counters broken down by error type operationalStats: type: object additionalProperties: type: integer description: Operational statistics (requests, decisions, eval times) as key-value pairs format: int64 description: Operational statistics (requests, decisions, eval times) as key-value pairs intervalSecs: type: integer description: Telemetry collection interval in seconds format: int64 example: 5 description: Telemetry audit entry LockApiError: type: object properties: code: type: string message: type: string description: type: string securitySchemes: oauth2: type: oauth2 flows: clientCredentials: tokenUrl: https://{op-hostname}/.../token scopes: https://jans.io/oauth/lock/policy.readonly: View policy related information https://jans.io/oauth/lock/health.write: Write audit health entries https://jans.io/oauth/lock/log.write: Write audit log entries https://jans.io/oauth/lock/telemetry.write: Write telemetry health entries https://jans.io/oauth/lock/stat.readonly: View stat related information