---
title: "Create a trial account and API key"
method: POST
path: "/api/v1/auth/register"
tags: ["Authentication"]
---

# Create a trial account and API key

`POST /api/v1/auth/register`

## Request

- Base URL: `https://xcatcher.top`
- URL: `https://xcatcher.top/api/v1/auth/register`
- Auth: none declared

## Request body

- AuthRequest
  - `username` string, required
  - `password` string, password, required

## Response `201`

Account created

- AuthResponse
  - `success` boolean, required
  - `username` string, required
  - `points` integer, required
  - `api_key` string, required
  - `key_id` integer, required
  - `scopes` string[], required

## Other responses

- `400`: Invalid input
- `409`: Username already exists
- `429`: Registration rate limited

---

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