{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/medianfi-com/json-schema/medianfi-com-open-service-client-key-request-input-schema.json",
  "title": "OpenServiceClientKeyRequestInput",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/medianfi-com-api-keys-api-openapi.yml#/components/schemas/OpenServiceClientKeyRequestInput",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "name",
    "publicKeyJwk",
    "proof"
  ],
  "properties": {
    "name": {
      "type": "string",
      "minLength": 1,
      "maxLength": 100
    },
    "publicKeyJwk": {
      "type": "object",
      "description": "P-256 public JWK (kty EC, crv P-256, x, y). Must not contain d.",
      "additionalProperties": true
    },
    "expiresInDays": {
      "type": "integer",
      "minimum": 1,
      "maximum": 365,
      "description": "Lifetime of the key once approved; default 180"
    },
    "proof": {
      "type": "string",
      "minLength": 1,
      "maxLength": 4096,
      "description": "Compact ES256 JWS over {aud, iat, exp}, signed by this key, header kid = its thumbprint"
    }
  }
}