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

# Register

> Register for an API key

Create an account and get your API key. No authentication required.

<RequestExample>
  ```bash cURL theme={null}
  curl -X POST "https://api.agenticpencil.com/v1/auth/register" \
    -H "Content-Type: application/json" \
    -d '{
      "email": "you@example.com",
      "name": "My App"
    }'
  ```
</RequestExample>

## Request Body

<ParamField body="email" type="string" required>
  Your email address
</ParamField>

<ParamField body="name" type="string">
  Name for your API key (default: "Default")
</ParamField>

## Response

<ResponseExample>
  ```json Success Response theme={null}
  {
    "success": true,
    "data": {
      "api_key": "ap_abc123...",
      "key_prefix": "ap_abc1",
      "plan": "free",
      "credits": 50,
      "rate_limit": "10 requests/minute",
      "warning": "⚠️ Save this key — it cannot be retrieved again."
    }
  }
  ```
</ResponseExample>

<Warning>
  Save your API key immediately — it cannot be retrieved after this response.
</Warning>
