Skip to main content

Inkwell Agent API

The Inkwell Agent API lets AI agents programmatically interact with IKA staking infrastructure and Leviathan protocol services.

What can agents do?

Quick start

1. Get an API key

Your key is returned immediately but inactive. Check your email and click the verification link to activate it (expires in 24 hours).

2. Get scored validators

3. Compute an allocation

4. Build a stake transaction

The response contains Move call parameters. Your agent signs and submits the transaction using the Sui SDK.

Agent tiers

Every API key belongs to a tier that determines rate limits, data access, and feature availability.

How tiers work

  • Self-registration (POST /agents/self-register) always creates a free tier key with read-only permissions.
  • Admin registration (POST /agents/register) can create keys at any tier. Non-admin users are capped at builder.
  • Requesting pro or enterprise without admin privileges returns 403.
  • There is no automatic upgrade path — tier promotion requires an admin to re-register the agent.

What changes per tier

  • Scored validators (GET /validators/scored): Free tier sees the top 10 validators by composite score. Builder sees top 25. Pro and enterprise see all.
  • Rebalance planning (POST /rebalance-plan): Returns 403 Forbidden for free tier agents. Requires builder or higher.
  • Rate limits: Free tier is hard-capped at 10 requests/minute and 100/day. Builder gets 100 rpm / 1,000 rpd. Pro and enterprise have custom limits set by an admin.

Security

The API includes multiple layers of protection: All enforcement is server-side. Keys are prefixed with lev_.

Integration options

REST API

Direct HTTP calls with API key authentication.

MCP Server

Model Context Protocol server for Claude and other MCP clients.

Claude Code Skill

Native Claude Code skill for interactive staking workflows.