# Jupiter — Lend Borrow — Prepare unsigned build operate instructions

Get Jupiter Borrow Operate Instructions data via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Jupiter, pass parameters such as colAmount, debtAmount, positionId, and retrieve structured data including instruction program address, instruction account public key, account signer requirement, account writable flag, and encoded instruction data for wallet preview, and transaction assembly.

Documentation: https://openany.si/jupiter/jupiter-lend-borrow-prepare-unsigned-build-operate-instructions/4c7e402e-658f-4c4b-9c4a-1d66dd4df9d3/
API ID: 4c7e402e-658f-4c4b-9c4a-1d66dd4df9d3
Provider: jupiter
Contract revision: 4
Method: POST
Endpoint: https://api.openany.si/v1/agent-apis/jupiter/lend/v1/borrow/operate-instructions
Page update time: 2026-12-03T02:49:39.248Z
Access: OpenAny REST
OpenAny MCP: availability is not supplied by this REST contract. Check get_api on the configured OpenAny MCP server before execution.
Request content type: application/json
Execution mode: sync
Authentication: Authorization: Bearer $OPENANY_API_KEY

## Billing
Price: $0 / call
The published contract currently has no usage charge. Authentication and service limits still apply.
Price source: OpenAny public API contract.
Contract update time: 2026-12-03T02:49:38.396Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "fixed",
  "priceMicroUsd": "0",
  "rounding": null,
  "unit": "call",
  "unitQuantity": null
}
```

## Usage and limits
## Jupiter Borrow Operate Instructions API

Submit a JSON body with colAmount, debtAmount, positionId, signer and vaultId. Optional positionOwner identifies another position owner, while the market query accepts main or ethena. Amount deltas are signed integer strings in the respective token base units. The response contains instructions, address lookup-table references and nftId.

## What You Can Build

- **Wallet preview**: Review vault, position and signed amount deltas.
- **Transaction assembly**: Keep signer and account requirements with the returned payload.

## Documented Response Fields

| Field | Meaning |
| --- | --- |
| `instructions[].programId` | Instruction program address |
| `instructions[].accounts[].pubkey` | Instruction account public key |
| `instructions[].accounts[].isSigner` | Account signer requirement |
| `instructions[].accounts[].isWritable` | Account writable flag |
| `instructions[].data` | Encoded instruction data |
| `addressLookupTableAddresses` | Address lookup-table references |
| `nftId` | Returned position NFT identifier |

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Jupiter — Lend Borrow — Prepare unsigned build operate instructions request inputs",
  "$comment": "Declared input types grouped by HTTP location. Path, query and header values describe decoded inputs and are serialized as text on the wire; body is the payload. This is not an exhaustive provider contract or a schema for the raw HTTP request.",
  "type": "object",
  "properties": {
    "path": {
      "type": "object",
      "properties": {}
    },
    "query": {
      "type": "object",
      "properties": {
        "market": {
          "type": "string",
          "description": "Lend market identifier. Defaults to `main`.",
          "enum": [
            "main",
            "ethena"
          ]
        }
      }
    },
    "headers": {
      "type": "object",
      "properties": {}
    },
    "body": {
      "description": "Build operate instructions — complete JSON body for the verified unsigned preparation profile.",
      "examples": [
        {
          "colAmount": "1",
          "debtAmount": "0",
          "positionId": 3518,
          "signer": "HYbxGkNvEwvZ14RzJHPB9h3dWfXjxwAEhkyzJRHx1hBf",
          "vaultId": 8
        }
      ],
      "properties": {
        "colAmount": {
          "description": "Collateral delta in supply-token base units. Positive deposits collateral, negative withdraws. Use -170141183460469231731687303715884105728 (MIN_I128) to withdraw all collateral.",
          "example": "1",
          "pattern": "^-?[0-9]+$",
          "type": "string"
        },
        "debtAmount": {
          "description": "Debt delta in borrow-token base units. Positive borrows, negative repays. Use -170141183460469231731687303715884105728 (MIN_I128) to repay all debt.",
          "example": "0",
          "pattern": "^-?[0-9]+$",
          "type": "string"
        },
        "positionId": {
          "description": "Existing position id. Use `0` when opening a new position.",
          "example": 3518,
          "type": "integer"
        },
        "positionOwner": {
          "description": "Optional position owner when operating on behalf of another wallet.",
          "example": "4AwWnVxWKdZCZ8zVGdD7S3EwzRHkVRiXJxQKzwjbBayj",
          "type": "string"
        },
        "signer": {
          "description": "Transaction fee payer and signer wallet address.",
          "example": "HYbxGkNvEwvZ14RzJHPB9h3dWfXjxwAEhkyzJRHx1hBf",
          "type": "string"
        },
        "vaultId": {
          "description": "Target vault id.",
          "example": 8,
          "type": "integer"
        }
      },
      "required": [
        "colAmount",
        "debtAmount",
        "positionId",
        "signer",
        "vaultId"
      ],
      "type": "object"
    }
  },
  "required": [
    "path",
    "query",
    "headers",
    "body"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "object",
  "properties": {
    "addressLookupTableAddresses": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "instructions": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "accounts": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "isSigner": {
                  "type": "boolean"
                },
                "isWritable": {
                  "type": "boolean"
                },
                "pubkey": {
                  "type": "string"
                }
              }
            }
          },
          "data": {
            "type": "string"
          },
          "programId": {
            "type": "string"
          }
        }
      }
    },
    "nftId": {
      "type": "integer"
    }
  }
}
```

## Request example
Scenario: Documentation example
```bash
curl \
  'https://api.openany.si/v1/agent-apis/jupiter/lend/v1/borrow/operate-instructions' \
  -X POST \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "colAmount": "1",
  "debtAmount": "0",
  "positionId": 3518,
  "signer": "HYbxGkNvEwvZ14RzJHPB9h3dWfXjxwAEhkyzJRHx1hBf",
  "vaultId": 8
}'
```

## Response example
Published documentation example. Verify the actual response after an approved call.
Sample response · Documented HTTP 200
```json
{
  "addressLookupTableAddresses": [
    "DACrW7kF37TWBqLwmkuT1WcLm3eku4B8tDzAXuXpvgfJ"
  ],
  "instructions": [
    {
      "accounts": [
        {
          "isSigner": true,
          "isWritable": true,
          "pubkey": "HYbxGkNvEwvZ14RzJHPB9h3dWfXjxwAEhkyzJRHx1hBf"
        },
        {
          "isSigner": false,
          "isWritable": true,
          "pubkey": "8FE5dkHccUw6iVAWVjWrvUnzypw2shcziobPAZnwoWbe"
        },
        {
          "isSigner": false,
          "isWritable": true,
          "pubkey": "DYrPreEeQHGLTiVmb7HhDATAsGabgEhxS5Dm5GmkxWqt"
        },
        {
          "isSigner": false,
          "isWritable": false,
          "pubkey": "jupr81YtYssSyPt8jbnGuiWon5f6x9TcDEFxYe3Bdzi"
        },
        {
          "isSigner": false,
          "isWritable": false,
          "pubkey": "jupr81YtYssSyPt8jbnGuiWon5f6x9TcDEFxYe3Bdzi"
        },
        {
          "isSigner": false,
          "isWritable": false,
          "pubkey": "jupr81YtYssSyPt8jbnGuiWon5f6x9TcDEFxYe3Bdzi"
        },
        {
          "isSigner": false,
          "isWritable": false,
          "pubkey": "DchXYJwVjPaEUxCiySXVbNyNppAFbQM7Ku76uKvyaDNT"
        },
        {
          "isSigner": false,
          "isWritable": true,
          "pubkey": "7xL193GD5oUvhKBruYuNofMexMUztzujdzxw5UhaWL1U"
        },
        {
          "isSigner": false,
          "isWritable": false,
          "pubkey": "27G8MtK7VtTcCHkpASjSDdkWWYfoqT6ggEuKidVJidD4"
        },
        {
          "isSigner": false,
          "isWritable": false,
          "pubkey": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"
        },
        {
          "isSigner": false,
          "isWritable": false,
          "pubkey": "2ut2BsiJP3DVdxvPvYWxuLgjHvx2nFLtxNM6j6GzdNYT"
        },
        {
          "isSigner": false,
          "isWritable": true,
          "pubkey": "GWMQs8AHMoUBAHz893rZpEyQRr8dU7ukt72jA7vZQC92"
        },
        {
          "isSigner": false,
          "isWritable": false,
          "pubkey": "7upfZmRArbWBK3WwFEeVeancsz5EWCwEVyb2EZ2yuPNz"
        },
        {
          "isSigner": false,
          "isWritable": true,
          "pubkey": "CMGPvccH9VFAvbBpXN4qwwVnb4ntWpiskgkLgBWTeKbw"
        },
        {
          "isSigner": false,
          "isWritable": true,
          "pubkey": "CMGPvccH9VFAvbBpXN4qwwVnb4ntWpiskgkLgBWTeKbw"
        },
        {
          "isSigner": false,
          "isWritable": false,
          "pubkey": "7PQE9KwxFgHRkpHCmMXVj4gmkmU7ueUju7nFGfQvG1eC"
        },
        {
          "isSigner": false,
          "isWritable": true,
          "pubkey": "7PQE9KwxFgHRkpHCmMXVj4gmkmU7ueUju7nFGfQvG1eC"
        },
        {
          "isSigner": false,
          "isWritable": true,
          "pubkey": "2j2KDCfPNRuDX1VtJr6KVfYay1EUTqLX2xZ6Z2zpD8Dx"
        },
        {
          "isSigner": false,
          "isWritable": true,
          "pubkey": "2cYcYwTWHkiszdzDs8aPq1fkcpipJ8zVEzwCXo5RzXpx"
        },
        {
          "isSigner": false,
          "isWritable": true,
          "pubkey": "94vK29npVbyRHXH63rRcTiSr26SFhrQTzbpNJuhQEDu"
        },
        {
          "isSigner": false,
          "isWritable": true,
          "pubkey": "EoLzKqeWxwD9ECxpUz17mfLt9JL1Y5A1kR7FwhJMxb2j"
        },
        {
          "isSigner": false,
          "isWritable": true,
          "pubkey": "BDpgMQoAWbSFEjHHtF3kbytKQnJHr8FhFhRqc67x8AJE"
        },
        {
          "isSigner": false,
          "isWritable": false,
          "pubkey": "9miY226e1qR9YgHfCE6hTKTxMRiyFZSUUTcdeZD6Ntmw"
        },
        {
          "isSigner": false,
          "isWritable": false,
          "pubkey": "5pjzT5dFTsXcwixoab1QDLvZQvpYJxJeBphkyfHGn688"
        },
        {
          "isSigner": false,
          "isWritable": true,
          "pubkey": "EJ6CLvJPJErjkUnPQicVahzw4Q4NHLfpDV9knoP7iqfK"
        },
        {
          "isSigner": false,
          "isWritable": true,
          "pubkey": "BmkUoKMFYBxNSzWXyUjyMJjMAaVz4d8ZnxwwmhDCUXFB"
        },
        {
          "isSigner": false,
          "isWritable": false,
          "pubkey": "jupr81YtYssSyPt8jbnGuiWon5f6x9TcDEFxYe3Bdzi"
        },
        {
          "isSigner": false,
          "isWritable": false,
          "pubkey": "jupr81YtYssSyPt8jbnGuiWon5f6x9TcDEFxYe3Bdzi"
        },
        {
          "isSigner": false,
          "isWritable": false,
          "pubkey": "7s1da8DduuBFqGra5bJBjpnvL5E9mGzCuMk1Qkh4or2Z"
        },
        {
          "isSigner": false,
          "isWritable": false,
          "pubkey": "jupeiUmn818Jg1ekPURTpr4mFo29p46vygyykFJ3wZC"
        },
        {
          "isSigner": false,
          "isWritable": false,
          "pubkey": "jupnw4B6Eqs7ft6rxpzYLJZYSnrpRgPcr589n5Kv4oc"
        },
        {
          "isSigner": false,
          "isWritable": false,
          "pubkey": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
        },
        {
          "isSigner": false,
          "isWritable": false,
          "pubkey": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
        },
        {
          "isSigner": false,
          "isWritable": false,
          "pubkey": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"
        },
        {
          "isSigner": false,
          "isWritable": false,
          "pubkey": "11111111111111111111111111111111"
        },
        {
          "isSigner": false,
          "isWritable": false,
          "pubkey": "AyxByfn15hAEhR4G2jR89kqEXZwbaWX4sgyTpGCxSom8"
        },
        {
          "isSigner": false,
          "isWritable": true,
          "pubkey": "2Xzpd5fybKMDCjfBStyJMppVnyPMmU7oB1TTc9jQ1ht1"
        },
        {
          "isSigner": false,
          "isWritable": true,
          "pubkey": "Hy2FPcKStdmcJPZfc1VR1475ksDBnHQnnQuonX2RvS7t"
        },
        {
          "isSigner": false,
          "isWritable": true,
          "pubkey": "Hy2FPcKStdmcJPZfc1VR1475ksDBnHQnnQuonX2RvS7t"
        }
      ],
      "data": "2WrQY3SXKocBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEBAwAAAAEBAg==",
      "programId": "jupr81YtYssSyPt8jbnGuiWon5f6x9TcDEFxYe3Bdzi"
    }
  ],
  "nftId": 3518
}
```

## Error handling
400: Check the request fields.
401 / 403: Verify credentials and access permissions.
402: Inspect payment requirements and balance.
429: Respect returned retry guidance.
5xx: Inspect the error and usage record before retrying a paid operation.

## Common questions
### How do positive and negative deltas differ?
colAmount is a collateral delta: positive deposits and negative withdraws. debtAmount is a debt delta: positive borrows and negative repays. Each uses its own token base units as a string.

### How is a new position identified?
Set positionId to the integer 0 when preparing a new position. Existing positions use their actual position identifier and the appropriate vault.

### What do the all-collateral and all-debt sentinels mean?
The documented MIN_I128 string -170141183460469231731687303715884105728 means withdraw all collateral for colAmount or repay all debt for debtAmount. Keep it as a string.

### Does this request sign or broadcast the operation?
No. It prepares instruction records for transaction assembly. The wallet owner reviews and signs separately.

### Which API key should I use?
Use your OpenAny API key as Bearer authentication on the documented OpenAny route.

### Where can I check the current request price?
Check the pricing area for the selected implementation. Follow its billing unit and any request-dependent rules before sending the request.

## Available implementations
- jupiter: https://openany.si/jupiter/jupiter-lend-borrow-prepare-unsigned-build-operate-instructions/4c7e402e-658f-4c4b-9c4a-1d66dd4df9d3/

Integration guide: https://openany.si/docs/
Agent setup: https://openany.si/SKILL.md
