REST Endpoints
Agent Explorer exposes a REST API for programmatic access to all features.

Authentication
All API endpoints require a valid Clerk session cookie (browser) or a Clerk session token (server-to-server). Unauthenticated requests return 401.
Projects
| Method | Path | Description |
|---|
| GET | /api/projects | List projects (query: ?teamId=, ?personal=true) |
| POST | /api/projects | Create a project |
| GET | /api/projects/:id | Get project details |
| PUT | /api/projects/:id | Update project |
| DELETE | /api/projects/:id | Delete project and all data |
| GET | /api/projects/:id/oauth/config | Get OAuth config |
| PUT | /api/projects/:id/oauth/config | Save OAuth config |
| POST | /api/projects/:id/oauth/revoke | Revoke OAuth tokens |
Create Project
POST /api/projects
Content-Type: application/json
{
"name": "My Agent",
"agentcardUrl": "https://agent.example.com"
}
Conversations
| Method | Path | Description |
|---|
| GET | /api/conversations | List conversations |
| POST | /api/conversations | Create conversation |
| GET | /api/conversations/:id | Get conversation |
| PUT | /api/conversations/:id | Update conversation |
| DELETE | /api/conversations/:id | Delete conversation |
| GET | /api/conversations/:id/messages | List messages |
| PUT | /api/conversations/:id/messages | Add message |
Mock Agents
| Method | Path | Description |
|---|
| GET | /api/mock-agents | List mock agents |
| POST | /api/mock-agents | Create mock agent |
| GET | /api/mock-agents/:id | Get mock agent |
| PUT | /api/mock-agents/:id | Update mock agent |
| DELETE | /api/mock-agents/:id | Delete mock agent |
| POST | /api/mock-agents/:id/a2a | Send A2A message to mock |
| GET | /api/mock-agents/:id/.well-known/agent-card.json | Get mock agent's AgentCard |
| GET | /api/mock-agents/:id/webhooks/subscriptions | List active webhook subscriptions |
| DELETE | /api/mock-agents/:id/webhooks/subscriptions?subscriptionId=:sid | Delete a webhook subscription |
| GET | /api/mock-agents/:id/webhooks/deliveries | List webhook delivery logs |
| GET | /api/mock-agents/api-keys | List API keys |
| POST | /api/mock-agents/api-keys | Create API key |
| DELETE | /api/mock-agents/api-keys/:id | Delete API key |
AgentCard
GET /api/agentcard?url=https://agent.example.com
Fetches and validates the AgentCard from the given base URL.
Templates
| Method | Path | Description |
|---|
| GET | /api/templates | List payload templates |
| POST | /api/templates | Create template |
Teams
| Method | Path | Description |
|---|
| GET | /api/teams | List teams |
| POST | /api/teams | Create team |
| GET | /api/teams/:id | Get team |
| PUT | /api/teams/:id | Update team |
| DELETE | /api/teams/:id | Delete team |
| GET | /api/teams/:id/members | List members |
| POST | /api/teams/:id/members | Add member |
| DELETE | /api/teams/:id/members | Remove member |
Settings
| Method | Path | Description |
|---|
| GET | /api/settings/llm | List LLM configs |
| POST | /api/settings/llm | Create LLM config |
| PUT | /api/settings/llm/:id | Update LLM config |
| DELETE | /api/settings/llm/:id | Delete LLM config |
OAuth
| Method | Path | Description |
|---|
| POST | /api/oauth/authorize | Initiate OAuth flow |
| POST | /api/oauth/callback | OAuth callback handler |
Error Responses
All endpoints return errors in a consistent format:
{
"error": "Project not found"
}
HTTP status codes: 400 Bad Request, 401 Unauthorized, 403 Forbidden, 404 Not Found, 500 Internal Error