API Reference

API Documentation

Integrate AgentLayers's scanning engine and agent directory into your own applications. All endpoints are available at /api/*

OpenAPI Spec (JSON)

Authentication

Most endpoints are publicly accessible. Authenticated endpoints (billing, user profile) require a valid NextAuth session cookie. Authenticate by signing in at /auth/signin.

# The session cookie is automatically included in browser requests.
# For programmatic access, include the session cookie:
curl /api/stripe/checkout \
  -X POST \
  -H "Cookie: next-auth.session-token=YOUR_TOKEN"

Scanning

Agents

Badges

Utilities

Billing

Skill Scanner

A2A Scanner

MCP Scanner

Rate Limits

Beta (Current)

Unlimited scans

100% free during beta

Pro Plan

Coming soon

Priority support & higher API limits