---
title: "Execute Code"
method: POST
path: "/agent/code-block/execute-code"
---

# Execute Code

`POST /agent/code-block/execute-code`

## Request

- Base URL: `https://api.phonely.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.phonely.ai/agent/code-block/execute-code`
- Auth: none declared. Required headers: `authorization`

Execute the code for an agent

## Query parameters

- `language` string

## Headers

- `authorization` string, required

## Request body

- ExecuteCodeRequest
  - `code` string, required
  - `signature` string, required
  - `input` object, required

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/phonely/apis/phonely-api.md) - [All operations](https://skmtc.dev/phonely/apis/phonely-api/llms.txt) - [OpenAPI document](https://skmtc.dev/phonely/apis/phonely-api/revisions/9bfd5599d479?raw)
