{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/exchangerate-dev/json-schema/exchangerate-dev-api-key-created-response-schema.json",
  "title": "ApiKeyCreatedResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/exchangerate-dev-account-api-openapi.yml#/components/schemas/ApiKeyCreatedResponse",
  "properties": {
    "result": {
      "type": "string",
      "title": "Result",
      "default": "success"
    },
    "created": {
      "type": "boolean",
      "title": "Created"
    },
    "org_id": {
      "type": "string",
      "title": "Org Id"
    },
    "plaintext": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Plaintext"
    },
    "key": {
      "anyOf": [
        {
          "$ref": "#/$defs/KeySummary"
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "type": "object",
  "required": [
    "created",
    "org_id",
    "plaintext",
    "key"
  ],
  "$defs": {
    "KeySummary": {
      "properties": {
        "first_success_at": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "First Success At"
        },
        "prefix": {
          "type": "string",
          "title": "Prefix"
        },
        "plaintext": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Plaintext"
        },
        "created_at": {
          "type": "string",
          "title": "Created At"
        },
        "last_used_at": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Last Used At"
        }
      },
      "type": "object",
      "required": [
        "prefix",
        "created_at"
      ],
      "title": "KeySummary"
    }
  }
}