{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/wenmarpro-com/json-schema/wenmarpro-com-create-agent-token-body-schema.json",
  "title": "CreateAgentTokenBody",
  "x-generated": "2026-11-28",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/wenmarpro-com-app-openapi.json#/components/schemas/CreateAgentTokenBody",
  "properties": {
    "expires_in_days": {
      "description": "Days until this token stops working, 1 to 365; absent = never.",
      "format": "int64",
      "type": [
        "integer",
        "null"
      ]
    },
    "irreversible": {
      "description": "Whether tools that need confirmation may run; absent = yes.",
      "type": [
        "boolean",
        "null"
      ]
    },
    "name": {
      "description": "Shown in `GET /agent-tokens`, e.g. \"claude\".",
      "type": "string"
    },
    "permissions": {
      "description": "Permissions this token is limited to; absent = all the user holds.",
      "items": {
        "type": "string"
      },
      "type": [
        "array",
        "null"
      ]
    },
    "scope": {
      "description": "`read` or `write`.",
      "type": "string"
    },
    "write_budget": {
      "description": "This connection's writes per rolling hour (plan 1482); absent = the\nserver's `[agents] writes_per_hour`.",
      "format": "int64",
      "type": [
        "integer",
        "null"
      ]
    }
  },
  "required": [
    "name",
    "scope"
  ],
  "type": "object"
}