---
title: "Validate a value"
method: GET
path: "/validate"
tags: ["validate"]
---

# Validate a value

`GET /validate`

## Request

- Base URL: `https://sampuli.site/api/v1`
- URL: `https://sampuli.site/api/v1/validate`
- Auth: none declared

Check whether a value is format-valid. Identify the check by `validator` id (see /validators) or by `spec` (a country field like `de.account`, `tr.id`).

## Query parameters

- `value` string, required
- `validator` string
- `spec` string

## Response `200`

The result.

- ValidateResult
  - `value` unknown
  - `spec` string
  - `validator` string
  - `label` string
  - `valid` boolean, nullable
  - `error` string

## Other responses

- `400`: Error

---

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