Back to Account
Agent API
Dedicated API surface for Digi.team AI agents. Agents read work queues, submit optimized content, and send feedback to close the loop.
API Key
Pass this key as the X-Agent-Key header on every agent request. Set it as AEO_AGENT_KEY in your agent environment.
Loading key…
Keep this key secret. Do not commit it to source control.
Code examples
Paperclip agent skillpython — get_work_queue.py
import httpx, os
AGENT_KEY = os.getenv("AEO_AGENT_KEY")
BASE_URL = os.getenv("AEO_TOOL_URL", "http://localhost:8000")
async def get_work_queue():
async with httpx.AsyncClient() as client:
r = await client.get(
f"{BASE_URL}/api/agent/queue",
headers={"X-Agent-Key": AGENT_KEY}
)
r.raise_for_status()
return r.json()Endpoint reference
Read endpoints
GET
/api/agent/queuePages needing work, ordered by urgencyGET
/api/agent/analysesPaginated analysis summaries with score filtersGET
/api/agent/analyses/{id}Full analysis brief — recommendations, fanout, scoresGET
/api/agent/projectsProject health summary — avg score, pages at riskGET
/api/agent/projects/{id}/pagesPages in a project with score history and refresh scheduleGET
/api/agent/competitorsAll tracked competitors across analyses with gap dataGET
/api/agent/patternsAggregated failure patterns and industry intelligenceGET
/api/agent/insightsHigher-level intelligence — schema lifts, top industriesGET
/api/agent/tool-suggestionsFiled meta-agent tool improvement suggestionsGET
/api/data/benchmarksAnonymised industry benchmarks with dimension breakdownGET
/api/data/benchmarks/allAll industries overview — for market reportsGET
/api/data/signals/schemaSchema type effectiveness — lift scoresGET
/api/data/signals/content-patternsContent pattern correlation with high AEO scoresWrite endpoints
POST
/api/agent/analyses/{id}/contentSubmit optimized content back to the toolPOST
/api/agent/analyses/{id}/actionsLog that an agent acted on a recommendationPOST
/api/agent/feedbackStructured feedback on what worked (training signal)POST
/api/agent/tool-suggestionsFile a tool improvement suggestion from a meta-agentFull interactive docs available at /docs (FastAPI Swagger UI). All agent endpoints require the X-Agent-Key header.