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

# Obtén un agente



## OpenAPI

````yaml /openapi.es.json get /v1/agents/{agentId}
openapi: 3.0.0
info:
  title: API para desarrolladores de wondeya
  description: >-
    La API REST pública para construir sobre wondeya: agentes, proyectos,
    páginas, conocimiento, recursos, marca, tema, uso, recuperación y chat,
    autenticada mediante una clave de API del espacio de trabajo
    (`Authorization: Bearer wdy_live_…`).
  version: 0.1.0
  contact:
    name: wondeya
    url: https://wondeya.com
    email: team@wondeya.com
  license:
    name: Proprietary
    url: https://wondeya.com/terms
servers:
  - url: https://api.wondeya.com
    description: Producción
  - url: http://localhost:8080
    description: Desarrollo
security: []
tags:
  - name: Identity
  - name: Agents
  - name: Projects
  - name: Pages
  - name: Knowledge
  - name: Assets
  - name: Brand
  - name: Usage
  - name: Chat
paths:
  /v1/agents/{agentId}:
    get:
      tags:
        - Agents
      summary: Obtén un agente
      operationId: PublicAgentsController_findOne_v1
      parameters:
        - name: agentId
          required: true
          in: path
          schema:
            type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicAgentDto'
        '404':
          description: No existe ese agente en este espacio de trabajo
      security:
        - api-key: []
components:
  schemas:
    PublicAgentDto:
      type: object
      properties:
        id:
          type: string
          description: El id del agente. El único asidero que tiene.
        name:
          type: string
          description: Etiqueta interna. Nunca una dirección (sin slug).
        identity:
          $ref: '#/components/schemas/PublicAgentIdentityDto'
        content:
          $ref: '#/components/schemas/PublicAgentContentDto'
        answerPolicy:
          $ref: '#/components/schemas/PublicAgentAnswerPolicyDto'
        defaultLocale:
          type: string
          enum:
            - es
            - en
          description: El idioma en que está redactado el texto del agente (D-44).
        locales:
          type: array
          description: Todos los idiomas que habla el agente.
          items:
            type: string
            enum:
              - es
              - en
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
      required:
        - id
        - name
        - identity
        - content
        - answerPolicy
        - defaultLocale
        - locales
        - createdAt
        - updatedAt
    PublicAgentIdentityDto:
      type: object
      properties:
        businessName:
          type: string
          description: El negocio en nombre del cual habla el agente; "" = neutral.
        description:
          type: string
          description: Un párrafo, que se incluye en cada prompt.
        tone:
          type: string
          description: Cómo debe sonar; "" = la voz de la casa.
        actions:
          type: array
          items:
            $ref: '#/components/schemas/PublicAgentActionDto'
        links:
          type: array
          items:
            $ref: '#/components/schemas/PublicAgentLinkDto'
      required:
        - businessName
        - description
        - tone
        - actions
        - links
    PublicAgentContentDto:
      type: object
      properties:
        useWorkspaceKnowledge:
          type: boolean
        useWorkspaceAssets:
          type: boolean
      required:
        - useWorkspaceKnowledge
        - useWorkspaceAssets
    PublicAgentAnswerPolicyDto:
      type: object
      properties:
        contactLinkId:
          type: object
          nullable: true
          description: >-
            El `identity.links[].id` registrado que se ofrece como contacto
            alternativo cuando el agente no puede responder. null = sin contacto
            alternativo.
        forbiddenTopics:
          description: Temas que el agente se niega a tratar. Vacío = sin restricción.
          type: array
          items:
            type: string
      required:
        - contactLinkId
        - forbiddenTopics
    PublicAgentActionDto:
      type: object
      properties:
        id:
          type: string
          example: talk_to_team
        description:
          type: string
          description: 'En inglés, orientado al prompt: cuándo corresponde esta acción.'
      required:
        - id
        - description
    PublicAgentLinkDto:
      type: object
      properties:
        id:
          type: string
          example: menu
        url:
          type: string
          description: 'external/doc: URL http/https absoluta. Se omite para un link page.'
        kind:
          type: string
          description: external | doc | page (D-81).
        path:
          type: object
          nullable: true
          description: 'page solo: el path.'
        label:
          $ref: '#/components/schemas/PublicLocalizedLabelDto'
        description:
          type: string
          description: Inglés, orientado al prompt.
      required:
        - id
        - label
        - description
    PublicLocalizedLabelDto:
      type: object
      properties:
        es:
          type: string
        en:
          type: string
      required:
        - es
        - en
  securitySchemes:
    api-key:
      scheme: bearer
      bearerFormat: opaque
      type: http
      description: >-
        Una clave de API del espacio de trabajo: wdy_live_… / wdy_test_…. Se
        crea en POST /workspaces/{tenantId}/keys y se muestra exactamente una
        vez.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.