---
title: "Evaluate Lisp"
url: "https://portal.oxide.bitshft.dev/apis/oxide-api-0/versions/9c55e97f-8bbc-44f1-9555-c230658bdeca/operations/evaluator_evaluate"
---

> Full API specification: https://portal.oxide.bitshft.dev/apis/oxide-api-0/versions/9c55e97f-8bbc-44f1-9555-c230658bdeca.md

# Evaluate Lisp

`POST` `/evaluate`

Operation ID: `evaluator_evaluate`

Evaluates the passed lisp snippet in the body. The return will always be a text/plain contentType even if the snippet returns a valid JSON data.

## Request body (required)

Content types: `text/plain`

## Responses

- `200` - The request has succeeded.

## OpenAPI definition

```yaml
openapi: 3.1.0
info:
  title: Oxide API
  version: 0.0.1
servers:
  - url: https://oxide.bitshft.dev/v0
    variables: {}
paths:
  /evaluate:
    post:
      operationId: evaluator_evaluate
      summary: Evaluate Lisp
      description: >2-
          Evaluates the passed lisp snippet in the body.
          The return will always be a text/plain contentType even if the snippet returns a valid JSON data.
      parameters: []
      responses:
        "200":
          description: The request has succeeded.
          content:
            text/plain:
              schema:
                type: string
              example: hello
      tags:
        - Evaluator
      requestBody:
        required: true
        content:
          text/plain:
            schema:
              type: string
            example: (set response "hello")
```
