Docs
Simple API reference for the current product.
API keys are the current access credential and the public API base URL is shown below for direct copy-and-paste use.
https://api.disposable-exec.com
Authentication
Authorization: Bearer YOUR_API_KEY
GET /me
curl -s https://api.disposable-exec.com/me \
-H "Authorization: Bearer YOUR_API_KEY"
{
"user_id": "user_123",
"effective_plan": "starter",
"subscription_status": "active",
"effective_quota_monthly": 3000,
"usage_this_period": 12
}
GET /apikey
curl -s https://api.disposable-exec.com/apikey \
-H "Authorization: Bearer YOUR_API_KEY"
POST /apikey
curl -s -X POST https://api.disposable-exec.com/apikey \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{"name":"server-key"}'
{
"id": "key_123",
"name": "server-key",
"api_key": "dex_live_..."
}
DELETE /apikey/{key_id}
curl -s -X DELETE https://api.disposable-exec.com/apikey/key_123 \
-H "Authorization: Bearer YOUR_API_KEY"
POST /run
curl -s -X POST https://api.disposable-exec.com/run \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{"script":"print(\"hello\")"}'
{
"execution_id": "exec_123",
"status": "queued"
}
GET /status/{execution_id}
curl -s https://api.disposable-exec.com/status/exec_123 \
-H "Authorization: Bearer YOUR_API_KEY"
{
"execution_id": "exec_123",
"status": "completed"
}
GET /result/{execution_id}
curl -s https://api.disposable-exec.com/result/exec_123 \
-H "Authorization: Bearer YOUR_API_KEY"
{
"execution_id": "exec_123",
"stdout": "hello\n",
"stderr": "",
"exit_code": 0
}