#!/bin/bash # Ensure both cursor and limit arguments are provided if [ "$#" -ne 2 ]; then echo "Usage: $0 " exit 1 fi cursor=$1 limit=$2 # Construct the JSON payload with the provided cursor and limit json_payload=$(cat <