> For the complete documentation index, see [llms.txt](https://polydash.gitbook.io/polydash-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://polydash.gitbook.io/polydash-docs/agents-and-api/agent-launch-api.md).

# Agent launch API

The Polypad agent API lets an AI agent or a script prepare a token launch without Polypad ever touching a key.

* **What it does.** It validates `createLaunch` parameters, runs an `eth_call` against the factory on Robinhood Chain, and returns an unsigned transaction.
* **Who it is for.** Developers and agent operators who want to launch or trade programmatically, with the same contracts and parameters as the Create page.
* **What it never does.** It never accepts a private key or seed phrase, never sees a signature, and never broadcasts a transaction.

Base URL: `https://polypad.family`. Discovery document: `GET /api/agents/v1`. Machine-readable spec: `GET /api/agents/v1/spec`.

## Quickstart

{% stepper %}
{% step %}

### Discover the API

```bash
curl -s https://polypad.family/api/agents/v1
```

The response lists the chain, the factory, the rate limit, and every endpoint.
{% endstep %}

{% step %}

### Validate your parameters

```bash
curl -s https://polypad.family/api/agents/v1/validate \
  -H 'content-type: application/json' \
  -d '{
    "from": "0x1111111111111111111111111111111111111111",
    "name": "Example",
    "symbol": "EXM",
    "creatorFeeBps": 100
  }'
```

Validation makes no RPC call.
{% endstep %}

{% step %}

### Simulate

```bash
curl -s https://polypad.family/api/agents/v1/simulate \
  -H 'content-type: application/json' \
  -H 'x-polypad-client: my-agent' \
  -d '{
    "from": "0xYOUR_SIGNER_ADDRESS",
    "name": "Example",
    "symbol": "EXM",
    "imageUri": "https://example.com/logo.png",
    "description": "Example token",
    "socialLinks": ["https://example.com"],
    "repository": "https://github.com/owner/repo",
    "creatorFeeBps": 100,
    "devBuyEth": "0",
    "totalSupply": "0",
    "virtualEthReserve": "0",
    "launchDelay": "0"
  }'
```

The API runs `eth_call` and returns `unsignedTx`.
{% endstep %}

{% step %}

### Sign and broadcast

Send `unsignedTx.data` to the factory from the `from` address, with `unsignedTx.value` as the transaction value. Do this in your own wallet or signer.
{% endstep %}
{% endstepper %}

## Custody

Send the signer as `from`, a 20-byte hex address. Do not send a private key, a seed phrase, or a field named like one. If a request contains such a field at any depth, the API returns `400 KEY_MATERIAL_REJECTED` and does not echo the value.

`unsignedTx` contains:

| Field      | Meaning                                          |
| ---------- | ------------------------------------------------ |
| `from`     | The signer address you supplied                  |
| `to`       | The factory address                              |
| `data`     | The encoded `createLaunch` call                  |
| `value`    | Wei, as a decimal string. Must equal `devBuyEth` |
| `valueHex` | Same value in hex                                |
| `chainId`  | 4663 for Robinhood Chain                         |

## Authentication

Most endpoints need no authentication. The rate limit is the control, and it is not an authentication scheme.

Two groups use an API key (`auth: api_key` in the discovery document):

* `POST /api/agents/v1/metadata` uploads a token logo.
* `POST /api/agents/v1/launch/build` returns an unsigned `createLaunch` with terms and limits.

A key is issued by `POST /api/agents/v1/keys`. See `GET /api/agents/v1/spec` for the current request shape.

## Related pages

* [Endpoint reference](https://polydash.gitbook.io/polydash-docs/agents-and-api/endpoint-reference.md)
* [Launch endpoints](https://polydash.gitbook.io/polydash-docs/agents-and-api/launch-endpoints.md)
* [Trading and commitment endpoints](https://polydash.gitbook.io/polydash-docs/agents-and-api/trading-endpoints.md)
* [Errors and rate limits](https://polydash.gitbook.io/polydash-docs/agents-and-api/errors-and-rate-limits.md)
* [Agent-launched badge](https://polydash.gitbook.io/polydash-docs/agents-and-api/agent-launched-badge.md)
* [MCP server](https://polydash.gitbook.io/polydash-docs/agents-and-api/mcp-server.md)

## Risks

You are responsible for what you launch. The API's simulation shows that a call would succeed at that moment. It does not review the token. The contracts are **Not audited.**


---

# 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://polydash.gitbook.io/polydash-docs/agents-and-api/agent-launch-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.
