Sure API Skill for Openclaw

A professional-grade interface for the Sure REST API that enables automated management of accounts, transactions, holdings, and valuations.

ashanzzz
v1.0.0
Mar 26, 2026
0
608
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install sure-api

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install sure-api using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Sure API Skill?

The Sure API skill provides a robust, two-layer interface for interacting with the we-promise/sure financial platform. It allows AI agents to securely manage sensitive financial resources including transaction histories, merchant data, investment holdings, and trades using X-Api-Key authentication. By bridging the gap between official OpenAPI specifications and actionable CLI commands, this skill empowers developers to build automated financial workflows within the Openclaw Skills ecosystem.

Built with maintainability in mind, the skill features an integrated self-update mechanism that syncs directly with upstream official documentation. This ensures that the agent always has access to the latest endpoint definitions, request schemas, and validation rules, making it a reliable choice for production-grade financial automation and reporting.

Sure API Skill Use Cases

  • Automating monthly spending summaries and transaction categorization.
  • Synchronizing investment holdings and trades from external CSV imports into the Sure platform.
  • Creating and managing financial chats for AI-driven budget reviews.
  • Reconciling account balances and valuations across multiple financial entities.
  • Monitoring upstream API changes to ensure continuous integration of financial data.

How Sure API Skill Works

  1. The skill initializes by loading secure credentials from the SURE_BASE_URL and SURE_API_KEY environment variables.
  2. High-level requests are routed through a dedicated JavaScript CLI for common operations like listing accounts or creating transactions.
  3. For advanced or niche endpoints, a raw request wrapper executes direct curl commands against the official API paths.
  4. Response data is parsed for pagination and filtering, allowing the agent to navigate large datasets effectively.
  5. A self-update script can be triggered to fetch the latest openapi.yaml from the official repository, ensuring the skill's reference documentation stays current.

Sure API Skill Setup

To install and configure the Sure API within your Openclaw Skills environment, follow these steps:

  1. Define your environment variables in secure/api-fillin.env:
SURE_BASE_URL=https://api.your-sure-instance.comnSURE_API_KEY=your_secret_api_key_heren```nn2. Run a smoke test to verify connectivity:
```bash
bash skills/sure-api/scripts/sure_api_smoke.sh

Sure API Skill Data Schema & Taxonomy

The skill maintains a structured directory for both execution scripts and technical references:

Directory Purpose
references/ Contains the authoritative openapi.yaml and a generated api_endpoints_summary.md.
scripts/ Contains the JS-based CLI, raw request bash scripts, and the OpenAPI update utility.
secure/ Reserved for sensitive environment configuration (not to be committed).

Data objects typically include UUIDs for entities (accounts, transactions) and ISO 8601 timestamps for date-based filtering.

Sure API Skill Advanced Features

  • Multi-layer architecture providing both simplified CLI wrappers and raw REST endpoint access.
  • Integrated dry-run pattern for write operations to prevent accidental data corruption.
  • Automated OpenAPI synchronization script to keep the skill updated with upstream changes.
  • Comprehensive acceptance suite for ClawHub publish readiness and live API validation.
  • Support for complex financial objects including trade valuations and multi-message chat threads.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*