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

# Register a developer user, create their organisation, and start a session.



## OpenAPI

````yaml /openapi/v1.yaml post /auth/register
openapi: 3.1.0
info:
  title: Attexra API
  version: 0.1.0
  description: >-
    Identity, scoped authorization, and auditable action evidence for autonomous
    agents. The MVP is non-custodial and does not execute payments.
servers:
  - url: /v1
    description: Current API server
  - url: https://api.attexra.example/v1
    description: Production example
security:
  - apiKeyAuth: []
  - bearerAuth: []
paths:
  /auth/register:
    post:
      summary: >-
        Register a developer user, create their organisation, and start a
        session.
      operationId: registerUser
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RegisterRequest'
      responses:
        '201':
          description: Account created and signed in.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AuthSessionResponse'
        '400':
          $ref: '#/components/responses/ValidationError'
        '409':
          description: Email already registered.
      security: []
components:
  schemas:
    RegisterRequest:
      type: object
      required:
        - name
        - email
        - password
      properties:
        name:
          type: string
          minLength: 1
          maxLength: 120
        email:
          type: string
          format: email
        password:
          type: string
          minLength: 8
          maxLength: 128
        organisationName:
          type: string
          maxLength: 160
    AuthSessionResponse:
      type: object
      required:
        - user
        - organisation
        - role
        - scopes
        - sessionToken
        - expiresAt
      properties:
        user:
          type: object
          required:
            - id
            - email
            - name
          properties:
            id:
              type: string
              format: uuid
            email:
              type: string
              format: email
            name:
              type: string
        organisation:
          type: object
          required:
            - id
            - name
          properties:
            id:
              type: string
              format: uuid
            name:
              type: string
        role:
          type: string
          enum:
            - owner
            - admin
            - developer
            - viewer
        scopes:
          type: array
          items:
            type: string
        sessionToken:
          type: string
        expiresAt:
          type: string
          format: date-time
        initialApiKey:
          type: string
  responses:
    ValidationError:
      description: The request failed validation.
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        Console session token (also supported via attexra_session HttpOnly
        cookie).

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.