Create snippet
Creates a reusable code snippet in the workspace. Snippets are async JavaScript functions executed in a sandboxed V8 isolate with access to platform.request() for API calls.
Documentation Index
Fetch the complete documentation index at: https://docs.akua.dev/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
workspace API token (sk_akua_...) or OAuth2 JWT. Create tokens at https://akua.dev/developers/api-tokens
Body
1 - 100"Cluster Resource Audit"
Async JavaScript function body. Executed in a sandboxed V8 isolate with access to platform.request().
1 - 50000Controls how the snippet result is rendered in dashboard widgets
table, stat, json, logs Optional human-readable description
500Whether the snippet is reusable workspace state or scoped to an agent session.
workspace, session Who authored the snippet descriptor.
user, agent, system 1 - 541 - 54general, prepared_action, reactive_read, widget Response
Snippet created