Xpersona
S

Smart API Connector

CLAWHUB · Unverified

Connect to any REST API using the agent's built-in web_fetch. Handles authentication headers, JSON payloads, error parsing, and retries. Use when: user wants... Skill: Smart API Connector Owner: tommot2 Summary: Connect to any REST API using the agent's built-in web_fetch. Handles authentication headers, JSON payloads, error parsing, and retries. Use when: user wants... Tags: api:1.6.0, automation:1.6.0, connector:1.6.0, developer:1.0.0, http:1.6.0, integration:1.6.0, json:1.6.0, latest:3.0.0, requests:1.6.0, rest:1.6.0 Version history: v3.0.0 | 2026-04-02T23:28:13.809Z | us

62
Rank
84
Safety
1.0k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1K downloads reported by the source. Last updated 10/11/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s17fzh9kw6g9v8fg9kppsbmwt183p1kd:smart-api-connector
  1. Setup complexity is classified as HIGH. You must provision dedicated cloud infrastructure or an isolated VM. Do not run this directly on your local workstation.
  2. Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-tommot2-smart-api-connector/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

80,877 characters of source documentation, loaded on request.

Extracted files

3 files captured from the source.

SKILL.md

---
name: smart-api-connector
description: "Connect to any REST API using the agent's built-in web_fetch. Handles authentication headers, JSON payloads, error parsing, and retries. Use when: user wants to query an API, test an endpoint, automate API calls, parse API responses, or integrate with external services. Homepage: https://clawhub.ai/skills/smart-api-connector"
---

# Smart API Connector v3.0

**Install:** `clawhub install smart-api-connector`

REST API integration using built-in tools. No code, no curl, no dependencies.

## Language

Detect from user's message language. Default: English.

## Quick Start

User provides: API URL + what they want. Agent handles everything.

> User: "Hent brukerinfo fra https://api.example.com/v1/users/123"
>
> Agent runs: `web_fetch https://api.example.com/v1/users/123` (with auth headers if provided)
>
> Returns parsed response.

## Authentication

### API Key in Header

```
web_fetch url --headers '{"Authorization": "Bearer KEY", "X-API-Key": "KEY"}'
```

### API Key via Environment Variable

```
exec: API_KEY="your_key" curl -s -H "Authorization: Bearer $API_KEY" "https://..."
```

### Session-only Keys

API keys provided in conversation are used in-session only. Never persisted to files.

## Error Handling

| HTTP Status | Action |
|-------------|--------|
| 200-299 | Parse and return response |
| 429 | Rate limited — wait and retry (max 3 retries) |
| 400 | Bad request — show error, suggest fix |
| 401/403 | Auth failed — check key, permissions |
| 404 | Not found — verify URL |
| 5xx | Server error — retry once, then report |

## HTTP Methods

| Method | Use Case |
|--------|----------|
| GET | Fetch data |
| POST | Create data / send JSON body |
| PUT | Update data |
| DELETE | Remove data |

For POST/PUT: prompt user for JSON body if not provided.

## Response Parsing

Always extract and present the useful parts. For JSON APIs:

```
Response:
  Name: John
  Email: john@example.com
  Created: 2026-03-28

Raw: {first 200 chars if user wants detail}
```

## Security

- Keys are session-only — never written to files
- Prefer environment variables over command-line args
- Scoped/test keys over production secrets
- Show user the exact request before executing (URL + method + headers, not the key value)

## Quick Commands

| User says | Action |
|-----------|--------|
| "query {url}" | GET request |
| "POST to {url}" | POST with body |
| "test API {url}" | Request + show response |
| "API health check" | GET and report status |

## Guidelines for Agent

1. **Use web_fetch first** — built-in, no dependencies
2. **Fall back to exec/curl** only if web_fetch can't handle the request
3. **Never persist API keys** — session only
4. **Show request before executing** — confirm with user for POST/PUT/DELETE
5. **Parse responses** — extract useful data, don't dump raw JSON
6. **Handle errors gracefully** — retry on 429, explain 401/403
7. **Match user language** in responses

## What This Skill Does NOT Do

- Does N

_meta.json

{
  "ownerId": "kn7dmermcvfm7efhjs13r9wmg583p8fj",
  "slug": "smart-api-connector",
  "version": "3.0.0",
  "publishedAt": 1775172493809
}

skill-card.md

## Description:

Connect to REST APIs with the agent's built-in web_fetch, including authentication headers, JSON payloads, error parsing, retries, and response summarization.

This skill is ready for commercial/non-commercial use.

## Publisher:

[tommot2](https://clawhub.ai/user/tommot2)

### License/Terms of Use:

MIT-0

## Use Case:

Developers and external users use this skill to query, test, and automate REST API calls from an agent while receiving parsed responses and error guidance.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: The skill can make outbound API calls to user-provided hosts and may send user-provided credentials to those endpoints.

Mitigation: Verify the exact hostname before authenticated requests, use scoped or test credentials, and avoid production secrets.

Risk: The skill includes an exec/curl fallback that can run shell commands when web_fetch is insufficient.

Mitigation: Use web_fetch first and allow the exec/curl fallback only when explicitly needed and after reviewing the command.

Risk: Credential handling depends on session-only use and user discipline.

Mitigation: Keep API keys out of files, prefer environment variables when shell fallback is required, and avoid exposing key values when showing requests.

## Reference(s):

- [Smart API Connector on ClawHub](https://clawhub.ai/tommot2/skills/smart-api-connector)
- [tommot2 Publisher Profile](https://clawhub.ai/user/tommot2)

## Skill Output:

**Output Type(s):** [Text, Markdown, API Calls, Shell commands, Guidance]

**Output Format:** [Markdown with API request examples, shell command fallbacks, and parsed response summaries]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [May include web_fetch requests, curl fallback commands, retry guidance, and parsed API response excerpts.]

## Skill Version(s):

3.0.0 (source: server release metadata)

## Ethical Considerations:

Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.

Sponsored

Ads related to Smart API Connector and adjacent AI workflows.