---
title: "Create runtime"
method: POST
path: "/v1/runtimes"
tags: ["Runtime"]
---

# Create runtime

`POST /v1/runtimes`

Creates a runtime.

## Request body

- CreateRuntimeRequest
  - `additional_python_imports` string
  - `engine` 'wasi' | 'microvm' | 'v8'
  - `language` 'python' | 'javascript', required
  - `manifest_file` ManifestFile, required
    - `contents` string, required
    - `name` 'requirements.txt' | 'package.json', required
  - `name` string, required

## Response `200`

OK

- Runtime
  - `additional_python_imports` string
  - `engine` 'wasi' | 'microvm' | 'v8', required
  - `id` string, required
  - `language` 'python' | 'javascript', required
  - `manifest_file` ManifestFile
    - `contents` string, required
    - `name` 'requirements.txt' | 'package.json', required
  - `name` string, required
  - `revision_id` string, required
  - `status` 'pending' | 'building' | 'succeeded' | 'failed' | 'cancelled', required

## Other responses

- `401` — Unauthenticated error response

## Changes

- **2025-04-24** `f9777846c474` — 2 info
  - added the new optional request property `engine`
  - added the required property `engine` to the response with the `200` status
- **2025-03-19** `45af77c4f3bd` — 5 warning
  - added the new `building` enum value to the `status` response property for the response status `200`
  - added the new `cancelled` enum value to the `status` response property for the response status `200`
  - added the new `failed` enum value to the `status` response property for the response status `200`
  - added the new `pending` enum value to the `status` response property for the response status `200`
  - …1 more
- **2025-02-05** `4ca61d8b4e33` — 1 breaking
  - the `code` response's property type/format changed from `integer`/`int32` to `integer`/`` for status `401`
- **2025-01-15** `fbf471c508c8` — 2 breaking, 3 warning, 5 info
  - removed the enum value `JAVASCRIPT` of the request property `language`
  - removed the enum value `PYTHON` of the request property `language`
  - added the new `javascript` enum value to the `language` response property for the response status `200`
  - added the new `package.json` enum value to the `manifest_file/name` response property for the response status `200`
  - …6 more
- **2024-12-19** `54bca7639961` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/riza-io/apis/execute/changes/v1/runtimes/post.md)

---

[API](https://skmtc.dev/riza-io/apis/execute.md) · [All operations](https://skmtc.dev/riza-io/apis/execute/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/riza-io/execute/revisions/bab65e0b0c2b/schema)
