> For the complete documentation index, see [llms.txt](https://fourohtwo.gitbook.io/fourohtwo-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://fourohtwo.gitbook.io/fourohtwo-docs/creators/launch-an-api.md). Agents can also search and read this documentation through its [MCP server](https://fourohtwo.gitbook.io/fourohtwo-docs/~gitbook/mcp).

# Launch an API

Turn any https endpoint into a paid API in about two minutes. No SDK, no code changes.

## Steps

1. Go to [fourohtwo.xyz/launch](https://fourohtwo.xyz/launch) and sign in with the wallet that should receive earnings.
2. Paste your endpoint URL, give it a name and a short description of what it returns.
3. Choose the method (GET, POST or both) and a price from 0.001 to 100 per call. Agents pay it in USDG on Robinhood Chain or USDC on Base.
4. If your API needs a key, add it as a **secret header**. It's encrypted at rest and only added to paid requests. Agents never see it.
5. [Verify your domain](https://fourohtwo.gitbook.io/fourohtwo-docs/creators/verify-your-domain.md). Your API goes live as soon as it's verified.

## What agents call

Agents call `https://fourohtwo.xyz/x/<your-api>`. Extra path segments and query parameters are passed through to your endpoint, so `/x/weather/daily?city=Jakarta` reaches `https://your-api.com/v1/forecast/daily?city=Jakarta`.

Requests from Fourohtwo carry the header `x-fourohtwo-api: <your-api>`.

{% hint style="success" %}
Only paid requests reach your endpoint. Unpaid ones are answered with 402 by Fourohtwo.
{% endhint %}

## Managing it

From the [dashboard](https://fourohtwo.xyz/dashboard/apis) you can pause and resume the API, change its price and see calls and earnings.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://fourohtwo.gitbook.io/fourohtwo-docs/creators/launch-an-api.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
