> ## Documentation Index
> Fetch the complete documentation index at: https://docs.lerian.studio/llms.txt
> Use this file to discover all available pages before exploring further.

# Trust-store certificate status summary

> Classifies every certificate in the tenant trust store as
OK / EXPIRING_SOON / EXPIRED and returns per-certificate
entries plus an aggregate summary (total, expiringSoon, expired).



## OpenAPI

````yaml en/openapi/v3-current/sta.yaml get /v1/certificates/status
openapi: 3.0.3
info:
  title: Lerian STA API
  description: >-
    API for Lerian STA — the participant-side rail that connects the institution
    to Banco Central do Brasil's STA (Sistema de Transferencia de Arquivos)
    file-exchange system. It covers outbound and inbound file transfers, BACEN
    credential management, inbound source polling configuration, and the tenant
    trust-store for message-signing certificates.
  version: v1.0.0
servers:
  - url: https://sta.sandbox.lerian.net
security:
  - BearerAuth: []
tags:
  - name: transfers
    description: >-
      Outbound and inbound STA file transfers — creation, listing, read,
      cancellation, retry, and urgent-processing marking.
  - name: trust-store
    description: >-
      Tenant trust-store X.509 certificate lifecycle: listing, upload, deletion,
      and status summary.
  - name: credentials
    description: >-
      BACEN STA credential management: creation, read, update, rotation,
      revocation, and connectivity testing.
  - name: inbound-source-configs
    description: >-
      Inbound source polling configuration: creation, read, update, deletion,
      manual poll triggering, and discovery reserve usage.
  - name: health
    description: Service health and readiness reporting.
paths:
  /v1/certificates/status:
    get:
      tags:
        - trust-store
      summary: Trust-store certificate status summary
      description: |-
        Classifies every certificate in the tenant trust store as
        OK / EXPIRING_SOON / EXPIRED and returns per-certificate
        entries plus an aggregate summary (total, expiringSoon, expired).
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/query.StatusResponse'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                additionalProperties: true
                type: object
components:
  schemas:
    query.StatusResponse:
      properties:
        certificates:
          items:
            $ref: '#/components/schemas/query.StatusEntry'
          type: array
        summary:
          $ref: '#/components/schemas/query.StatusSummary'
      type: object
    query.StatusEntry:
      properties:
        alias:
          type: string
        daysUntilExpiry:
          type: integer
        issuer:
          type: string
        status:
          type: string
        validUntil:
          type: string
      type: object
    query.StatusSummary:
      properties:
        expired:
          type: integer
        expiringSoon:
          type: integer
        total:
          type: integer
      type: object
  securitySchemes:
    BearerAuth:
      description: 'Bearer token authentication (format: "Bearer {token}")'
      in: header
      name: Authorization
      type: apiKey

````