---
title: "Validate Code"
method: POST
path: "/agent/code-block/validate-code"
---

# Validate Code

`POST /agent/code-block/validate-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/validate-code`
- Auth: none declared. Required headers: `authorization`

Validate the code for an agent

## Query parameters

- `language` string

## Headers

- `authorization` string, required

## Request body

- ValidateCodeRequest
  - `code` string, required
  - `agentId` string, required
  - `workflowId` string, 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)
