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

# Register a server-managed account

> Register a server-owned smart account. Provide a salt for deterministic addressing and a target chain/token.



## OpenAPI

````yaml https://raw.githubusercontent.com/rhinestonewtf/openapi/refs/heads/main/deposit-service.json post /register-managed
openapi: 3.1.0
info:
  title: Deposit Service API
  version: 1.0.0
  description: >-
    Cross-chain deposit processing service with automatic token bridging and gas
    sponsorship
servers:
  - url: https://v1.orchestrator.rhinestone.dev/deposit-processor
security: []
paths:
  /register-managed:
    post:
      tags:
        - Accounts
      summary: Register a server-managed account
      description: >-
        Register a server-owned smart account. Provide a salt for deterministic
        addressing and a target chain/token.
      parameters:
        - schema:
            type: string
            description: API key for authentication
            example: your-api-key
          required: true
          description: API key for authentication
          name: x-api-key
          in: header
        - schema:
            type: string
            pattern: ^\d{4}-\d{2}\.[a-z0-9]+$
            description: >-
              API version identifier (e.g. "2026-04.amazon"). Optional today,
              will become required in a future release.
            example: 2026-04.amazon
          required: false
          description: >-
            API version identifier (e.g. "2026-04.amazon"). Optional today, will
            become required in a future release.
          name: x-api-version
          in: header
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ManagedRegisterRequestBody'
      responses:
        '200':
          description: Managed account registered successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ManagedRegisterResponse'
        '400':
          description: Invalid parameters or unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '500':
          description: Failed to register with webhook providers
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    ManagedRegisterRequestBody:
      type: object
      properties:
        account:
          $ref: '#/components/schemas/ManagedAccountInput'
      required:
        - account
    ManagedRegisterResponse:
      type: object
      properties:
        evmDepositAddress:
          type: string
        solanaDepositAddress:
          type: string
        tronDepositAddress:
          type: string
      required:
        - evmDepositAddress
    ErrorResponse:
      type: object
      properties:
        error:
          type: string
        details:
          type: array
          items:
            type: object
            properties:
              message:
                type: string
              path:
                type: array
                items:
                  anyOf:
                    - type: string
                    - type: number
              code:
                type: string
            required:
              - message
      required:
        - error
    ManagedAccountInput:
      type: object
      properties:
        salt:
          type: string
          pattern: ^0x[a-fA-F0-9]+$
          description: Hex-encoded string (0x followed by hex characters)
          example: '0x1234abcd'
        target:
          $ref: '#/components/schemas/ManagedTarget'
      required:
        - salt
        - target
    ManagedTarget:
      type: object
      properties:
        recipient:
          type: string
          minLength: 1
        chain:
          type: string
          pattern: ^[a-z0-9]+:[a-zA-Z0-9]+$
          description: CAIP-2 chain identifier (e.g. "eip155:8453")
          example: eip155:8453
        token:
          type: string
          minLength: 1
        outputTokenRules:
          type: array
          items:
            $ref: '#/components/schemas/OutputTokenRule'
        rejectUnmapped:
          type: boolean
        postBridgeActions:
          type: array
          items:
            oneOf:
              - type: object
                properties:
                  type:
                    type: string
                    enum:
                      - orderbook-swap
                  contract:
                    type: string
                    pattern: ^0x[a-fA-F0-9]{40}$
                    description: Ethereum address (0x followed by 40 hex characters)
                    example: '0x742d35Cc6634C0532925a3b844Bc9e7595f5bE91'
                  outputToken:
                    type: string
                    pattern: ^0x[a-fA-F0-9]{40}$
                    description: Ethereum address (0x followed by 40 hex characters)
                    example: '0x742d35Cc6634C0532925a3b844Bc9e7595f5bE91'
                required:
                  - type
                  - contract
                  - outputToken
      required:
        - recipient
        - chain
        - token
      description: >-
        Destination target configuration for managed accounts. `recipient` is
        required and specifies the address that receives the final tokens.
    OutputTokenRule:
      type: object
      properties:
        match:
          $ref: '#/components/schemas/OutputTokenRuleMatch'
        outputToken:
          type: string
          minLength: 1
      required:
        - match
        - outputToken
      description: >-
        Destination token routing rule. Matches deposits by source token
        attributes and selects the target-chain output token.
      example:
        match:
          symbol: USDC
        outputToken: '0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913'
    OutputTokenRuleMatch:
      type: object
      properties:
        chain:
          type: string
          pattern: ^[a-z0-9]+:[a-zA-Z0-9]+$
          description: CAIP-2 chain identifier (e.g. "eip155:8453")
          example: eip155:8453
        token:
          type: string
          minLength: 1
        symbol:
          type: string
      description: >-
        Source-token match criteria. Rules may match by source chain, source
        token address, source symbol, or a combination.
      example:
        chain: eip155:10
        symbol: USDC

````