1. Earn
Bitpanda API
  • Getting Started
    • Overview
    • API key generation
    • API and MCP rate limits
    • Changelog
    • Community Hub
  • REST API
    • Getting Started
    • Migrating from the legacy API
    • Endpoints
      • Quotes
        • Create a trading quote
        • Accept trading quote by ID
      • Portfolio
        • Get portfolio overview
        • Get portfolio history
      • Operations
        • List operations
      • Currencies
        • List available currencies
      • Assets
        • List available assets
      • Earn
        • Stake or unstake asset
          POST
        • List earn configs
          GET
      • Tickers
        • Get ticker by asset ID
      • Trading Limits
        • Get trading limits
        • Set trading limits
      • Margin
        • Get leverage multipliers
      • Crypto Networks
        • Get crypto networks
      • Feedback
        • Send feedback
      • Cards
        • List cards
        • Get card transaction by ID
        • List card transactions
      • API Key
        • Get current API key
  • MCP Server
    • Getting Started
    • Tools
  1. Earn

Stake or unstake asset

POST
/v1/earn/actions/{action}
Stakes or unstakes asset_amount in the earn product given by config_id (from GET /v1/earn/configs). Not idempotent: each request creates a new action.

Request

Authorization
API Key
Add parameter in header
x-api-key
Example:
x-api-key: ********************
or
Path Params

Body Params application/jsonRequired

Example
{
    "config_id": "d1d31429-d888-4f1c-b9c1-4e842f9bce5b",
    "wallet_id": "d9a8fbfc-848f-43a2-9168-911ed3a04a48",
    "asset_amount": 0
}

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location 'https://api.public.bitpanda.com/v1/earn/actions/' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
    "config_id": "d1d31429-d888-4f1c-b9c1-4e842f9bce5b",
    "wallet_id": "d9a8fbfc-848f-43a2-9168-911ed3a04a48",
    "asset_amount": 0
}'

Responses

🟢200OK
*/*
Earn action initiated successfully
Body*/*

Example
{
    "data": {
        "status": "string"
    }
}
🟠400Bad Request
🟠401Unauthorized
🟠404Record Not Found
🔴500Server Error
Modified at 2026-11-30 12:25:55
Previous
List available assets
Next
List earn configs
Built with