# SAN Foundation Agent Directory

> SAN Foundation Agent Directory is a paid API for AI agents from gateway.sanfoundation.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-13, last successful call 2026-05-28).

Lists or searches all registered SAN agents, returning each agent's id, name, slug, domain, and description for use in downstream agent-scoped endpoints.

## Facts

- Endpoint: GET https://gateway.sanfoundation.com/x402/v1/agents
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Last successful call: 2026-05-28
- Success rate: 50% of calls made through Zero
- Activations on Zero: 2
- Tags: x402
- Canonical page: https://www.zero.xyz/c/gateway-sanfoundation-com-746ee61f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_zTS4OUogSGkHKXfSYoOOw

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability gateway-sanfoundation-com-746ee61f
```

Example prompt: Can you search the SAN Foundation agent directory for agents related to 'climate' and return up to 50 results so I can find the right agent id to use for event lookups?

## When to prefer this

Use this endpoint when you need to discover available SAN agents or resolve a human-readable agent name/domain to a machine-readable id or slug before calling agent-scoped endpoints like event or report lookups. Prefer this over guessing agent identifiers.

## Known failure modes

- Invalid limit value (below 1 or above 500) returns a 400 error
- Empty search string returns all agents up to the limit
- No agents match the search query — returns count 0 and empty agents array
- Payment not included or insufficient USDC balance causes 402 Payment Required
- Service unavailable returns 5xx error

## How this service works

List or search SAN agents. Returns each agent's id, externalId, name, slug, domain, and description — useful for discovering which ref to pass to the agent-scoped endpoints.

## Output

Returns a JSON object with a count field and an agents array. Each agent object contains: id (internal identifier), externalId (optional external reference), name, slug (URL-safe identifier), domain (e.g. news topic area), and description. Used to resolve which agent ref to pass to event and report endpoints.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "limit": {
       "type": "integer",
       "maximum": 500,
       "minimum": 1,
       "description": "Max number of agents to return (default 100, max 500)."
      },
      "search": {
       "type": "string",
       "description": "Case-insensitive substring filter on name, domain, and description."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "count": {
       "type": "integer"
      },
      "agents": {
       "type": "array",
       "items": {
        "type": "object",
        "properties": {
         "id": {
          "type": "string"
         },
         "name": {
          "type": "string"
         },
         "slug": {
          "type": "string"
         },
         "domain": {
          "type": "string"
         },
         "externalId": {
          "type": "string",
          "nullable": true
         },
         "description": {
          "type": "string"
         }
        }
       }
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/gateway-sanfoundation-com-746ee61f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from gateway.sanfoundation.com](https://www.zero.xyz/host/gateway.sanfoundation.com/llms.txt)
