api-setup
19
总安装量
12
周安装量
#18942
全站排名
安装命令
npx skills add https://github.com/block/agent-skills --skill api-setup
Agent 安装分布
codex
8
gemini-cli
8
opencode
8
github-copilot
6
cursor
5
Skill 文档
API Setup
This skill helps you set up a new API integration with our standard configuration.
Steps
- Run
setup.sh <api-name>to create the integration directory - Copy
templates/config.template.jsonto your integration directory - Update the config with your API credentials
- Test the connection
Configuration
The config template includes:
api_key: Your API key (get from the provider’s dashboard)endpoint: API endpoint URLtimeout: 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
Troubleshooting
Connection Timeout
If you experience connection timeouts:
- Check your network connection
- Verify the endpoint URL is correct
- Increase the timeout value in config
Authentication Errors
If you get 401/403 errors:
- Verify your API key is correct
- Check if the key has the required permissions
- Ensure the key hasn’t expired