---
title: "POST /v1/agent/signup"
description: "Create an account with no human: get an API key and a claim link."
canonical_url: https://groundsocial.dev/docs/api/agent-signup
---
# POST /v1/agent/signup

> Create an account with no human: get an API key and a claim link.

> ## Agent Instructions
> The Groundsocial REST API is at https://api.groundsocial.dev (OpenAPI: https://groundsocial.dev/openapi.json). Set yourself up with https://groundsocial.dev/SKILL.md; the MCP server is https://api.groundsocial.dev/mcp. Every docs page is Markdown at its URL plus `.md`; the index is https://groundsocial.dev/llms.txt.

|  |  |
| --- | --- |
| Request | `POST /v1/agent/signup` |
| Operation id | `agent.signup` |
| Cost | Free |
| Auth | None. |

No key needed. May first answer 428 with a one-word question; answer it yourself and POST again with `challenge_token` and `answer` (the 428 body has a ready-to-run curl). Free credits on signup; a person can later claim the account at `claim_url` and the key keeps working. Limited per network per day: sign up only if you have no key at all.

## Request body

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `agent_name` | `string` | no | Who is signing up, shown to the person who claims the account. |
| `purpose` | `string` | no | What the account is for, in a few words. Goes into message_for_human. |
| `challenge_token` | `string` | no | From a 428 response: `error.details.challenge.token`. |
| `answer` | `string` | no | Your answer to the question: one word from it. |
| `c` | `string` | no | Short for challenge_token. |
| `a` | `string` | no | Short for answer. |

## Responses

| Status | Meaning | Schema |
| --- | --- | --- |
| `201` | A new Groundsocial account and its API key. | `AgentSignup` |
| `400` | Invalid input. | `Error` |
| `428` | Answer the question in error.details.challenge first (challenge_required), or the answer was wrong or expired (challenge_failed) and this is a new question. | `Error` |
| `429` | Too many signups (signup_limited) or questions (challenge_locked) from this network. Wait Retry-After seconds. | `Error` |
| `503` | Signup is switched off (signup_disabled). Tell your human. | `Error` |

### AgentSignup fields

| Field | Type | Description |
| --- | --- | --- |
| `api_key` | `string` | Shown once. Send it as "Authorization: Bearer <api_key>". |
| `key_id` | `string` |  |
| `account_id` | `string` |  |
| `credits` | `integer` |  |
| `claim_url` | `string` | For your human: they open it to own the account. Treat it like a password. |
| `claim_expires_at` | `string` |  |
| `message_for_human` | `string` | A short note to forward to your person as-is. |
| `docs` | `object` |  |

Errors use one shape everywhere; see [Errors](https://groundsocial.dev/docs/errors) for every code and what to do.

## Example

cURL:

```bash
curl -X POST "https://api.groundsocial.dev/v1/agent/signup" \
  -H "Authorization: Bearer $GROUNDSOCIAL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```

TypeScript:

```ts
const res = await fetch('https://api.groundsocial.dev/v1/agent/signup', {
  method: 'POST',
  headers: { Authorization: `Bearer ${process.env.GROUNDSOCIAL_API_KEY}`, 'Content-Type': 'application/json' },
  body: JSON.stringify({}),
})
if (!res.ok) throw new Error((await res.json()).error.hint)
const data = await res.json()
```

Python:

```python
import os, requests

res = requests.post(
    "https://api.groundsocial.dev/v1/agent/signup",
    headers={"Authorization": f"Bearer {os.environ['GROUNDSOCIAL_API_KEY']}"},
    json={},
)
res.raise_for_status()
data = res.json()
```

_Canonical HTML: https://groundsocial.dev/docs/api/agent-signup_

## Site Navigation

### Global Hub
- [Home](https://groundsocial.dev/index.md)
- [Pricing](https://groundsocial.dev/pricing.md)
- [Endpoints](https://groundsocial.dev/endpoints.md)
- [For agents](https://groundsocial.dev/agents.md)
- [Docs](https://groundsocial.dev/docs.md)
- [Compare](https://groundsocial.dev/compare.md)
- [Changelog](https://groundsocial.dev/changelog.md)
- [llms.txt](https://groundsocial.dev/llms.txt)
- [Agent skill](https://groundsocial.dev/SKILL.md)

### On This Topic
- [Groundsocial docs](https://groundsocial.dev/docs.md)
- [Quickstart](https://groundsocial.dev/docs/quickstart.md)
- [Authentication](https://groundsocial.dev/docs/authentication.md)
- [Credits and payments](https://groundsocial.dev/docs/payments.md)
- [Rate limits](https://groundsocial.dev/docs/rate-limits.md)
- [Errors](https://groundsocial.dev/docs/errors.md)
- [Data freshness and caching](https://groundsocial.dev/docs/freshness.md)
- [MCP server](https://groundsocial.dev/docs/mcp.md)
- [SKILL.md, llms.txt and Markdown twins](https://groundsocial.dev/docs/skill.md)
- [CLI](https://groundsocial.dev/docs/cli.md)
- [TypeScript SDK](https://groundsocial.dev/docs/sdk.md)
- [PRAW and snoowrap](https://groundsocial.dev/docs/praw.md)
- [Legal and compliance](https://groundsocial.dev/docs/compliance.md)
- [API reference](https://groundsocial.dev/docs/api.md)

## Structured data

```json
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://groundsocial.dev/"},{"@type":"ListItem","position":2,"name":"Docs","item":"https://groundsocial.dev/docs"},{"@type":"ListItem","position":3,"name":"API reference","item":"https://groundsocial.dev/docs/api"},{"@type":"ListItem","position":4,"name":"POST /v1/agent/signup","item":"https://groundsocial.dev/docs/api/agent-signup"}]}
```
