const url = 'https://example.com/api/v1/org/example/ws/example/runtimes/example/start/stream' ;
headers: {Authorization: 'Bearer <token>' , 'Content-Type' : 'application/json' },
body: '{"requested_runtime_limit_seconds":1,"secret_ids":["2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"]}'
const response = await fetch (url, options);
const data = await response. json ();
--url https://example.com/api/v1/org/example/ws/example/runtimes/example/start/stream \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "requested_runtime_limit_seconds": 1, "secret_ids": [ "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" ] }'
RT-API-027: start, reported step by step as it happens.
Separate from start rather than a change to it: start answers with a
JSON body that every released client, the SDK and the CLI already depend
on. This performs the same operation with the same effects and ends with
the same body, carried in a terminal result event.
A client that gets a 404 here is talking to a platform that predates the
endpoint and should fall back to start.
Media type application/json
Any of:
RuntimeStartRequest Inputs for materializing a runtime or issuing a client credential.
object requested_runtime_limit_seconds
Examplegenerated "requested_runtime_limit_seconds" : 1 ,
"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"
Media type application/json
Media type application/json
APIErrorPayload Canonical API error envelope returned by the API.
object Code integer
Allowed values: 400 401 403 404 409 422 426 429 500 502 504
Detail Human-readable error message
string
errors
Any of:
Array<object>
ValidationErrorItem object Loc Where the validation error occurred
Array
Msg Human-readable validation message
string
Type Machine-readable validation error type
string
Type Stable machine-readable error type
string
Allowed values: already_exists_error app_error authentication_error conflict_error aws_error configuration_error database_error dynamodb_error e2b_error e2b_rate_limit_error expired_signature_error expired_token_error forbidden_error group_error invalid_error invalid_flag_error invalid_username_error mail_error member_exists_error member_limit_exceeded_error migration_lock_timeout_error not_found_error oauth_config_error org_sandbox_capacity_exceeded_error bad_gateway_error gateway_timeout_error s3_error server_error task_error stripe_error task_set_not_found token_error upgrade_required_error usage_limit_exceeded_error user_suspended user_verification_error validation_error
Example "detail" : "Authentication failed" ,
"type" : "authentication_error"
Media type application/json
APIErrorPayload Canonical API error envelope returned by the API.
object Code integer
Allowed values: 400 401 403 404 409 422 426 429 500 502 504
Detail Human-readable error message
string
errors
Any of:
Array<object>
ValidationErrorItem object Loc Where the validation error occurred
Array
Msg Human-readable validation message
string
Type Machine-readable validation error type
string
Type Stable machine-readable error type
string
Allowed values: already_exists_error app_error authentication_error conflict_error aws_error configuration_error database_error dynamodb_error e2b_error e2b_rate_limit_error expired_signature_error expired_token_error forbidden_error group_error invalid_error invalid_flag_error invalid_username_error mail_error member_exists_error member_limit_exceeded_error migration_lock_timeout_error not_found_error oauth_config_error org_sandbox_capacity_exceeded_error bad_gateway_error gateway_timeout_error s3_error server_error task_error stripe_error task_set_not_found token_error upgrade_required_error usage_limit_exceeded_error user_suspended user_verification_error validation_error
Example "detail" : "Authentication failed" ,
"type" : "authentication_error"
Media type application/json
APIErrorPayload Canonical API error envelope returned by the API.
object Code integer
Allowed values: 400 401 403 404 409 422 426 429 500 502 504
Detail Human-readable error message
string
errors
Any of:
Array<object>
ValidationErrorItem object Loc Where the validation error occurred
Array
Msg Human-readable validation message
string
Type Machine-readable validation error type
string
Type Stable machine-readable error type
string
Allowed values: already_exists_error app_error authentication_error conflict_error aws_error configuration_error database_error dynamodb_error e2b_error e2b_rate_limit_error expired_signature_error expired_token_error forbidden_error group_error invalid_error invalid_flag_error invalid_username_error mail_error member_exists_error member_limit_exceeded_error migration_lock_timeout_error not_found_error oauth_config_error org_sandbox_capacity_exceeded_error bad_gateway_error gateway_timeout_error s3_error server_error task_error stripe_error task_set_not_found token_error upgrade_required_error usage_limit_exceeded_error user_suspended user_verification_error validation_error
Example "detail" : "Authentication failed" ,
"type" : "authentication_error"
Media type application/json
APIErrorPayload Canonical API error envelope returned by the API.
object Code integer
Allowed values: 400 401 403 404 409 422 426 429 500 502 504
Detail Human-readable error message
string
errors
Any of:
Array<object>
ValidationErrorItem object Loc Where the validation error occurred
Array
Msg Human-readable validation message
string
Type Machine-readable validation error type
string
Type Stable machine-readable error type
string
Allowed values: already_exists_error app_error authentication_error conflict_error aws_error configuration_error database_error dynamodb_error e2b_error e2b_rate_limit_error expired_signature_error expired_token_error forbidden_error group_error invalid_error invalid_flag_error invalid_username_error mail_error member_exists_error member_limit_exceeded_error migration_lock_timeout_error not_found_error oauth_config_error org_sandbox_capacity_exceeded_error bad_gateway_error gateway_timeout_error s3_error server_error task_error stripe_error task_set_not_found token_error upgrade_required_error usage_limit_exceeded_error user_suspended user_verification_error validation_error
Example "detail" : "Authentication failed" ,
"type" : "authentication_error"
Media type application/json
APIErrorPayload Canonical API error envelope returned by the API.
object Code integer
Allowed values: 400 401 403 404 409 422 426 429 500 502 504
Detail Human-readable error message
string
errors
Any of:
Array<object>
ValidationErrorItem object Loc Where the validation error occurred
Array
Msg Human-readable validation message
string
Type Machine-readable validation error type
string
Type Stable machine-readable error type
string
Allowed values: already_exists_error app_error authentication_error conflict_error aws_error configuration_error database_error dynamodb_error e2b_error e2b_rate_limit_error expired_signature_error expired_token_error forbidden_error group_error invalid_error invalid_flag_error invalid_username_error mail_error member_exists_error member_limit_exceeded_error migration_lock_timeout_error not_found_error oauth_config_error org_sandbox_capacity_exceeded_error bad_gateway_error gateway_timeout_error s3_error server_error task_error stripe_error task_set_not_found token_error upgrade_required_error usage_limit_exceeded_error user_suspended user_verification_error validation_error
Example "detail" : "Authentication failed" ,
"type" : "authentication_error"
Media type application/json
APIErrorPayload Canonical API error envelope returned by the API.
object Code integer
Allowed values: 400 401 403 404 409 422 426 429 500 502 504
Detail Human-readable error message
string
errors
Any of:
Array<object>
ValidationErrorItem object Loc Where the validation error occurred
Array
Msg Human-readable validation message
string
Type Machine-readable validation error type
string
Type Stable machine-readable error type
string
Allowed values: already_exists_error app_error authentication_error conflict_error aws_error configuration_error database_error dynamodb_error e2b_error e2b_rate_limit_error expired_signature_error expired_token_error forbidden_error group_error invalid_error invalid_flag_error invalid_username_error mail_error member_exists_error member_limit_exceeded_error migration_lock_timeout_error not_found_error oauth_config_error org_sandbox_capacity_exceeded_error bad_gateway_error gateway_timeout_error s3_error server_error task_error stripe_error task_set_not_found token_error upgrade_required_error usage_limit_exceeded_error user_suspended user_verification_error validation_error
Example "detail" : "Authentication failed" ,
"type" : "authentication_error"
Media type application/json
APIErrorPayload Canonical API error envelope returned by the API.
object Code integer
Allowed values: 400 401 403 404 409 422 426 429 500 502 504
Detail Human-readable error message
string
errors
Any of:
Array<object>
ValidationErrorItem object Loc Where the validation error occurred
Array
Msg Human-readable validation message
string
Type Machine-readable validation error type
string
Type Stable machine-readable error type
string
Allowed values: already_exists_error app_error authentication_error conflict_error aws_error configuration_error database_error dynamodb_error e2b_error e2b_rate_limit_error expired_signature_error expired_token_error forbidden_error group_error invalid_error invalid_flag_error invalid_username_error mail_error member_exists_error member_limit_exceeded_error migration_lock_timeout_error not_found_error oauth_config_error org_sandbox_capacity_exceeded_error bad_gateway_error gateway_timeout_error s3_error server_error task_error stripe_error task_set_not_found token_error upgrade_required_error usage_limit_exceeded_error user_suspended user_verification_error validation_error
Example "detail" : "Authentication failed" ,
"type" : "authentication_error"
Media type application/json
APIErrorPayload Canonical API error envelope returned by the API.
object Code integer
Allowed values: 400 401 403 404 409 422 426 429 500 502 504
Detail Human-readable error message
string
errors
Any of:
Array<object>
ValidationErrorItem object Loc Where the validation error occurred
Array
Msg Human-readable validation message
string
Type Machine-readable validation error type
string
Type Stable machine-readable error type
string
Allowed values: already_exists_error app_error authentication_error conflict_error aws_error configuration_error database_error dynamodb_error e2b_error e2b_rate_limit_error expired_signature_error expired_token_error forbidden_error group_error invalid_error invalid_flag_error invalid_username_error mail_error member_exists_error member_limit_exceeded_error migration_lock_timeout_error not_found_error oauth_config_error org_sandbox_capacity_exceeded_error bad_gateway_error gateway_timeout_error s3_error server_error task_error stripe_error task_set_not_found token_error upgrade_required_error usage_limit_exceeded_error user_suspended user_verification_error validation_error
Example "detail" : "Authentication failed" ,
"type" : "authentication_error"
Media type application/json
APIErrorPayload Canonical API error envelope returned by the API.
object Code integer
Allowed values: 400 401 403 404 409 422 426 429 500 502 504
Detail Human-readable error message
string
errors
Any of:
Array<object>
ValidationErrorItem object Loc Where the validation error occurred
Array
Msg Human-readable validation message
string
Type Machine-readable validation error type
string
Type Stable machine-readable error type
string
Allowed values: already_exists_error app_error authentication_error conflict_error aws_error configuration_error database_error dynamodb_error e2b_error e2b_rate_limit_error expired_signature_error expired_token_error forbidden_error group_error invalid_error invalid_flag_error invalid_username_error mail_error member_exists_error member_limit_exceeded_error migration_lock_timeout_error not_found_error oauth_config_error org_sandbox_capacity_exceeded_error bad_gateway_error gateway_timeout_error s3_error server_error task_error stripe_error task_set_not_found token_error upgrade_required_error usage_limit_exceeded_error user_suspended user_verification_error validation_error
Example "detail" : "Authentication failed" ,
"type" : "authentication_error"
Media type application/json
APIErrorPayload Canonical API error envelope returned by the API.
object Code integer
Allowed values: 400 401 403 404 409 422 426 429 500 502 504
Detail Human-readable error message
string
errors
Any of:
Array<object>
ValidationErrorItem object Loc Where the validation error occurred
Array
Msg Human-readable validation message
string
Type Machine-readable validation error type
string
Type Stable machine-readable error type
string
Allowed values: already_exists_error app_error authentication_error conflict_error aws_error configuration_error database_error dynamodb_error e2b_error e2b_rate_limit_error expired_signature_error expired_token_error forbidden_error group_error invalid_error invalid_flag_error invalid_username_error mail_error member_exists_error member_limit_exceeded_error migration_lock_timeout_error not_found_error oauth_config_error org_sandbox_capacity_exceeded_error bad_gateway_error gateway_timeout_error s3_error server_error task_error stripe_error task_set_not_found token_error upgrade_required_error usage_limit_exceeded_error user_suspended user_verification_error validation_error
Example "detail" : "Authentication failed" ,
"type" : "authentication_error"
Media type application/json
APIErrorPayload Canonical API error envelope returned by the API.
object Code integer
Allowed values: 400 401 403 404 409 422 426 429 500 502 504
Detail Human-readable error message
string
errors
Any of:
Array<object>
ValidationErrorItem object Loc Where the validation error occurred
Array
Msg Human-readable validation message
string
Type Machine-readable validation error type
string
Type Stable machine-readable error type
string
Allowed values: already_exists_error app_error authentication_error conflict_error aws_error configuration_error database_error dynamodb_error e2b_error e2b_rate_limit_error expired_signature_error expired_token_error forbidden_error group_error invalid_error invalid_flag_error invalid_username_error mail_error member_exists_error member_limit_exceeded_error migration_lock_timeout_error not_found_error oauth_config_error org_sandbox_capacity_exceeded_error bad_gateway_error gateway_timeout_error s3_error server_error task_error stripe_error task_set_not_found token_error upgrade_required_error usage_limit_exceeded_error user_suspended user_verification_error validation_error
Example "detail" : "Authentication failed" ,
"type" : "authentication_error"