# GEDX402 Jobs – Sandboxed JavaScript Execution

> GEDX402 Jobs – Sandboxed JavaScript Execution is a paid API for AI agents from jobs.gedx402.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-29).

Executes a snippet of JavaScript code in a sandboxed environment and returns the result.

## Facts

- Endpoint: GET https://jobs.gedx402.com/v1/code/run?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-29
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/gedx402-jobs-sandboxed-javascript-execution-322feb64
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_k26x0Fot3VUI3ZC2WTt-S

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability gedx402-jobs-sandboxed-javascript-execution-322feb64
```

Example prompt: Run this JavaScript snippet for me in a sandbox and tell me what it outputs: `const arr = [1,2,3]; console.log(arr.reduce((a,b)=>a+b,0));`

## When to prefer this

Choose this endpoint when you need to execute an arbitrary JavaScript snippet server-side in a secure, sandboxed environment without provisioning your own runtime. It is ideal for evaluating expressions, running data transformations, or testing logic snippets on demand at low cost ($0.01 per call) — especially when you do not need full browser rendering or page scraping (use sibling endpoints for those).

## Known failure modes

- Code with syntax errors may return a non-200 status and an error message in the body
- Long-running or infinite loops may be terminated with a timeout error
- Very large output may be truncated (truncated: true in response)
- Unsupported Node/browser APIs not available in the sandbox will throw runtime errors
- Malformed or missing 'code' parameter returns an error response

## How this service works

Async browser jobs, site crawl, rendered page markdown, screenshot, and PDF, document-to-JSON, document-to-Markdown, one-recipient email, and sandboxed JavaScript.

## Output

Returns a JSON object containing the execution result body (as a string), an HTTP status code (200 on success), a boolean indicating whether the output was truncated, and the content type of the response.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "code": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "body": "ok",
  "status": 200,
  "truncated": false,
  "content_type": "text/plain"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/gedx402-jobs-sandboxed-javascript-execution-322feb64/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from jobs.gedx402.com](https://www.zero.xyz/host/jobs.gedx402.com/llms.txt)
