<!-- Generated from the reviewed public OpenAPI contract. Do not edit this file. -->

# Agent



**Type:** object

Required means required **within its containing object**, when that object is present. Union/conditional constraints remain defined by the JSON Schema below.


| Field | Type | Presence | Description / constraints |
| --- | --- | --- | --- |
| ` created_at ` | string (date-time) | Optional | — |
| ` grant ` | string | Optional | Public grant_… reference (not a UUID). pattern: ` ^grant_[0-7][0-9A-HJKMNP-TV-Z]{25}$ ` |
| ` grants ` | Array of [Grant](grant.md) | Optional | GET /v1/agents/&#123;id&#125; only: the agent's grants, newest first, each with its bound Lines |
| ` id ` | string | Required | Public agent_… reference (not a UUID). pattern: ` ^agent_[0-7][0-9A-HJKMNP-TV-Z]{25}$ ` |
| ` name ` | string | Required | minLength: ` 1 `. maxLength: ` 120 ` |
| ` org ` | string | Optional | Public org_… reference (not a UUID). pattern: ` ^org_[0-7][0-9A-HJKMNP-TV-Z]{25}$ ` |
| ` project ` | string | Optional | Public proj_… reference (not a UUID). pattern: ` ^proj_[0-7][0-9A-HJKMNP-TV-Z]{25}$ ` |
| ` runtime ` | ` external `, ` ordan_managed `, ` vapi ` | Optional | A label only; it does not change what ORDan does. external (the default): you run the agent's runtime. The other values are reserved and select nothing today. default: ` external ` |
| ` status ` | ` active `, ` suspended ` | Optional | — |


**JSON Schema**
```json
{
  "additionalProperties": true,
  "properties": {
    "created_at": {
      "format": "date-time",
      "type": "string"
    },
    "grant": {
      "description": "Public grant_… reference (not a UUID)",
      "pattern": "^grant_[0-7][0-9A-HJKMNP-TV-Z]{25}$",
      "type": "string"
    },
    "grants": {
      "description": "GET /v1/agents/{id} only: the agent's grants, newest first, each with its bound Lines",
      "items": {
        "$ref": "#/components/schemas/Grant"
      },
      "type": "array"
    },
    "id": {
      "description": "Public agent_… reference (not a UUID)",
      "pattern": "^agent_[0-7][0-9A-HJKMNP-TV-Z]{25}$",
      "type": "string"
    },
    "name": {
      "maxLength": 120,
      "minLength": 1,
      "type": "string"
    },
    "org": {
      "description": "Public org_… reference (not a UUID)",
      "pattern": "^org_[0-7][0-9A-HJKMNP-TV-Z]{25}$",
      "type": "string"
    },
    "project": {
      "description": "Public proj_… reference (not a UUID)",
      "pattern": "^proj_[0-7][0-9A-HJKMNP-TV-Z]{25}$",
      "type": "string"
    },
    "runtime": {
      "default": "external",
      "description": "A label only; it does not change what ORDan does. external (the default): you run the agent's runtime. The other values are reserved and select nothing today",
      "enum": [
        "external",
        "ordan_managed",
        "vapi"
      ],
      "type": "string"
    },
    "status": {
      "enum": [
        "active",
        "suspended"
      ],
      "type": "string"
    }
  },
  "required": [
    "id",
    "name"
  ],
  "type": "object"
}
```
