> ## 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.

# Get an agent



## OpenAPI

````yaml /openapi.json get /v1/agents/{agentId}
openapi: 3.0.0
info:
  title: wondeya Developer API
  description: >-
    The public REST API for building on wondeya: agents, projects, pages,
    knowledge, assets, brand, theme, usage, retrieval and chat, authenticated by
    a workspace API key (`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: Production
  - url: http://localhost:8080
    description: Development
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: Get an agent
      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 such agent in this workspace
      security:
        - api-key: []
components:
  schemas:
    PublicAgentDto:
      type: object
      properties:
        id:
          type: string
          description: The agent id. The only handle it has.
        name:
          type: string
          description: Internal label. Never an address (no slug).
        identity:
          $ref: '#/components/schemas/PublicAgentIdentityDto'
        content:
          $ref: '#/components/schemas/PublicAgentContentDto'
        defaultLocale:
          type: string
          enum:
            - es
            - en
          description: The language the agent’s copy is authored in (D-44).
        locales:
          type: array
          description: Every language the agent speaks.
          items:
            type: string
            enum:
              - es
              - en
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
      required:
        - id
        - name
        - identity
        - content
        - defaultLocale
        - locales
        - createdAt
        - updatedAt
    PublicAgentIdentityDto:
      type: object
      properties:
        businessName:
          type: string
          description: The business the agent speaks for; "" = neutral.
        description:
          type: string
          description: One paragraph, rendered into every prompt.
        tone:
          type: string
          description: How it should sound; "" = the house voice.
        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
    PublicAgentActionDto:
      type: object
      properties:
        id:
          type: string
          example: talk_to_team
        description:
          type: string
          description: 'English, prompt-facing: when this action fits.'
      required:
        - id
        - description
    PublicAgentLinkDto:
      type: object
      properties:
        id:
          type: string
          example: menu
        url:
          type: string
          description: Absolute http/https URL, resolved server-side.
        label:
          $ref: '#/components/schemas/PublicLocalizedLabelDto'
        description:
          type: string
          description: English, prompt-facing.
      required:
        - id
        - url
        - 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: >-
        A workspace API key: wdy_live_… / wdy_test_…. Created at POST
        /workspaces/{tenantId}/keys and shown exactly once.

````