---
title: "Self-register and get an agent API key"
method: POST
path: "/agent/register"
tags: ["Agent"]
---

# Self-register and get an agent API key

`POST /agent/register`

## Request

- Base URL: `https://api.beecargo.net`
- URL: `https://api.beecargo.net/agent/register`
- Auth: none declared

Public. Requires a solved proof-of-work from POST /agent/register/challenge. Rate-limited per IP (about 5/hour). Returns free-tier agent quotas. The key starts with bc_ and is shown once; store it securely. Prefer beecargo_register_agent or the CLI.

## Request body

- AgentRegisterRequest
  - `label` string
  - `challenge_id` string, required
  - `nonce` string, required

## Response `200`

Machine key created

- AgentRegisterResponse
  - `key` string: One-time API key secret (starts with bc_)
  - `owner_id` string, uuid
  - `key_prefix` string
  - `scope` 'files_write' | 'files_read' | 'full'
  - `tier` 'bootstrap' | 'premium'
  - `note` string

## Other responses

- `400`: Missing or invalid proof-of-work
- `429`: Rate limited

---

[API](https://skmtc.dev/beecargo/apis/beecargo-agent-api.md) · [All operations](https://skmtc.dev/beecargo/apis/beecargo-agent-api/llms.txt) · [OpenAPI document](https://skmtc.dev/beecargo/apis/beecargo-agent-api/revisions/1f3dfd396f6e?raw)
