generate_snippet
Generates curl, fetch, and axios code snippets for any API endpoint. Supports optional API key and custom headers.
Instructions
Generates ready-to-use curl, fetch, and axios code snippets for calling a given API endpoint.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The API endpoint URL | |
| apiKey | No | Optional API key to include | |
| apiKeyParam | No | Query parameter name for the API key (default: "api_key") | |
| headers | No | Additional headers as key-value pairs |