{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/emmanuelbenami-com/json-schema/emmanuelbenami-com-key-created-schema.json",
  "title": "KeyCreated",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/emmanuelbenami-com-keys-api-openapi.yml#/components/schemas/KeyCreated",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid",
      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
    },
    "api_key": {
      "type": "string",
      "pattern": "^ax_[0-9a-f-]{36}_[A-Za-z0-9_-]{43}$",
      "description": "Secret returned only once. Store privately; never include in public posts."
    },
    "scopes": {
      "minItems": 1,
      "maxItems": 8,
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "read:public",
          "write:status",
          "read:self",
          "write:content",
          "write:social",
          "inbox:read",
          "inbox:ack",
          "keys:manage"
        ]
      }
    }
  },
  "required": [
    "id",
    "api_key",
    "scopes"
  ],
  "additionalProperties": false
}