Knit API Documentation
Create a single Payout
{{baseUrl}}/api/payouts
Supported Networks
- BITCOIN_MAINNET: For operations on the Bitcoin main network.
- ETHEREUM_MAINNET: For activities on the Ethereum main network.
- MATIC_MAINNET: For activities on the Polygon main network
- TRON_MAINNET: For activities on the Tron main network
Headers
- X-API-KEY: Your API key for authentication.
- Accept: Set to application/json to receive responses in JSON format.
Request Body
{
"network": "MATIC_MAINNET",
"token": "USDT",
"amount": 0.02,
"toAddress": "0x56adfcc254ab3b8142a275c1837bcffaff5aa38b"
}
Sample Request
curl --location -g '{{baseUrl}}/api/payouts' \
--header 'X-API-KEY: {{apiKey}}' \
--header 'Accept: application/json' \
--data '{
"network": "MATIC_MAINNET",
"token": "USDT",
"amount": 0.02,
"toAddress": "0x56adfcc254ab3b8142a275c1837bcffaff5aa38b"
}'
Sample Response
Sample Response
{
"success": true,
"message": "Payout created successfully",
"status": 201,
"data": {
"amount": 0.02,
"token": "USDT",
"toAddress": "0x56adfcc254ab3b8142a275c1837bcffaff5aa38b",
"network": "MATIC_MAINNET",
"userId": "8286065b-577e-11ef-9218-96f5ee698dcd",
"payoutWalletId": "5c7bb5bd-acb5-453a-9eb9-11380a329d79",
"id": "8e5697e3-8265-455b-984a-0eb40e10b0f9",
"updatedAt": "2024-08-27T13:44:20.000000Z",
"createdAt": "2024-08-27T13:44:20.000000Z"
}
}