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

# Recuperar un tenant

> Recupera información detallada sobre un tenant específico, incluida su configuración, asignación de producto, asignación de política y metadatos. Devuelve datos completos del tenant para la organización especificada.



## OpenAPI

````yaml /api-reference/openapi-v1.json get /v1/organizations/{organization_id}/tenants/{tenant_id}
openapi: 3.0.3
info:
  title: API Publica Portal
  version: 1.0.0
  description: Api publica REST para portal
servers:
  - url: https://api.staging.flxwvdexternal.com
    description: Staging API server
security:
  - bearerAuth: []
tags: []
paths:
  /v1/organizations/{organization_id}/tenants/{tenant_id}:
    get:
      tags:
        - Tenants
      summary: Recuperar un tenant
      description: >-
        Recupera información detallada sobre un tenant específico, incluida su
        configuración, asignación de producto, asignación de política y
        metadatos. Devuelve datos completos del tenant para la organización
        especificada.
      operationId: getTenantById
      parameters:
        - name: organization_id
          in: path
          required: true
          schema:
            type: string
            maxLength: 24
            pattern: ^[0-9a-f]{24}$
          description: El identificador único de la organización
          example: 507f1f77bcf86cd799439011
        - name: tenant_id
          in: path
          required: true
          schema:
            type: string
            maxLength: 24
            pattern: ^[0-9a-f]{24}$
          description: El identificador único del tenant
          example: 507f1f77bcf86cd799439020
      responses:
        '200':
          description: >-
            Detalles del tenant recuperados correctamente. La respuesta incluye
            información completa del tenant, incluidas las asignaciones de
            producto y política.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TenantByIdV1'
        '400':
          $ref: '#/components/responses/BadRequest'
          description: Solicitud incorrecta - formato de ID de tenant inválido
        '401':
          $ref: '#/components/responses/Unauthorized'
          description: No autorizado - se requiere autenticación
        '404':
          $ref: '#/components/responses/NotFound'
          description: Tenant no encontrado
        '429':
          $ref: '#/components/responses/TooManyRequests'
        '500':
          $ref: '#/components/responses/InternalServerError'
components:
  schemas:
    TenantByIdV1:
      type: object
      properties:
        id:
          type: string
        organization_id:
          type: string
          description: ID de la organización del tenant
        create_date:
          type: string
          format: date-time
        name:
          type: string
        region:
          type: string
        product_id:
          type: string
          nullable: true
          description: ID del producto (nullable)
        policy_id:
          type: string
          nullable: true
          description: ID de la política (nullable)
      required:
        - id
        - organization_id
        - create_date
        - name
        - region
    ErrorResponse:
      type: object
      properties:
        error:
          type: object
          properties:
            message:
              type: string
            code:
              type: string
            details:
              type: string
          required:
            - message
            - code
      required:
        - error
  responses:
    BadRequest:
      description: Solicitud incorrecta
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    Unauthorized:
      description: No autorizado
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    NotFound:
      description: No encontrado
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    TooManyRequests:
      description: Demasiadas solicitudes
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    InternalServerError:
      description: Error interno del servidor
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````