GET
/
api
/
v0
/
lend
/
borrow
/
{vaultId}
/
deposit
Borrow Deposit
curl --request GET \
  --url https://jupiter.dial.to/api/v0/lend/borrow/{vaultId}/deposit
{
  "icon": "<string>",
  "label": "<string>",
  "title": "<string>",
  "description": "<string>",
  "disabled": true,
  "error": {
    "message": "<string>"
  },
  "links": {
    "actions": [
      {
        "type": "<string>",
        "label": "<string>",
        "href": "<string>",
        "parameters": [
          {
            "name": "<string>",
            "label": "<string>"
          }
        ]
      }
    ]
  }
}

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 like Jupiter’s frontend)
To use an existing position, first fetch the user’s positions and provide the position ID. To create a new position, simply leave the position ID parameter empty.
This is for Jupiter Borrow (collateralized lending positions). For non-collateralized lending, use the Jupiter Earn endpoints.

Path Parameters

vaultId
string
default:1
required

Vault ID to interact with.

Example:

"1"

Query Parameters

positionId
string

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"

Response

Successful response with borrow deposit action details

icon
string
required
label
string
required
title
string
required
description
string
required
disabled
boolean
error
object