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

# Run Agentic Task

> Execute an agentic task and block until completion



## OpenAPI

````yaml post /external/agents/run
openapi: 3.1.0
info:
  title: Shieldbase External API
  description: Public API for Shieldbase AI integration
  version: 1.0.0
servers:
  - url: https://api.shieldbase.ai
    description: Production
  - url: http://localhost:8000
    description: Development
security:
  - ClientID: []
    APIKey: []
    Secret: []
paths:
  /external/agents/run:
    post:
      tags:
        - Agents
      summary: Run Agentic Task
      description: Execute an agentic task and block until completion
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                prompt:
                  type: string
                agent_id:
                  type: string
                model:
                  type: string
                document_ids:
                  type: array
                  items:
                    type: string
                timeout_seconds:
                  type: integer
                  default: 600
              required:
                - prompt
      responses:
        '200':
          description: Task completed
          content:
            application/json:
              schema:
                type: object
                properties:
                  conversation_id:
                    type: string
                  output:
                    type: string
                  generated_files:
                    type: array
                  success:
                    type: boolean
components:
  securitySchemes:
    ClientID:
      type: apiKey
      in: header
      name: X-Client-ID
    APIKey:
      type: apiKey
      in: header
      name: X-API-Key
    Secret:
      type: apiKey
      in: header
      name: X-Secret

````