Sanka API Quickstart

Create a Developer API key and run your first API request in minutes.

Last updated: July 2, 2026

Start here

Create a Developer API key and attach it to the Authorization header to make your first request.

Create an API key

  1. Open Developers → API in Sanka.
  2. Click Create Access Token and choose the permission.
  3. Save the key somewhere secure (shown once).

Send your first request

Try fetching orders:
cURL
curl -X GET "https://api.sanka.com/v2/public/orders?page=1&limit=50" \
  -H "Authorization: Bearer <api_key>"
Or fetch invoices:
cURL
curl -X GET "https://api.sanka.com/v2/public/invoices?page=1&limit=50" \
  -H "Authorization: Bearer <api_key>"
Notes:
  • There is no sandbox, so use a workspace with test data.
  • Keep your API key in a secure store.

Use the SDK

Node.js / TypeScript

Node
npm install sanka-sdk
TypeScript
import Sanka from 'sanka-sdk'

const sanka = new Sanka({
  apiKey: process.env['SANKA_API_KEY'],
})

const orders = await sanka.orders.list({
  page: 1,
  limit: 50,
})

console.log(orders.data)

Python

Python
pip install sanka-sdk
Python
from sanka_sdk import Sanka

sanka = Sanka(api_key="sk_...")

orders = sanka.orders.list(page=1, limit=50)

print(orders.data)

Use with AI agents

Add the Sanka MCP server to Claude Code, ChatGPT Codex, or any MCP-compatible agent:
JSON
{
  "mcpServers": {
    "sanka": {
      "type": "url",
      "url": "https://mcp.sanka.com/mcp?apiKey=sk_test_xxx"
    }
  }
}
Once connected, you can ask your agent things like:
  • "List orders created this month"
  • "Show invoices that have not been sent yet"
  • "List approval requests waiting for review"
The agent calls Sanka's MCP tools automatically.

Confirm the response

If the response includes data, you're good to go. Common issues:
  • 401: token missing/expired
  • 403: token permission is Regular (read-only)
  • 429: too many requests, retry later
Next, review authentication, the API reference, and the full developer guide.