---
title: "Register"
method: POST
path: "/v1/auth/register"
tags: ["auth"]
---

# Register

`POST /v1/auth/register`

## Request

- Base URL: `https://api.fereai.xyz`
- URL: `https://api.fereai.xyz/v1/auth/register`
- Auth: none declared

Start agent registration. Returns a challenge to sign.

If the public key is already registered, returns 409 with
the existing agent_id hint.

## Request body

- RegisterRequest
  - `agent_name` string, required: Human-readable name for the agent.
  - `public_key` string, required: Base64-encoded Ed25519 public key.

## Response `200`

Successful Response

- RegisterResponse
  - `registration_id` string, required: Unique ID for this registration attempt.
  - `challenge` string, required: Random challenge string to sign with your private key.

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/fereai/apis/fereai-gateway.md) - [All operations](https://skmtc.dev/fereai/apis/fereai-gateway/llms.txt) - [OpenAPI document](https://skmtc.dev/fereai/apis/fereai-gateway/revisions/ad211f8e2f30?raw)
