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

# List Agent Presets

> Starting points for a new agent: tools, skills, triggers and an instruction.



## OpenAPI

````yaml /api-reference/openapi.json get /v1/workspaces/{workspace}/agents/presets
openapi: 3.1.0
info:
  description: >-
    Modular and extensible framework for building AI agents. This API requires
    JWT Bearer token authentication for most endpoints. Include your JWT token
    in the Authorization header. Public endpoints include /, /health, /docs,
    /redoc, and /openapi.json.
  title: AgentArea API
  version: 0.1.0
servers: []
security:
  - bearer: []
paths:
  /v1/workspaces/{workspace}/agents/presets:
    get:
      tags:
        - v1
        - protected
        - agents
      summary: List Agent Presets
      description: >-
        Starting points for a new agent: tools, skills, triggers and an
        instruction.
      operationId: list_agent_presets_v1_agents_presets_get
      parameters:
        - description: Slug of the workspace the request acts in
          in: path
          name: workspace
          required: true
          schema:
            description: Slug of the workspace the request acts in
            maxLength: 120
            pattern: ^[a-z0-9]+(?:-[a-z0-9]+)*$
            title: Workspace
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                items:
                  $ref: '#/components/schemas/AgentPresetResponse'
                title: Response List Agent Presets V1 Agents Presets Get
                type: array
          description: Successful Response
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
      security:
        - HTTPBearer: []
components:
  schemas:
    AgentPresetResponse:
      description: 'A starting point for a new agent: applying it fills the create form.'
      properties:
        description:
          anyOf:
            - type: string
            - type: 'null'
          title: Description
        id:
          title: Id
          type: string
        instruction:
          default: ''
          title: Instruction
          type: string
        name:
          title: Name
          type: string
        preferred_models:
          items:
            type: string
          title: Preferred Models
          type: array
        skills:
          items:
            $ref: '#/components/schemas/PresetSkillResponse'
          title: Skills
          type: array
        tools:
          items:
            discriminator:
              mapping:
                agent:
                  $ref: '#/components/schemas/AgentToolConfig'
                code:
                  $ref: '#/components/schemas/CodeToolConfig'
                mcp:
                  $ref: '#/components/schemas/McpToolConfig-Output'
                openapi:
                  $ref: '#/components/schemas/OpenApiToolConfig'
              propertyName: type
            oneOf:
              - $ref: '#/components/schemas/CodeToolConfig'
              - $ref: '#/components/schemas/McpToolConfig-Output'
              - $ref: '#/components/schemas/AgentToolConfig'
              - $ref: '#/components/schemas/OpenApiToolConfig'
          title: Tools
          type: array
        triggers:
          items:
            $ref: '#/components/schemas/TriggerSpec'
          title: Triggers
          type: array
        unavailable_skills:
          items:
            type: string
          title: Unavailable Skills
          type: array
      required:
        - id
        - name
        - tools
        - skills
        - triggers
      title: AgentPresetResponse
      type: object
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Detail
          type: array
      title: HTTPValidationError
      type: object
    PresetSkillResponse:
      description: >-
        A catalog skill a preset attaches; attaching it installs it into the
        workspace.
      properties:
        description:
          anyOf:
            - type: string
            - type: 'null'
          title: Description
        id:
          title: Id
          type: string
        name:
          title: Name
          type: string
      required:
        - id
        - name
      title: PresetSkillResponse
      type: object
    AgentToolConfig:
      properties:
        name:
          title: Name
          type: string
        settings:
          anyOf:
            - $ref: '#/components/schemas/AgentToolSettings'
            - type: 'null'
        type:
          const: agent
          default: agent
          title: Type
          type: string
      required:
        - name
      title: AgentToolConfig
      type: object
    CodeToolConfig:
      properties:
        name:
          title: Name
          type: string
        settings:
          anyOf:
            - $ref: '#/components/schemas/CodeToolSettings'
            - type: 'null'
        type:
          const: code
          default: code
          title: Type
          type: string
      required:
        - name
      title: CodeToolConfig
      type: object
    McpToolConfig-Output:
      properties:
        name:
          title: Name
          type: string
        settings:
          anyOf:
            - $ref: '#/components/schemas/McpToolSettings'
            - type: 'null'
        type:
          const: mcp
          default: mcp
          title: Type
          type: string
      required:
        - name
      title: McpToolConfig
      type: object
    OpenApiToolConfig:
      properties:
        name:
          title: Name
          type: string
        settings:
          anyOf:
            - $ref: '#/components/schemas/OpenApiToolSettings'
            - type: 'null'
        type:
          const: openapi
          default: openapi
          title: Type
          type: string
      required:
        - name
      title: OpenApiToolConfig
      type: object
    TriggerSpec:
      additionalProperties: false
      description: >-
        Everything about a trigger except the agent it fires.


        A trigger fires an agent — either on a cron schedule
        (``trigger_type='cron'``)

        or in response to an inbound webhook (``trigger_type='webhook'``). For
        poll-based

        channels (e.g. email inbox), use ``trigger_type='polling'`` plus a

        ``data_extractor`` configuration. Creating an agent takes a list of
        these,

        because the agent does not exist yet when they are written.
      properties:
        allowed_methods:
          description: HTTP methods accepted on the webhook endpoint.
          items:
            type: string
          title: Allowed Methods
          type: array
        channel_credentials:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          description: >-
            Channel credentials (bot_token, SMTP password, etc). Stored
            encrypted in the secret store. Never returned in responses.
          title: Channel Credentials
        conditions:
          additionalProperties: true
          description: Optional conditions evaluated against event data before firing.
          title: Conditions
          type: object
        cron_expression:
          anyOf:
            - type: string
            - type: 'null'
          description: 5- or 6-field cron expression (required when trigger_type='cron').
          title: Cron Expression
        data_extractor:
          anyOf:
            - type: string
            - type: 'null'
          description: Polling extractor identifier (e.g. 'imap', 'rss').
          title: Data Extractor
        data_extractor_config:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          description: Connection/auth details for the polling extractor.
          title: Data Extractor Config
        description:
          default: ''
          description: Short summary of what this trigger does.
          maxLength: 1000
          title: Description
          type: string
        enabled:
          default: true
          description: Whether the trigger is active immediately on creation.
          title: Enabled
          type: boolean
        event_types:
          description: Event types to filter on (empty list = accept all events).
          items:
            type: string
          title: Event Types
          type: array
        failure_threshold:
          default: 5
          description: Auto-disable after this many consecutive failed executions.
          maximum: 100
          minimum: 1
          title: Failure Threshold
          type: integer
        name:
          description: Human-readable trigger name.
          maxLength: 255
          minLength: 1
          title: Name
          type: string
        task_parameters:
          additionalProperties: true
          description: Parameters merged into the task created when the trigger fires.
          title: Task Parameters
          type: object
        timezone:
          default: UTC
          description: IANA timezone for cron evaluation (e.g. 'UTC', 'America/New_York').
          title: Timezone
          type: string
        trigger_type:
          description: >-
            'cron' for scheduled, 'webhook' for inbound HTTP, 'polling' for
            extractor-driven.
          enum:
            - cron
            - webhook
            - polling
          title: Trigger Type
          type: string
        validation_rules:
          additionalProperties: true
          description: >-
            Per-channel validation rules (signature secrets, allowed senders,
            etc).
          title: Validation Rules
          type: object
        webhook_config:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          description: Channel-specific configuration (bot tokens, signing keys, etc).
          title: Webhook Config
        webhook_id:
          anyOf:
            - type: string
            - type: 'null'
          description: >-
            Public webhook path segment. Auto-generated if omitted for webhook
            triggers.
          title: Webhook Id
        webhook_type:
          default: generic
          description: 'Channel type: ''generic'', ''telegram'', ''slack'', ''discord'', etc.'
          title: Webhook Type
          type: string
      required:
        - name
        - trigger_type
      title: TriggerSpec
      type: object
    ValidationError:
      properties:
        ctx:
          title: Context
          type: object
        input:
          title: Input
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          title: Location
          type: array
        msg:
          title: Message
          type: string
        type:
          title: Error Type
          type: string
      required:
        - loc
        - msg
        - type
      title: ValidationError
      type: object
    AgentToolSettings:
      description: >-
        Settings for an agent-to-agent (delegation) tool.


        ``a2a_url`` selects the *remote* transport binding; absent →
        same-platform

        direct delegation. Lives here only — A2A is a per-edge binding, not a

        property every tool type carries.
      properties:
        a2a_url:
          anyOf:
            - type: string
            - type: 'null'
          title: A2A Url
        description_override:
          anyOf:
            - type: string
            - type: 'null'
          title: Description Override
        requires_user_confirmation:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Requires User Confirmation
      title: AgentToolSettings
      type: object
    CodeToolSettings:
      description: Settings for a built-in code toolset.
      properties:
        disabled_methods:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          title: Disabled Methods
        requires_user_confirmation:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Requires User Confirmation
      title: CodeToolSettings
      type: object
    McpToolSettings:
      description: Settings for an MCP server tool (a subset of the server's tools).
      properties:
        allowed_tools:
          anyOf:
            - items:
                $ref: '#/components/schemas/McpToolPermission'
              type: array
            - type: 'null'
          title: Allowed Tools
        requires_user_confirmation:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Requires User Confirmation
      title: McpToolSettings
      type: object
    OpenApiToolSettings:
      description: >-
        Settings for an OpenAPI connection tool.


        ``load_mode`` picks schema disclosure: "explicit" inlines every
        operation's

        schema into each LLM call (legacy); "searchable" defers them behind a

        ``load_tools`` meta-tool. Honored only for openapi tools — which is
        exactly

        why it lives here and nowhere else.
      properties:
        allowed_tools:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          title: Allowed Tools
        load_mode:
          anyOf:
            - enum:
                - explicit
                - searchable
              type: string
            - type: 'null'
          title: Load Mode
        openapi_connection_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Openapi Connection Id
        requires_user_confirmation:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Requires User Confirmation
      title: OpenApiToolSettings
      type: object
    McpToolPermission:
      description: >-
        A single MCP tool the agent may call.


        Replaces the old ``list[Any]`` for ``allowed_tools`` (the former FIXME).

        ``requires_user_confirmation`` is transport only: the API translates it
        into

        an agent-scoped approval policy rule and does not persist it here, so it
        is

        ``None`` at rest and reconstituted from rules on read.
      properties:
        requires_user_confirmation:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Requires User Confirmation
        tool_name:
          title: Tool Name
          type: string
      required:
        - tool_name
      title: McpToolPermission
      type: object
  securitySchemes:
    bearer:
      bearerFormat: JWT
      description: JWT Bearer token for authentication
      scheme: bearer
      type: http
    HTTPBearer:
      scheme: bearer
      type: http

````