Execute an allowlisted language operation
Current verified session, membership and project permissions are rechecked. Snapshots are user-submitted artifacts, not server attestations.
/platform/organizations/{organizationId}/projects/{projectId}/playground/executeCurrent verified session, membership and project permissions are rechecked. Snapshots are user-submitted artifacts, not server attestations.
Authorization
accountSession Better Auth signed HttpOnly session cookie; HTTPS uses the __Secure-better-auth.session_token name. Sign in through /api/auth. Browser clients send cookies automatically; do not paste secrets into docs.
In: cookie
Path Parameters
uuiduuidRequest Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
curl -X POST "https://example.com/platform/organizations/497f6eca-6276-4993-bfeb-53cbbbba6f08/projects/497f6eca-6276-4993-bfeb-53cbbbba6f08/playground/execute" \ -H "Content-Type: application/json" \ -d '{ "operation": "detect", "payload": { "text": "string" } }'{ "request": { "operation": "detect", "payload": { "text": "string" } }, "mode": "local", "build": "string", "elapsedMs": 0, "profiles": [ "string" ], "httpStatus": 100, "requestId": "string", "error": { "code": "string", "message": "string" }, "result": { "input": "string", "encoding": "unicode", "confidence": 0, "profile": "zawgyi-unicode-v1", "segments": [ { "text": "string", "encoding": "unicode", "zawgyiProbability": 0, "start": 0, "end": 0 } ] }}Report recorded project usage (usage.read) GET
Verified session and current membership/usage.read required; bearer keys are not accepted. Inclusive UTC date range, 1–90 days, no future dates, earliest 1970-01-01. Supply both dates or neither (last 30 days including today). Today's bucket is partial. Missing days are zero-filled. This is best-effort recorded usage, not a billing statement. Bootstrap traffic and rejections before the interceptor, including rate limits, are excluded. Persistence failures can leave gaps. Batch HTTP requests count once; item failures within successful responses are not HTTP errors. Submitted characters are Unicode code points, including failed requests that reached the interceptor. No submitted text is retained or returned. Counter strings preserve exact integer precision. Handler durations exclude network, guards and usage persistence. Totals match the returned buckets.
List owned unexpired saved runs GET
Current verified session, membership and project permissions are rechecked. Snapshots are user-submitted artifacts, not server attestations.