Position Management
Important: This endpoint behaves differently based on the position ID parameter:
- With Position ID: Deposits into the specified existing position
- Without Position ID: Creates a new position (does NOT auto-reuse empty positions)
This is for Jupiter Borrow (collateralized lending positions). For non-collateralized lending, use the Jupiter Earn endpoints.
Path Parameters
Vault ID to interact with.
Example:
"1"
Query Parameters
Optional position ID to deposit into. If provided, deposits into the existing position. If not provided, creates a new position. Note: We do NOT auto-reuse empty positions like Jupiter's frontend does.
Example:
"HfU5n6zHmHtJjR4e2vKBkw8TpnSfEjMqKpMa1Qy5Qwmv"
Amount to deposit.
Required range:
x >= 0
Example:
0.1
Percentage to deposit (0-100). Takes priority over amount
.
Required range:
0 <= x <= 100
Example:
50
Body
application/json
The public key of the account that executes the transaction
Example:
"6JpNV6DK88auwzKVizdeT4Bw3D44sam5GqjcPCJ7y176"