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

# Register a new account

> Create a new Shelv account with email and password. Sends a verification code for new accounts, or an informational email if the address is already registered.



## OpenAPI

````yaml openapi.yaml post /v1/auth/register
openapi: 3.1.0
info:
  description: >-
    Convert documents into structured Markdown filesystems that AI agents can
    hydrate and use in sandbox runtimes.
  title: Shelv API
  version: 1.0.0
servers:
  - url: https://api.shelv.dev
security:
  - bearerApiKey: []
paths:
  /v1/auth/register:
    post:
      tags:
        - Auth
      summary: Register a new account
      description: >-
        Create a new Shelv account with email and password. Sends a verification
        code for new accounts, or an informational email if the address is
        already registered.
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RegisterInput'
      responses:
        '201':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RegisterResponse'
          description: Email sent
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Validation error
      security: []
components:
  schemas:
    RegisterInput:
      properties:
        email:
          format: email
          type: string
        name:
          minLength: 1
          type: string
        password:
          minLength: 8
          type: string
      required:
        - name
        - email
        - password
      type: object
    RegisterResponse:
      properties:
        message:
          type: string
      required:
        - message
      type: object
    ErrorResponse:
      properties:
        code:
          type: string
        details: {}
        message:
          type: string
      required:
        - code
        - message
      type: object
  securitySchemes:
    bearerApiKey:
      bearerFormat: APIKey
      scheme: bearer
      type: http

````