Get snippet details
Snippets
Get snippet details
Returns a snippet including its code and display type.
GET
Get snippet details
Documentation Index
Fetch the complete documentation index at: https://docs.cnap.tech/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
Personal Access Token (cnap_pat_...) or OAuth2 JWT. Create tokens at https://cnap.tech/account/tokens
Path Parameters
Snippet ID
Response
Snippet details
Example:
"j572abc123def456"
Example:
"Cluster Resource Audit"
Example:
"Checks resource requests and limits"
Async JavaScript function body executed in a sandboxed V8 isolate. Has access to cnap.request() for API calls.
Example:
"async () => { ... }"
Controls how the snippet result is rendered in dashboard widgets
Available options:
table, stat, json, logs Example:
"table"
Example:
"j572abc123def456"
User ID of the snippet creator
Unix timestamp (seconds)