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

# Ler tenant

> Os dados de um tenant.



## OpenAPI

````yaml openapi/pt/control.json GET /v1/tenants/{tenant_id}
openapi: 3.1.0
info:
  title: API de controle da Niadra
  version: '1'
  description: >-
    Tenants, projetos, fontes, chaves, pessoas, configuração e uso. Nunca recebe
    conteúdo de cliente.
servers:
  - url: https://control.api.niadra.com
security: []
paths:
  /v1/tenants/{tenant_id}:
    get:
      summary: Ler tenant
      description: >-
        O tenant da pessoa autenticada. Qualquer outro id de tenant responde
        404.


        **Autenticação.** Token de pessoa emitido pelo controle (`Authorization:
        Bearer <JWT>`), com o papel que a operação pede.
      operationId: get_tenant_v1_tenants__tenant_id__get
      parameters:
        - in: path
          name: tenant_id
          required: true
          schema:
            format: uuid
            title: Tenant Id
            type: string
          example: 0192f0a0-1b2c-7d3e-8f40-5a6b7c8d9e01
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TenantOut'
              example:
                tenant_id: 0192f0a0-1b2c-7d3e-8f40-5a6b7c8d9e01
                name: Acme
                slug: acme
                mfa_required: true
                created_at: '2026-08-01T12:00:00Z'
          description: O tenant.
        '422':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
          description: O pedido não bate com o contrato.
      security:
        - personToken: []
components:
  schemas:
    TenantOut:
      additionalProperties: false
      properties:
        created_at:
          format: date-time
          title: Created At
          type: string
        mfa_required:
          title: Mfa Required
          type: boolean
        name:
          title: Name
          type: string
        slug:
          title: Slug
          type: string
        tenant_id:
          format: uuid
          title: Tenant Id
          type: string
      required:
        - tenant_id
        - name
        - slug
        - mfa_required
        - created_at
      title: TenantOut
      type: object
    Problem:
      additionalProperties: false
      description: >-
        Detalhes do problema no formato da RFC 9457; `code` vem do catálogo de
        erros versionado.
      properties:
        code:
          title: Code
          type: string
        detail:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          title: Detail
        request_id:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          title: Request Id
        status:
          title: Status
          type: integer
        title:
          title: Title
          type: string
        type:
          default: about:blank
          title: Type
          type: string
      required:
        - title
        - status
        - code
      title: Problem
      type: object
  securitySchemes:
    personToken:
      type: http
      scheme: bearer
      bearerFormat: JWT

````