Skip to main content
POST
CSharp (SDK)

Authorizations

Authorization
string
header
required

Send Authorization: Bearer , using an MKA1 API key for automation or an OAuth API access token for a signed-in application. Use a dynamic security callback to refresh OAuth access tokens. Browser session-only operations still require their declared cookie.

Headers

X-On-Behalf-Of
string

Optional external end-user identifier forwarded by the API gateway.

Body

application/json
name
string
required
Required string length: 1 - 100
environment_variables
Environment Variables · object
setup_script
string | null
repositories
EnvironmentRepositoryModel · object[]
Maximum array length: 5
network_access
enum<string> | null

How much of the internet a Coding Harness guest reaches through the proxy.

Ordered: each level includes the one before it. The model broker and the mka1-github push/PR tool reach the runner directly, and the Environment's repositories are cloned on the host before boot, so all of them work at every level, including none.

Available options:
none,
package_managers,
full
connectors
string[] | null

Response

Successful Response

environment_id
integer
required
name
string
required
environment_variables
Environment Variables · object
required
repositories
EnvironmentRepositoryModel · object[]
required
network_access
enum<string>
required

How much of the internet a Coding Harness guest reaches through the proxy.

Ordered: each level includes the one before it. The model broker and the mka1-github push/PR tool reach the runner directly, and the Environment's repositories are cloned on the host before boot, so all of them work at every level, including none.

Available options:
none,
package_managers,
full
created_by_user_id
string
required
created_at
string<date-time>
required
updated_at
string<date-time>
required
setup_script
string | null
connectors
string[]