Get snippet details
Returns a snippet including its code and display type.
Authorizations
workspace API token (sk_akua_...) or OAuth2 JWT. Create tokens at https://akua.dev/developers/api-tokens
Path Parameters
Snippet ID
1 - 54Response
Snippet details
- Option 1
- Option 2
1 - 54"snp_j572abc123def456"
Absolute dashboard URL for this resource. OUTPUT_ONLY.
2048"https://akua.dev/dashboards/snippets/snp_j572abc123def456"
"Cluster Resource Audit"
"Checks resource requests and limits"
Async JavaScript function body executed in a sandboxed runtime. Has access to platform.request() for API calls.
"async () => { ... }"
Controls how the snippet result is rendered in dashboard widgets
table, stat, json, logs, timeseries "table"
16- Option 1
- Option 2
- Option 3
- Option 4
- Option 5
- Option 6
Whether 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 1 - 53"ws_j572abc123def456"
User ID of the snippet creator
Unix timestamp (seconds)
x >= 0Unix timestamp (seconds)
x >= 0Unix timestamp (seconds) when this snippet was archived, or null while active
x >= 0