curl --request POST \
--url https://api.pocketenv.io/xrpc/io.pocketenv.sandbox.createSandbox \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"base": "<string>",
"name": "<string>",
"description": "<string>",
"provider": "<string>",
"topics": [
"<string>"
],
"repo": "<string>",
"vcpus": 2,
"memory": 2,
"disk": 4,
"readme": "<string>",
"secrets": "<unknown>",
"envs": "<unknown>",
"keepAlive": true,
"spriteToken": "<string>",
"redactedSpriteToken": "<string>",
"denoDeployToken": "<string>",
"redactedDenoDeployToken": "<string>",
"daytonaApiKey": "<string>",
"redactedDaytonaApiKey": "<string>",
"daytonaOrganizationId": "<string>",
"vercelApiToken": "<string>",
"redactedVercelApiToken": "<string>",
"vercelProjectId": "<string>",
"vercelTeamId": "<string>",
"modalTokenId": "<string>",
"redactedModalTokenId": "<string>",
"modalTokenSecret": "<string>",
"redactedModalTokenSecret": "<string>",
"e2bApiKey": "<string>",
"redactedE2bApiKey": "<string>",
"hopxApiKey": "<string>",
"redactedHopxApiKey": "<string>",
"runloopApiKey": "<string>",
"redactedRunloopApiKey": "<string>"
}
'{
"name": "<string>",
"provider": "<string>",
"description": "<string>",
"website": "<string>",
"logo": "<string>",
"topics": [
"<string>"
],
"repo": "<string>",
"readme": "<string>",
"vcpus": 123,
"memory": 123,
"disk": 123,
"ports": [
33280
],
"installs": 123,
"createdAt": "2023-11-07T05:31:56Z"
}curl --request POST \
--url https://api.pocketenv.io/xrpc/io.pocketenv.sandbox.createSandbox \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"base": "<string>",
"name": "<string>",
"description": "<string>",
"provider": "<string>",
"topics": [
"<string>"
],
"repo": "<string>",
"vcpus": 2,
"memory": 2,
"disk": 4,
"readme": "<string>",
"secrets": "<unknown>",
"envs": "<unknown>",
"keepAlive": true,
"spriteToken": "<string>",
"redactedSpriteToken": "<string>",
"denoDeployToken": "<string>",
"redactedDenoDeployToken": "<string>",
"daytonaApiKey": "<string>",
"redactedDaytonaApiKey": "<string>",
"daytonaOrganizationId": "<string>",
"vercelApiToken": "<string>",
"redactedVercelApiToken": "<string>",
"vercelProjectId": "<string>",
"vercelTeamId": "<string>",
"modalTokenId": "<string>",
"redactedModalTokenId": "<string>",
"modalTokenSecret": "<string>",
"redactedModalTokenSecret": "<string>",
"e2bApiKey": "<string>",
"redactedE2bApiKey": "<string>",
"hopxApiKey": "<string>",
"redactedHopxApiKey": "<string>",
"runloopApiKey": "<string>",
"redactedRunloopApiKey": "<string>"
}
'{
"name": "<string>",
"provider": "<string>",
"description": "<string>",
"website": "<string>",
"logo": "<string>",
"topics": [
"<string>"
],
"repo": "<string>",
"readme": "<string>",
"vcpus": 123,
"memory": 123,
"disk": 123,
"ports": [
33280
],
"installs": 123,
"createdAt": "2023-11-07T05:31:56Z"
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The base sandbox URI to clone from, e.g. a template or an existing sandbox.
The name of the sandbox
1A description for the sandbox
The provider to create the sandbox on, e.g. 'daytona', 'vercel', 'cloudflare', etc.
50A git repository URL to clone into the sandbox, e.g. a GitHub/Tangled repo.
x >= 1x >= 1x >= 3A URI to a README for the sandbox.
Prevent the sandbox from being automatically stop after a period of inactivity. Use with caution, as this may lead to increased costs.
A token (encrypted) for accessing sprite resources
A redacted token for accessing sprite resources
A token (encrypted) for accessing Deno Deploy resources
A redacted token for accessing Deno Deploy resources
A token (encrypted) for accessing Daytona resources
A redacted token for accessing Daytona resources
The organization ID for Daytona resources
A token (encrypted) for accessing Vercel resources
A redacted token for accessing Vercel resources
The project ID for Vercel resources
The team ID for Vercel resources
A token (encrypted) for accessing Modal resources
A redacted token for accessing Modal resources
A token (encrypted) for accessing Modal resources
A redacted token for accessing Modal resources
An API KEY (encrypted) for accessing E2B resources
A redacted API KEY for accessing E2B resources
An API KEY (encrypted) for accessing hopx resources
A redacted API KEY for accessing hopx resources
An API KEY (encrypted) for accessing Runloop resources
A redacted API KEY for accessing Runloop resources
OK
Name of the sandbox
50The provider of the sandbox, e.g. 'daytona', 'vercel', 'cloudflare', etc.
503000Any URI related to the sandbox
URI to an image logo for the sandbox
501 - 50A git repository URL to clone into the sandbox, e.g. a GitHub/Tangled repo.
A URI to a README for the sandbox.
1001025 <= x <= 65535Was this page helpful?