Request a persistent Deno worker through the compute contract gateway. Gateway bundles source, creates workerManifest record, runs the full RFP protocol, starts the worker, and returns the worker instance ref and execute URL.
Input
application/jsonbidWindowSec
integer
Optional
Seconds to wait for bids.
denoJson
string
Required
deno.json configuration for the worker bundle.
denoLock
string
Optional
Optional deno.lock for reproducible builds.
source
string
Required
TypeScript source code for the worker.
Output
application/jsonerror
string
Optional
No description available.
executeUrl
stringuri
Optional
A valid URI.
receiptCid
stringcid
Optional
A content identifier (CID) referencing immutable data.
receiptOk
boolean
Optional
No description available.
receiptUri
stringat-uri
Optional
An AT Protocol URI (e.g., at://did:plc:xyz/app.bsky.feed.post/abc).
workerInstanceUri
stringat-uri
Optional
An AT Protocol URI (e.g., at://did:plc:xyz/app.bsky.feed.post/abc).
Errors
InvalidRequest
AuthRequired
NoBidders
Try It
Requests are sent directly from your browser. Some servers may block requests due to CORS.
View raw schema
{
"type": "procedure",
"input": {
"schema": {
"type": "object",
"required": [
"source",
"denoJson"
],
"properties": {
"source": {
"type": "string",
"description": "TypeScript source code for the worker."
},
"denoJson": {
"type": "string",
"description": "deno.json configuration for the worker bundle."
},
"denoLock": {
"type": "string",
"description": "Optional deno.lock for reproducible builds."
},
"bidWindowSec": {
"type": "integer",
"default": 30,
"description": "Seconds to wait for bids."
}
}
},
"encoding": "application/json"
},
"errors": [
{
"name": "InvalidRequest"
},
{
"name": "AuthRequired"
},
{
"name": "NoBidders"
}
],
"output": {
"schema": {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"receiptOk": {
"type": "boolean"
},
"executeUrl": {
"type": "string",
"format": "uri"
},
"receiptCid": {
"type": "string",
"format": "cid"
},
"receiptUri": {
"type": "string",
"format": "at-uri"
},
"workerInstanceUri": {
"type": "string",
"format": "at-uri"
}
}
},
"encoding": "application/json"
},
"description": "Request a persistent Deno worker through the compute contract gateway. Gateway bundles source, creates workerManifest record, runs the full RFP protocol, starts the worker, and returns the worker instance ref and execute URL."
}