cURL
curl --request POST \ --url http://localhost:8080/api/v1/tap/generate \ --header 'Content-Type: application/json' \ --header 'x-api-key: <api-key>' \ --data ' { "description": "<string>", "tapName": "<string>", "oldScriptPath": "<string>", "secretName": "<string>" } '
{ "script": "<string>", "packages": [ "<string>" ], "scriptPath": "<string>" }
Uses AI to generate a Python fetch() script from a plain-English description.
fetch()
Optional API key for authentication (enabled via application.yaml)
Path of a previous script to delete after the new one is written
Tap secret name — env var keys are passed to the AI as context
Generated script