> ## 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.

# Configure client settings

> Configure webhook URL, secret, sponsorship rules, and source-token whitelist rules for a client. Deposit whitelist keys must use CAIP-2 chain identifiers (for example "eip155:8453").



## OpenAPI

````yaml https://raw.githubusercontent.com/rhinestonewtf/openapi/refs/heads/main/deposit-service.json post /setup
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:
  /setup:
    post:
      tags:
        - Clients
      summary: Configure client settings
      description: >-
        Configure webhook URL, secret, sponsorship rules, and source-token
        whitelist rules for a client. Deposit whitelist keys must use CAIP-2
        chain identifiers (for example "eip155:8453").
      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/SetupRequestBody'
      responses:
        '200':
          description: Client updated successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SetupResponse'
        '400':
          description: Invalid parameters or unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    SetupRequestBody:
      type: object
      properties:
        params:
          $ref: '#/components/schemas/ClientInput'
      required:
        - params
    SetupResponse:
      type: object
      properties:
        message:
          type: string
      required:
        - message
    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
    ClientInput:
      type: object
      properties:
        webhookUrl:
          type: string
          nullable: true
          format: uri
        webhookSecret:
          type: string
          nullable: true
        sponsorship:
          type: object
          additionalProperties:
            $ref: '#/components/schemas/ChainSponsorship'
        depositWhitelist:
          $ref: '#/components/schemas/DepositWhitelist'
        maxPriceDeviationBps:
          type: integer
          nullable: true
          minimum: 0
          maximum: 10000
          description: >-
            Maximum allowed price deviation in basis points for
            stablecoin-to-stablecoin bridges. Defaults to 200 (2%) if not set.
          example: 200
    ChainSponsorship:
      type: object
      properties:
        gas:
          type: string
          enum:
            - all
            - none
            - deployed
          description: Gas sponsorship mode
          example: all
        swap:
          type: string
          enum:
            - all
            - none
          description: Fee sponsorship mode
          example: all
        bridging:
          type: string
          enum:
            - all
            - none
          description: Fee sponsorship mode
          example: all
    DepositWhitelist:
      type: object
      additionalProperties:
        type: array
        items:
          type: object
          properties:
            token:
              type: string
              minLength: 1
            minAmount:
              type: string
              pattern: ^\d+$
              description: Numeric string representing a bigint value
              example: '1000000000000000000'
            maxAmount:
              type: string
              pattern: ^\d+$
              description: Numeric string representing a bigint value
              example: '1000000000000000000'
          required:
            - token
      description: >-
        Per-source-chain deposit allowlist keyed by CAIP-2 chain identifiers
        (for example "eip155:8453"). Each key maps to allowed source tokens and
        optional min/max amount limits in raw token units.
      example:
        eip155:8453:
          - token: '0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913'
            minAmount: '1000000'
            maxAmount: '5000000000'

````