Documentation Index
Fetch the complete documentation index at: https://docs.credprotocol.com/llms.txt
Use this file to discover all available pages before exploring further.
Overview
Search across all registered agents in the ERC-8004 Identity Registry by name or description. Returns paginated results with agent metadata.
The search uses a pre-built Redis index that is refreshed every 30 minutes, making queries instant even across 20,000+ agents. Matching is case-insensitive substring search on the agent’s name and description fields.
This is a free endpoint (0 Cred Units).
Authentication
| Method | Header | Cost |
|---|
| API Token | Authorization: Bearer YOUR_API_KEY | 0 Cred Units |
| x402 Payment | X-PAYMENT: <signed_payment> | Free |
Query Parameters
Search query (matches against agent name or description). Minimum 1 character.
Page number (must be >= 1)
Number of agents per page (1-100)
Response
Array of matching agent objects on this page
The ERC-8004 agent ID (ERC-721 token ID)
Ethereum address of the agent’s owner (checksummed)
Agent registration metadata from tokenURI (null if unavailable)
Agent name from registration metadata
agents[].metadata.description
Agent description from registration metadata
Agent image URI from registration metadata
Total number of agents matching the query
The search query that was used
Number of agents per page
curl -X GET "https://api.credprotocol.com/api/v2/agents/search?q=cred&page=1&limit=10" \
-H "Authorization: Bearer YOUR_API_KEY"
{
"agents": [
{
"agent_id": 42,
"owner": "0x742d35Cc6634C0532925a3b844Bc454e4438f44e",
"metadata": {
"name": "Cred Score Agent",
"description": "On-chain credit scoring for DeFi protocols",
"image": "ipfs://QmExample123"
}
},
{
"agent_id": 128,
"owner": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
"metadata": {
"name": "CredCheck",
"description": "Automated credential verification",
"image": "https://example.com/agent.png"
}
}
],
"total_results": 2,
"query": "cred",
"page": 1,
"limit": 10
}
- Response Time: Typically under 100ms (reads from a pre-built Redis index)
- Index Freshness: Updated every 30 minutes by a background task
- Data Source: Agent metadata from on-chain
tokenURI() calls, cached in Redis