> ## Documentation Index
> Fetch the complete documentation index at: /docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Agent Sign-ups API: Let an Agent Ask to Connect

> The flow an agent with no credential uses to connect: it starts a sign-up, a person approves it in the browser, and the agent polls for its credential.

An agent that has no credential can ask a person to connect it. The agent starts a sign-up and gets a code. The person signs in, types the code, and picks a vault. The agent polls until it gets its credential.

This is the flow behind `onecli login`. Two endpoints are for the agent and need no credential. Three are for the signed-in person.

## Related guides

* [Agent quickstart: let an agent connect itself](/docs/agent-quickstart.md)
* [Quickstart: connect an agent and make a first call](/docs/quickstart.md)

## Endpoints

| Endpoint | Method and path | What it does |
| - | - | - |
| [Start an agent sign-up](/docs/api-reference/agent-sign-ups/start-an-agent-sign-up.md) | `POST /v2/agent-signups` | Starts a sign-up for an agent with no credential. |
| [Look up an agent sign-up by its code](/docs/api-reference/agent-sign-ups/look-up-an-agent-sign-up-by-its-code.md) | `POST /v2/agent-signups/verify` | Shows the signed-in person which agent asked to connect, by the code the agent displayed, before they approve or deny it. |
| [Approve an agent sign-up](/docs/api-reference/agent-sign-ups/approve-an-agent-sign-up.md) | `POST /v2/agent-signups/{id}/approve` | Approves an agent sign-up as the signed-in person and connects the agent to one vault they can use. |
| [Deny an agent sign-up](/docs/api-reference/agent-sign-ups/deny-an-agent-sign-up.md) | `POST /v2/agent-signups/{id}/deny` | Denies an agent sign-up as the signed-in person. |
| [Poll an agent sign-up](/docs/api-reference/agent-sign-ups/poll-an-agent-sign-up.md) | `POST /v2/agent-signups/{id}/token` | The agent polls its sign-up with the poll token. |

## Next steps

* [API overview](/docs/api-reference.md): base URLs, authentication, and pagination
* [Errors](/docs/api-reference/errors.md): status codes and the error format
* [Editions](/docs/api-reference/editions.md): which endpoints each edition serves


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.