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

# Create withdrawal

> Initiates a cryptocurrency withdrawal for a user. The withdrawal is created as a queued transaction and processed asynchronously.



## OpenAPI

````yaml /api-reference/openapi.json post /api/crypto/{userId}/withdraw
openapi: 3.1.0
info:
  title: LootRush Partner API
  description: >-
    REST endpoints for LootRush partner integrations: crypto withdrawals,
    transaction history, and OAuth-style user data access.
  version: 1.0.0
servers:
  - url: https://third-party.lootrush.com
    description: Third-party API (Withdraw, Connect)
  - url: https://history-api.lootrush.com
    description: History API
security:
  - bearerAuth: []
paths:
  /api/crypto/{userId}/withdraw:
    post:
      tags:
        - Withdrawals
      summary: Create withdrawal
      description: >-
        Initiates a cryptocurrency withdrawal for a user. The withdrawal is
        created as a queued transaction and processed asynchronously.
      operationId: createWithdrawal
      parameters:
        - name: userId
          in: path
          required: true
          description: Unique identifier of the user making the withdrawal.
          schema:
            type: string
            format: uuid
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - amount
                - to
              properties:
                amount:
                  type: string
                  description: >-
                    Amount to withdraw. Sent as a string to preserve decimal
                    precision.
                  example: '100.50'
                currency:
                  type: string
                  description: Cryptocurrency to withdraw.
                  default: USDT
                  examples:
                    - USDT
                    - USDC
                    - EURC
                network:
                  type: string
                  description: Blockchain network.
                  default: polygon
                  examples:
                    - polygon
                    - ethereum
                    - base
                to:
                  type: string
                  description: >-
                    Recipient identifier: an email address, a user ID (UUID), or
                    a wallet address (0x-prefixed, 42 chars). Emails and user
                    IDs resolve to the user's verified smart wallet; a wallet
                    address is used as-is.
                  example: '0x742d35Cc6634C0532925a3b844Bc9e7595f0bEb2'
                externalId:
                  type: string
                  description: >-
                    Optional external identifier for tracking this withdrawal in
                    your system.
                  example: withdraw-12345
      responses:
        '200':
          description: Withdrawal queued.
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                    example: Withdraw created as queued
                  data:
                    type: object
                    properties:
                      bulkId:
                        type: string
                        format: uuid
                        description: Identifier for the bulk payment operation.
                      externalId:
                        type: string
                        description: The external identifier you provided, if any.
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          description: The recipient wallet is blocked from receiving tokens.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: >-
            User not found, recipient could not be resolved, or wallet not
            found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
        - bearerAuth: []
      servers:
        - url: https://third-party.lootrush.com
components:
  responses:
    Unauthorized:
      description: Invalid or missing API token, or user not allowed.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  schemas:
    Error:
      type: object
      properties:
        error:
          type: string
          description: Message describing what went wrong.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        API token issued by your LootRush account manager. Sent as
        `Authorization: Bearer <token>`.

````