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

# Verificar conexión

> Devuelve el tenant, las sedes accesibles por la key y sus permisos.



## OpenAPI

````yaml /api-reference/openapi.json get /me
openapi: 3.1.0
info:
  title: OCLÜ API Pública
  description: >-
    API para integrar OCLÜ con sistemas externos (n8n, Make, Zapier, CRMs).
    Autenticación por API key. Las fechas y horas son hora local de la clínica.
    La API nunca expone datos clínicos.
  version: 1.0.0
servers:
  - url: https://{tenant}.oclucrm.com/api/v1
    description: Reemplazá {tenant} por el subdominio de tu clínica
    variables:
      tenant:
        default: tu-clinica
security:
  - apiKey: []
paths:
  /me:
    get:
      tags:
        - General
      summary: Verificar conexión
      description: Devuelve el tenant, las sedes accesibles por la key y sus permisos.
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Me'
        '401':
          $ref: '#/components/responses/Unauthorized'
components:
  schemas:
    Me:
      type: object
      properties:
        tenant:
          type: string
        key:
          type: object
          properties:
            name:
              type: string
            abilities:
              type: array
              items:
                type: string
            prefix:
              type: string
        organizations:
          type: array
          items:
            $ref: '#/components/schemas/Organization'
    Organization:
      type: object
      properties:
        id:
          type: integer
        name:
          type: string
        address:
          type: string
        phone:
          type: string
        email:
          type: string
        start_time:
          type: string
        end_time:
          type: string
        interval:
          type: string
        available_days:
          type: array
          items:
            type: integer
    Error:
      type: object
      properties:
        error:
          type: string
        code:
          type: string
  responses:
    Unauthorized:
      description: API key faltante, inválida o revocada
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer
      description: 'API key de la clínica. Header: Authorization: Bearer oclu_live_...'

````