---
title: "Validate Agent YAML configuration"
method: POST
path: "/v1/agents/validate"
tags: ["Agent Operations"]
---

# Validate Agent YAML configuration

`POST /v1/agents/validate`

Validates the agent network configuration provided as a YAML file or string. Only files with a .yaml or .yml extension are accepted.

## Response `200`

Successful Response

- AgentValidationResponse
  - `request_metadata` ResponseMeta
    - `request_id` string, nullable — Unique request identifier for tracing and support.
  - `status` string, required — The result status of the validation.
  - `message` string, required — Detailed message about the validation outcome.
  - `suggestion` string, nullable — Optional suggestion if any errors were found.

## Other responses

- `422` — Validation Error

## Changes

- **2026-02-11** `c9a09aaa6236` — 3 info
  - api tag `Agent Operations` added
  - api tag `Agent Validation` removed
  - added the optional property `request_metadata` to the response with the `200` status
- **2025-04-12** `5eeb50d15e83` — 1 breaking
  - removed `subschema #2` from the `yaml_file` request property `anyOf` list
- **2025-04-11** `c7e571f349ea` — 1 warning, 2 info
  - deleted the `query` request parameter `yaml_string`
  - added the new optional request property `yaml_string`
  - added `subschema #2` to the `yaml_file` request property `anyOf` list
- **2025-04-08** `3f8e46ce021b` — 1 breaking, 4 info
  - removed the media type `text/yaml` from the request body
  - added the new optional `query` request parameter `yaml_string`
  - request body became optional
  - added the media type `multipart/form-data` to the request body
  - …1 more
- **2025-03-30** `f8b1d57c6f96` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/svahnar/apis/svahnar-apis/changes/v1/agents/validate/post.md)

---

[API](https://skmtc.dev/svahnar/apis/svahnar-apis.md) · [All operations](https://skmtc.dev/svahnar/apis/svahnar-apis/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/svahnar/svahnar-apis/revisions/02cca47c900a/schema)
