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

# Create an account



## OpenAPI

````yaml /openapi.json post /v1/auth/signup
openapi: 3.1.0
info:
  title: datachad API
  description: Accounts, API keys and catalogue access for datachad datasets.
  license:
    name: ''
  version: 1.0.0
servers:
  - url: https://api.datachad.xyz
security: []
tags:
  - name: Auth
    description: Sign up, log in and read the current user.
  - name: API keys
    description: Create and revoke keys for programmatic access.
  - name: Datasets
    description: Browse the catalogue and its metadata.
paths:
  /v1/auth/signup:
    post:
      tags:
        - Auth
      summary: Create an account
      operationId: signup
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SignupBody'
        required: true
      responses:
        '201':
          description: Account created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AuthResponse'
        '400':
          description: Invalid input
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorBody'
        '409':
          description: Email already registered
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorBody'
        '429':
          description: Too many attempts
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorBody'
components:
  schemas:
    SignupBody:
      type: object
      required:
        - email
        - password
        - name
        - organization
      properties:
        email:
          type: string
          example: ada@lab.example
        name:
          type: string
          example: Ada Lovelace
        organization:
          type: string
          example: Example Lab
        password:
          type: string
          description: At least 10 characters.
          example: correct horse battery
    AuthResponse:
      type: object
      required:
        - token
        - user
      properties:
        token:
          type: string
          description: 'JWT, valid for 7 days. Send it as `Authorization: Bearer <token>`.'
        user:
          $ref: '#/components/schemas/User'
    ErrorBody:
      type: object
      required:
        - error
      properties:
        error:
          type: string
    User:
      type: object
      required:
        - id
        - email
        - name
        - organization
        - created_at
      properties:
        created_at:
          type: string
        email:
          type: string
        id:
          type: integer
          format: int64
        name:
          type: string
        organization:
          type: string

````