---
name: api-setup
description: Set up API integration with configuration and helper scripts
metadata:
  {
    "openclaw": { "requires": { "bins": ["curl", "jq"] } },
  }
---

# API Setup Skill

This skill helps you set up a new API integration with our standard configuration.

## Steps

1. Run `setup.sh <api-name>` to create the integration directory
2. Copy `templates/config.template.json` to your integration directory
3. Update the config with your API credentials
4. Test the connection

## Configuration

The config template includes:
- `api_key`: Your API key (get from the provider's dashboard)
- `endpoint`: API endpoint URL
- `timeout`: Request timeout in seconds (default: 30)

## Verification

After setup, verify:
- [ ] Config file is valid JSON
- [ ] API key is set and not a placeholder
- [ ] Test connection succeeds

## Usage

```bash
# Create new API integration
setup.sh my-api

# Test connection
test-api.sh my-api
```
