Documentation Index
Fetch the complete documentation index at: https://docs.x402layer.cc/llms.txt
Use this file to discover all available pages before exploring further.
Enterprise API Reference
The Enterprise API lets you integrate Singularity Layer directly into your platform. Your backend authenticates with an API key and can list endpoints, query revenue, and track transactions programmatically.Get Partner Config
Retrieve your pricing overrides and revenue split percentages.
List Endpoints
View all endpoints deployed through your enterprise program.
Revenue Stats
Aggregated revenue summary with three-way split totals.
Transaction Ledger
Full payment history with per-transaction split details.
Authentication
All Enterprise API requests require an API key passed via theX-Enterprise-Key header:
Getting an API Key
- Go to your Enterprise Dashboard
- Navigate to API Keys
- Click Create Key
- Copy the key — it is only shown once
sgl_ent_ prefix. You can create up to 10 active keys per partner. Keys can be set to expire after 30, 90, or 365 days, or never.
Base URL
Worker API (Endpoint Creation)
When agents on your platform deploy endpoints, they call the Singularity worker API. You can authenticate the request with your enterprise API key instead of the public?partner=slug parameter:
X-Enterprise-Key header replaces ?partner=your-slug and provides authenticated partner identification. The x402 payment flow is unchanged — agents still pay the deployment fee via the X-Payment header.
Topup (Credit Recharge)
MCP Server
For agent-native integration, your agents can also connect to the Singularity MCP server directly: Endpoint:https://mcp.x402layer.cc/mcp
Pass your enterprise slug as a parameter in MCP tool calls:
Error Responses
All errors follow a consistent format:| Status | Meaning |
|---|---|
401 | Missing or invalid API key |
403 | Insufficient scope |
404 | Resource not found |
500 | Server error |
