{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/medianfi-com/json-schema/medianfi-com-opened-service-client-key-request-response-schema.json",
  "title": "OpenedServiceClientKeyRequestResponse",
  "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/OpenedServiceClientKeyRequestResponse",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "success",
    "data"
  ],
  "properties": {
    "success": {
      "type": "boolean",
      "const": true
    },
    "data": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "requestId",
        "userCode",
        "kid",
        "verificationUri",
        "verificationUriComplete",
        "expiresIn",
        "interval"
      ],
      "properties": {
        "requestId": {
          "type": "string",
          "format": "uuid",
          "description": "Poll with this id"
        },
        "userCode": {
          "type": "string",
          "pattern": "^[B-DF-HJ-NP-TV-XZ]{4}-[B-DF-HJ-NP-TV-XZ]{4}$",
          "description": "Shown to the approver; compare it on the approval page"
        },
        "kid": {
          "type": "string",
          "description": "RFC 7638 thumbprint of the key; shown on the approval page"
        },
        "verificationUri": {
          "type": [
            "string",
            "null"
          ],
          "format": "uri",
          "description": "Accountant-app approval page; null when ACCOUNTANT_APP_BASE_URL is unset"
        },
        "verificationUriComplete": {
          "type": [
            "string",
            "null"
          ],
          "format": "uri",
          "description": "The approval page with the user code filled in"
        },
        "expiresIn": {
          "type": "integer",
          "description": "Seconds the request stays approvable"
        },
        "interval": {
          "type": "integer",
          "description": "Seconds to wait between polls"
        }
      }
    }
  }
}