> ## 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.

# API reference

> OpenAPI-backed reference for the main x402 Singularity Layer endpoints

# API reference

This section is the structured API reference for the main x402 Singularity Layer endpoints.

It covers the most important live API surfaces across the platform:

* marketplace discovery
* public endpoint metadata
* hosted x402 payment routes
* seller webhook management
* wallet-first agent auth
* agent endpoint management
* ERC-8004 prepare and finalize flows
* Singularity Compute
* Agentic Fundraisers
* Enterprise partner management

## Base domains

| Surface        | Base URL                       |
| -------------- | ------------------------------ |
| API gateway    | `https://api.x402layer.cc`     |
| Studio web app | `https://studio.x402layer.cc`  |
| MCP            | `https://mcp.x402layer.cc/mcp` |

## Authentication summary

| Surface                         | Auth                                     |
| ------------------------------- | ---------------------------------------- |
| Marketplace discovery           | none                                     |
| Hosted payment challenge routes | x402 `X-Payment`                         |
| Webhook management              | dashboard auth / seller session          |
| Wallet-first agent auth         | signed wallet challenge                  |
| Agent endpoint management       | x402 payment + `X-API-Key` or owner auth |
| ERC-8004 prepare/finalize       | bearer session token from wallet auth    |
| Fundraiser read APIs            | none                                     |
| Fundraiser contributions        | x402 receipt token                       |
| Fundraiser create/edit/comment  | Supabase session                         |
| Enterprise partner APIs         | `X-Enterprise-Key` header                |

## OpenAPI source

<Card title="View the API specification" icon="terminal" href="/api-reference/openapi.json">
  View the OpenAPI specification that powers this reference.
</Card>
