---
title: "Credential Spec"
method: GET
path: "/api/kypa/credential/spec"
tags: ["kypa-directory"]
---

# Credential Spec

`GET /api/kypa/credential/spec`

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

Public spec for KYPA Credential Envelope v1.0. Merchants and SDK authors
read this endpoint to know exactly how to construct a compliant credential.

## Response `200`

Successful Response

- CredentialSpec
  - `version` string, required
  - `eip712_domain` object, required
  - `eip712_types` object, required
  - `header_name` string, required
  - `wire_format` string, required
  - `example_wire_header` string, nullable
  - `verify_endpoint` string, required
  - `ttl_min_seconds` integer, required
  - `ttl_max_seconds` integer, required

---

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