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

# Complete Onboarding

> Verify the sent email OTP challenge and return a secure Bearer token linked to the user's database and wallet record.

Validate the 6-digit email OTP challenge to authorize the connection. If correct, this returns a high-entropy JWT Bearer session token and details of the linked Developer-Controlled Wallet.


## OpenAPI

````yaml POST /v1/connect/complete
openapi: 3.1.0
info:
  title: Aegis Secure API
  description: >-
    Zero-trust API for Developer-Controlled Wallets (DCW) and programmatic
    Policy Engine controls.
  license:
    name: MIT
  version: 1.0.0
servers:
  - url: https://api.aegisintent.xyz
    description: Production API Server
security: []
paths:
  /v1/connect/complete:
    post:
      tags:
        - Connect API
      summary: Complete Onboarding
      description: >-
        Verify the sent email OTP challenge and return a secure Bearer token
        linked to the user's database and wallet record.
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - email
                - otp
                - challengeId
              properties:
                email:
                  type: string
                  format: email
                challengeId:
                  type: string
                  format: uuid
                  description: The ID of the OTP challenge
                otp:
                  type: string
                  description: 6-digit verification code
      responses:
        '200':
          description: Onboarding complete and token generated
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  token:
                    type: string
                  agent:
                    type: object
                    properties:
                      id:
                        type: string
                      email:
                        type: string
                      walletAddress:
                        type: string

````