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

# Credential Mint

`POST /api/kypa/credential/mint`

## 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/mint`
- Auth: none declared

Reference mint. In production, the KYPA SDK signs client-side and this
endpoint is used only for docs / testing / server-side agents.
Refuses to mint if the KYPA profile does not exist or has been slashed.

## Request body

- CredentialMintRequest
  - `kypa_id` string, required
  - `max_amount_cents` integer, required
  - `allowed_domains` string[]
  - `purpose` string
  - `ttl_seconds` integer
  - `operator_private_key` string, nullable: Operator EOA PK. If omitted, envelope is returned unsigned (dev-only).

## Response `200`

Successful Response

- unknown

## 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)
