---
title: "Create a user action"
method: POST
path: "/users/{id}/actions"
tags: ["user-actions"]
---

# Create a user action

`POST /users/{id}/actions`

## Path parameters

- `id` number, required

## Request body

- CreateUserActionDto
  - `action` 1 | 2 | 3 | 5 | 6 | 7, required — The action to create (send the numeric enum value). All UserActionEnum options (label=value): CONVERT=1, MINT_STAKE=2, WITHDRAWAL=3, DEPOSIT=5, REDEEM=6, SEND=7, RECEIVE=8
  - `txHash` string, required — The transaction hash
  - `sourceChainId` number, required — The source chain ID
  - `destinationChainId` number, required — The destination chain ID
  - `guid` string — Cross-chain message guid (32-byte hex). Validated only when provided.
  - `data` union, required — The data for the action
    - ConvertDataDto
      - `receiver` string, required — The receiver address
      - `inputAsset` string, required — The input asset
      - `inputAmount` string, required — The input amount
    - DepositDataDto
      - `sender` string, required — The sender address
      - `assets` string, required — The asset amount
    - MintStakeDataDto
      - `receiver` string, required — The receiver address
      - `inputAsset` string, required — The input asset
      - `inputAmount` string, required — The input amount
    - RedeemDataDto
      - `sender` string, required — The sender address
      - `assets` string, required — The asset amount
    - TransferDataDto
      - `from` string, required — The sender address
      - `to` string, required — The receiver address
      - `value` string, required — The token amount
      - `token` string, required — The token address, or "ETH"/"MON" for native coin transfers
    - WithdrawalDataDto
      - `owner` string, required — The owner address
      - `type` 1 | 2, required — Withdrawal type
      - `tokenId` number, required — Withdrawal NFT token ID

## Response `201`

User action created

- UserActionEntity

## Other responses

- `401` — Unauthorized

---

[API](https://skmtc.dev/dre/apis/dre-api.md) · [All operations](https://skmtc.dev/dre/apis/dre-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/dre/dre-api/revisions/5d14beb9482b/schema)
