Skip to main content
POST
/
allocations
Create Allocation
curl --request POST \
  --url https://app.conduit.io/api/allocations \
  --header 'Content-Type: application/json' \
  --cookie session= \
  --data '
{
  "accountId": "<string>",
  "strategyId": "<string>",
  "shares": "<string>",
  "depositedAmount": "<string>",
  "token": "usdc",
  "transactionId": "<string>",
  "currentValue": "<string>",
  "chainId": 1,
  "depositTxHash": "<string>",
  "depositBlockNumber": 123,
  "depositedAt": "2023-11-07T05:31:56Z"
}
'
{
  "allocation": {
    "id": "<string>",
    "organizationId": "<string>",
    "accountId": "<string>",
    "strategyId": "<string>",
    "shares": "<string>",
    "depositedAmount": "<string>",
    "token": "usdc",
    "chainId": 1,
    "status": "active",
    "createdAt": "2023-11-07T05:31:56Z",
    "updatedAt": "2023-11-07T05:31:56Z",
    "transactionId": "<string>",
    "currentValue": "<string>",
    "depositTxHash": "<string>",
    "depositBlockNumber": 123,
    "withdrawTxHash": "<string>",
    "withdrawBlockNumber": 123,
    "depositedAt": "2023-11-07T05:31:56Z",
    "withdrawnAt": "2023-11-07T05:31:56Z",
    "valueUpdatedAt": "2023-11-07T05:31:56Z"
  }
}

Authorizations

session
string
cookie
required

Session-based authentication via cookies

Body

application/json
accountId
string
required

Account ID

strategyId
string
required

Strategy ID

shares
string
required

Number of strategy shares/tokens

depositedAmount
string
required

Deposit amount

token
enum<string>
required

Token type

Available options:
usdc,
usdt,
usds
transactionId
string

Optional transaction ID that created this allocation

currentValue
string

Optional current value

chainId
integer
default:1

Blockchain chain ID

depositTxHash
string

Optional deposit transaction hash

depositBlockNumber
integer

Optional deposit block number

depositedAt
string<date-time>

Optional deposit timestamp (ISO 8601)

Response

Allocation created successfully

allocation
object