API → ExecutorExecute a Zoo program in a specific language
hidden

Parameters

Name

Type

Req.

  • lang

    string
    required
    Possible values
    • go:  The `go` programming language.
    • python:  The `python` programming language.
    • node:  The `node` programming language.
  • output

    string
    optional
  • bodyapplication/octet-stream

    string / BINARY
    optional

Returns

post
/file/execute/{lang}
$ curl -X POST "https://api.zoo.dev/file/execute/{lang}" \
	--header "Authorization: Bearer $TOKEN" \
	--header "Content-Type: application/octet-stream" \
	--data-binary "@path/to/file"
201 Created
Response
{
  "output_files": [
    {
      "contents": "MKymsY0HYWng",
      "name": "J"
    }
  ],
  "stderr": "5nNhnH9Zn7MDEk",
  "stdout": "1PhThC"
}