---
title: "Credential Verify"
method: POST
path: "/api/kypa/credential/verify"
tags: ["kypa-directory"]
---

# Credential Verify

`POST /api/kypa/credential/verify`

## Request

- Base URL: `https://api.kojiru.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.kojiru.com/api/kypa/credential/verify`
- Auth: none declared

Stateless envelope check + one DB read + one indexer read. This is the
endpoint a merchant plugs into their 402 middleware. Ordering matters:
cheap checks first, expensive checks last.

## Request body

- CredentialVerifyRequest
  - `wire` string, required: Value of the X-KYPA-Credential header (base64.hex)
  - `requested_amount_cents` integer, nullable
  - `target_domain` string, nullable

## Response `200`

Successful Response

- CredentialVerifyResponse
  - `valid` boolean, required
  - `envelope` object, required
  - `checks` CheckResult[], required
    - `check` string, required
    - `passed` boolean, required
    - `reason` string, nullable
  - `recovered_signer` string, nullable
  - `agent` object, nullable

## Other responses

- `422`: Validation Error

---

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