{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/latitude-so/json-schema/latitude-so-create-api-key-body-schema.json",
  "title": "CreateApiKeyBody",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/latitude-so-api-keys-api-openapi.yml#/components/schemas/CreateApiKeyBody",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "minLength": 1,
      "description": "Human-readable name for the API key. Used to distinguish keys in the UI."
    },
    "projectId": {
      "type": "string",
      "minLength": 1,
      "description": "Bind the key to this project. Omit `projectId` and `projectSlug` to mint an organization-wide key. One project per key."
    },
    "projectSlug": {
      "type": "string",
      "minLength": 1,
      "description": "Bind the key to the project with this slug. Must agree with `projectId` when both are set."
    }
  },
  "required": [
    "name"
  ]
}