Prompt LibraryEngineering
API Contract Spec from cURL Example Prompt
Turn a cURL call into a typed API contract.
The prompt
From the cURL command below, produce an API contract:
- Method, path, and path params.
- Query params with types and whether required.
- Request body schema (as TypeScript types).
- Response body schema with status codes.
- Auth mechanism.
- Note any headers that look dynamic or environment-specific.
cURL:
```
{{curl}}
```Replace the {{fields}} with your own context and tighten the rules to match your domain.




