{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/eusend-dev/json-schema/eusend-dev-create-api-key-response-schema.json",
  "title": "CreateApiKeyResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/eusend-dev-api-keys-api-openapi.yml#/components/schemas/CreateApiKeyResponse",
  "type": "object",
  "required": [
    "id",
    "name",
    "key",
    "prefix",
    "test_mode",
    "permission",
    "created_at"
  ],
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "name": {
      "type": "string"
    },
    "key": {
      "type": "string",
      "description": "The secret. Shown once, at creation, and never again."
    },
    "prefix": {
      "type": "string",
      "description": "First 12 characters, for identifying the key later."
    },
    "test_mode": {
      "type": "boolean"
    },
    "permission": {
      "type": "string",
      "enum": [
        "full_access",
        "sending_access"
      ]
    },
    "domain_id": {
      "type": [
        "string",
        "null"
      ],
      "format": "uuid"
    },
    "domain_name": {
      "type": [
        "string",
        "null"
      ]
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    }
  }
}