Guide

Getting Started with AgentLayer

Build your first agent-callable API in under 10 minutes.

1Create an Account

Sign up at agentlayer.dev/register. You'll get an API key and access to the dashboard immediately.

curl -X POST https://api.agentlayer.dev/v1/register \
  -H "Content-Type: application/json" \
  -d '{"email":"dev@example.com","plan":"starter"}'

2Define Your API

Describe your service using OpenAPI 3.1. AgentLayer auto-generates MCP tool definitions and agent adapters from your spec.

{
  "openapi": "3.1.0",
  "info": { "title": "Financial Data API", "version": "1.0.0" },
  "paths": {
    "/v1/stock/{symbol}": {
      "get": {
        "summary": "Get real-time stock price",
        "parameters": [...],
        "responses": { "200": {...} }
      }
    }
  }
}

3Set Your Pricing

Set per-call pricing. Start with a free tier (1,000 calls/month) to attract agent developers, then charge from $0.001/call.

curl -X PUT https://api.agentlayer.dev/v1/apis/my-api/pricing \
  -H "Authorization: Bearer $API_KEY" \
  -d '{"freeTier":1000,"pricePerCall":0.003,"currency":"USD"}'

4Publish & Earn

One click to publish. Your API appears in MCP Market, GPT Store, and agent directories. Agents discover and start paying immediately.

Start Building Now

Next: Dive into the full API reference for advanced features.

Read API Reference →