---
title: "Validate Contract"
method: POST
path: "/api/v1/contracts/validate"
tags: ["contracts"]
---

# Validate Contract

`POST /api/v1/contracts/validate`

## Request

- Base URL: `http://localhost:8000`
- URL: `http://localhost:8000/api/v1/contracts/validate`
- Auth: none declared

Validate an ODCS v3.1.0 YAML document without applying it.

Accepts the YAML as the raw request body so the CLI can pipe
`cat contract.yaml | curl --data-binary @-` without JSON-escaping.

## Headers

- `Authorization` string

## Response `200`

Successful Response

- StandardResponse: Standard API response wrapper.
  - `success` boolean, required
  - `data` unknown
  - `message` string, nullable
  - `error` string, nullable
  - `meta` object, nullable

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/anomalyarmor/apis/anomalyarmor-api.md) · [All operations](https://skmtc.dev/anomalyarmor/apis/anomalyarmor-api/llms.txt) · [OpenAPI document](https://skmtc.dev/anomalyarmor/apis/anomalyarmor-api/revisions/51c755fb5d0b?raw)
