# Scripts API SUMMARY: Persistent script store — save reusable shell, Python, or Node scripts and fetch them via curl | bash. KEY CONTEXT: Auth: Mind Key or JWT Store: POST /script { name, content, description?, language? } Fetch as text: GET /script/:name (returns text/plain, curl | bash ready) Info: GET /script/:name/info (metadata without content) List: GET /scripts (JSON array) Delete: DELETE /script/:name Use case: store deployment scripts, config generators, troubleshooting snippets Scripts API The Scripts API provides a persistent store for reusable scripts. Scripts are named and versioned within a mind, and can be fetched as plain text — perfect for patterns. Endpoints POST /script Store or update a script. [CODE BLOCK] GET /script/:name Fetch script content as . Perfect for piping to bash. [CODE BLOCK] GET /script/:name/info Get script metadata without the content. [CODE BLOCK] Response: [CODE BLOCK] GET /scripts List all scripts in the current mind. [CODE BLOCK] DELETE /script/:name Delete a script. [CODE BLOCK] Common Use Cases Deployment scripts Store standard deployment procedures so the LLM can run them without re-deriving the steps each time: [CODE BLOCK] Troubleshooting snippets Store diagnostic commands for common issues: [CODE BLOCK] Configuration generators Store scripts that generate configs: [CODE BLOCK] Next Steps - Variables API - Cron & Scheduler