Skip to main content
POST
Execute ad-hoc snippet code

Authorizations

Authorization
string
header
required

workspace API token (sk_akua_...) or OAuth2 JWT. Create tokens at https://akua.dev/developers/api-tokens

Headers

akua-context
string

Optional workspace/scope context for the request. Carries a single workspace wire id (ws_…) today. Only needed for broad tokens — a workspace-owned token implies its workspace.

Required string length: 1 - 53
Example:

"ws_j572abc123def456"

Body

application/json
code
string
required

Async JavaScript function body. Executed in a sandboxed runtime with access to platform.request().

Required string length: 1 - 50000

Response

Snippet execution result

stats
object
required
result
any
error
string