MyanLex

Execute an allowlisted language operation

Current verified session, membership and project permissions are rechecked. Snapshots are user-submitted artifacts, not server attestations.

POST/platform/organizations/{organizationId}/projects/{projectId}/playground/execute

Current verified session, membership and project permissions are rechecked. Snapshots are user-submitted artifacts, not server attestations.

Authorization

accountSession
better-auth.session_token<token>

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

organizationId*string
Formatuuid
projectId*string
Formatuuid

Request 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      }    ]  }}