Skip to main content

Overview

The Agents API provides direct execution of single-purpose agents (also called “Quick Tools”) without LLM orchestration. Each agent wraps a specific tool and returns structured results. Key Differences from Task API:
  • Agents API: Direct tool execution, no AI orchestration, asynchronous results
  • Task API: Multi-step workflows, LLM planning, asynchronous execution
All agent executions are asynchronous (return task_id), even though agents perform single operations. Use the Task Status API to retrieve results.

Base URL

Production: https://your-domain.com/api/v1/agents

Authentication

Required: Yes Include API key in header:
Development Default: Authentication is disabled when GATEWAY_SKIP_AUTH=1 is set.

Endpoints

List Agents

GET /api/v1/agents Returns all available agents with their schemas and metadata.

Request

Response

Response Fields

Agent Object:

Get Agent Details

GET /api/v1/agents/ Returns details for a specific agent, including its input schema.

Request

Response

Error Responses

404 Not Found - Agent does not exist:

Execute Agent

POST /api/v1/agents/ Executes a specific agent with provided input. Returns a task ID immediately; the agent runs asynchronously.

Request Headers

Request Body

Example: Execute SERP Ads Agent

Response

Status: 202 Accepted Headers:
  • X-Workflow-ID: Temporal workflow identifier
  • X-Session-ID: Session identifier
Body:

Retrieve Results

Use the Get Task Status endpoint with the returned task_id:
Response when completed:

Error Responses

400 Bad Request - Invalid input:
404 Not Found - Agent does not exist:
429 Too Many Requests - Rate limit exceeded:

Input Validation

All agent inputs are validated against the agent’s input_schema before execution. Validation Rules:
  1. Required fields must be present and non-null
  2. Type checking - strings, integers, booleans, arrays, objects
  3. Enum validation - values must be in allowed list
  4. Unknown fields - rejected for security (not in schema)
Example Schema:
Valid input:
Invalid input (missing required field):
Error: "input validation failed: missing required field: keywords" Invalid input (unknown field):
Error: "input validation failed: unknown field: unknown_field (not defined in agent schema)"

Available Agents

Shannon provides 14+ specialized agents across multiple categories. For a complete catalog of available agents with detailed schemas and examples, see:

Ads Research Agents

10 agents for competitive advertising analysis

Financial Research Agents

4 agents for stock news and sentiment analysis

Quick Reference by Category

Ads Research (10 agents):
  • serp-ads - Extract Google paid ads
  • yahoo-jp-ads - Extract Yahoo Japan sponsored ads
  • meta-ad-library - Search Meta Ad Library (Facebook/Instagram)
  • competitor-discover - Find competitor advertisers
  • ads-transparency - Multi-platform ad transparency data
  • lp-visual-analyze - Screenshot and analyze landing pages
  • lp-batch-analyze - Batch analyze multiple landing pages
  • ad-creative-analyze - Analyze ad copy patterns
  • keyword-extract - Extract search keywords from text
  • browser-screenshot - Capture webpage screenshots
Financial Tools (4 agents):
  • sec-filings - SEC EDGAR filings lookup
  • twitter-sentiment - X/Twitter sentiment via xAI
  • alpaca-news - Stock news from Alpaca Markets
  • news-aggregator - Multi-source news aggregation

Unified Task API Alternative

You can also execute agents through the unified Task API using the context.agent parameter:
Both approaches are equivalent:
  • Dedicated endpoint: POST /api/v1/agents/{id}
  • Unified endpoint: POST /api/v1/tasks with context.agent

Best Practices

1. Validate Inputs Before Submission

Use the GET endpoint to retrieve the agent’s schema, then validate your input client-side:

2. Handle Async Results

All agents return task IDs immediately. Poll for results:

3. Use Sessions for Context

Reuse session_id across related agent calls:

4. Check Cost Estimates

Before executing expensive agents, check cost_per_call:

Code Examples

Python with httpx

JavaScript/Node.js

Go


Submit Task

Unified task submission with AI orchestration

Get Task Status

Retrieve agent execution results

Ads Research Agents

Complete ads research agent catalog

Financial Agents

Financial research agent catalog