Skip to main content
POST
https://autopay.shakesco.com
/
support_session
const response = await fetch("https://autopay.shakesco.com/support_session", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    description: "Payment for consulting services",
    currency_code: "USD",
    amount: "150",
    private: false,
    type: "pay",
  }),
});

const { url } = await response.json();
console.log(url);
{
  "id": 1,
  "url": "https://pay.shakesco.com/@yourname.sns/08CC9AA7E50CBFDF025414C4ECB004C1"
}
Create a payment link that accepts crypto payments with configurable amounts, privacy, and token options.
Get your API key from the Shakesco Dashboard

Request Body

description
string
required
Message to display to payer (e.g., “Thanks for your support!”)
currency_code
string
required
Currency code for amount display. See all codes
amount
string
required
Payment amount in specified currency
private
boolean
required
  • true = Private transaction (stealth addresses) - false = Public transaction
type
string
required
Payment link subdomain type: - pay - General payments - donate - Donations/fundraising - tip - Creator tips - coffee - Small contributions
  • support - Ongoing support - sponsor - Sponsorships

Response

id
integer
Session ID
url
string
Generated payment link
const response = await fetch("https://autopay.shakesco.com/support_session", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    description: "Payment for consulting services",
    currency_code: "USD",
    amount: "150",
    private: false,
    type: "pay",
  }),
});

const { url } = await response.json();
console.log(url);
{
  "id": 1,
  "url": "https://pay.shakesco.com/@yourname.sns/08CC9AA7E50CBFDF025414C4ECB004C1"
}

Error Codes

CodeErrorSolution
400Bad RequestVerify all parameters are correctly formatted
404Username requiredRegister a .sns username in Shakesco app
500Internal Server ErrorContact support if persists

Examples

Creator tip link:
{
  description: "Thanks for watching!",
  currency_code: "USD",
  amount: "5",
  private: false,
  type: "tip"
}
// Returns: https://tip.shakesco.com/@creator.sns/...
Private donation:
{
  description: "Anonymous contribution",
  currency_code: "USD",
  amount: "100",
  private: true,
  type: "donate"
}
// Returns: https://donate.shakesco.com/@charity.sns/...
Invoice payment:
{
  description: "Invoice #1234",
  currency_code: "USD",
  amount: "500",
  private: false,
  type: "pay"
}
// Returns: https://pay.shakesco.com/@business.sns/...