---
title: REST PLUGIN API
---

`rest_plugin` is a builtin `dstack` plugin that allows writing custom plugins as API servers. The following is an OpenAPI documentation for a `rest_plugin` API server.

<style>
    .swagger-ui .info {
        margin: 0 !important;
    }

    .swagger-ui .info h1, .swagger-ui .info h2, .swagger-ui .info h3, .swagger-ui .info h4, .swagger-ui .info h5 {
        font-weight: 800 !important;
        letter-spacing: -1px !important;
        color: rgb(0, 0, 0) !important;
        text-transform: none !important;
        font-family: var(--md-text-font-family) !important;
    }

    .swagger-ui .info .title {
        padding: 0 !important;
    }

    .swagger-ui .info li, .swagger-ui .info p, .swagger-ui .info table {
        line-height: 1.3rem !important;
        font-size: 0.8rem !important;
        font-family: var(--md-text-font-family) !important;
    }
</style>

<br></br>

!!swagger rest_plugin_openapi.json!!
