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

# Create Deposit



## OpenAPI

````yaml /api-reference/proxy.json post /v1/deposits
openapi: 3.1.0
info:
  title: Lumi Proxy API
  version: 1.1.0
  description: >-
    Публичный REST API прокси Lumi. Ключ привязан к одному аккаунту и делает то
    же, что клиент делает в боте.


    Авторизация: `Authorization: Bearer <ключ>`. Денежные запросы дополнительно
    требуют заголовок `Idempotency-Key`.
servers:
  - url: https://api.lumiweb.cc/proxy
    description: production
security:
  - bearerAuth: []
paths:
  /v1/deposits:
    post:
      tags:
        - deposits
      summary: Create Deposit
      operationId: create_deposit
      parameters:
        - name: authorization
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Authorization
        - name: Idempotency-Key
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Idempotency-Key
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DepositCreate'
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DepositOut'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    DepositCreate:
      properties:
        amount_usd:
          anyOf:
            - type: number
              exclusiveMinimum: 0
            - type: string
              pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
          title: Amount Usd
          description: USD nominal to credit on payment
        provider:
          type: string
          enum:
            - cryptobot
            - xrocket
            - lava
            - p2328
            - lolzteam
          title: Provider
          description: cryptobot | xrocket | lava | p2328 | lolzteam
        asset:
          anyOf:
            - type: string
              maxLength: 16
              pattern: ^[A-Z0-9]+$
            - type: 'null'
          title: Asset
          description: CryptoBot coin lock, optional
      type: object
      required:
        - amount_usd
        - provider
      title: DepositCreate
    DepositOut:
      properties:
        provider:
          type: string
          title: Provider
        external_id:
          type: string
          title: External Id
        pay_url:
          type: string
          title: Pay Url
        amount_usd:
          type: string
          title: Amount Usd
        pay_usd:
          type: string
          title: Pay Usd
        amount_rub:
          anyOf:
            - type: string
            - type: 'null'
          title: Amount Rub
        expires_at:
          anyOf:
            - type: integer
            - type: 'null'
          title: Expires At
      type: object
      required:
        - provider
        - external_id
        - pay_url
        - amount_usd
        - pay_usd
      title: DepositOut
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: Ключ вида lumi_proxy_… Выдаётся оператором.

````