{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/adadiamonds-com/json-schema/adadiamonds-com-api-key-schema.json",
  "title": "ApiKey",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/adadiamonds-com-onboarding-api-openapi.yml#/components/schemas/ApiKey",
  "type": "object",
  "required": [
    "object",
    "api_key",
    "key_id",
    "scopes",
    "env"
  ],
  "properties": {
    "object": {
      "type": "string",
      "const": "api_key"
    },
    "api_key": {
      "type": "string",
      "description": "Shown once. Store it."
    },
    "key_id": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "scopes": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "env": {
      "type": "string",
      "enum": [
        "sandbox",
        "production"
      ]
    },
    "usage": {
      "type": "string"
    },
    "documentation_url": {
      "type": "string",
      "format": "uri"
    }
  },
  "additionalProperties": true
}