{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/huggingbay-xyz/json-schema/huggingbay-xyz-developer-credential-create-request-schema.json",
  "title": "DeveloperCredentialCreateRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/huggingbay-xyz-developer-api-openapi.yml#/components/schemas/DeveloperCredentialCreateRequest",
  "properties": {
    "name": {
      "type": "string",
      "maxLength": 80,
      "minLength": 1,
      "title": "Name",
      "description": "Human-readable label; never used as authentication material."
    },
    "scopes": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "maxItems": 17,
      "minItems": 1,
      "title": "Scopes",
      "description": "Explicit least-privilege scopes. billing:write is owner management; billing:spend is for agent credit execution and must be paired with inference:invoke. task_profile:owner_write is an explicit owner grant for raw-retaining durable profiles; evaluation:owner_write controls retained labeled evaluation data; and memory:read/memory:write control durable agent memory. These owner-delegated scopes are never default/demo grants. Keep OAuth and billing:write keys out of agent harnesses. billing:write and billing:spend cannot share one developer key."
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "name",
    "scopes"
  ]
}