Instance Endpoints¶
Instances represent stateful personality models for individual agents. Create an instance once, then send observations to it over many turns.
Create Instance¶
POST /instances
Create a new identity instance.
Request¶
{
"name": "Aria",
"description": "Helpful research assistant",
"initial_config": {
"mode_strengths": {
"perception": 0.50,
"exploration": 0.50,
"order": 0.50,
"assertion": 0.50,
"connection": 0.50,
"identity": 0.50,
"stress_response": 0.50
},
"energy_level": 0.50
}
}
Fields¶
| Field | Type | Required | Default | Notes |
|---|---|---|---|---|
name | string | Yes | — | Agent name (max 100 chars) |
description | string | No | "" | Optional metadata |
initial_config | object | No | All neutral | Initial personality state |
initial_config.mode_strengths | object | No | {all: 0.0} | Starting mode values |
initial_config.energy_level | float | No | 0.8 | Starting energy (0.0–1.0) |
Response¶
{
"data": {
"id": "inst_9f190826e20c49ea",
"name": "Aria",
"description": "Helpful research assistant",
"created_at": "2026-03-24T10:15:30Z",
"updated_at": "2026-03-24T10:15:30Z"
}
}
Examples¶
List Instances¶
GET /instances
List all instances for your account.
Query Parameters¶
| Parameter | Type | Default | Notes |
|---|---|---|---|
limit | int | 20 | Max 100 |
offset | int | 0 | For pagination |
sort | string | "created_at" | created_at or name |
order | string | "desc" | asc or desc |
Response¶
{
"data": [
{
"id": "inst_9f190826e20c49ea",
"name": "Aria",
"description": "Research assistant",
"created_at": "2026-03-24T10:15:30Z",
"cycle_count": 42,
"energy_level": 0.50
},
{
"id": "inst_a1b2c3d4e5f67890",
"name": "Bot-2",
"description": "",
"created_at": "2026-03-24T09:30:00Z",
"cycle_count": 128,
"energy_level": 0.50
}
],
"pagination": {
"limit": 20,
"offset": 0,
"total": 2,
"has_more": false
}
}
Examples¶
Get Instance¶
GET /instances/{id}
Get details for a specific instance.
Path Parameters¶
| Parameter | Type | Notes |
|---|---|---|
id | string | Instance ID (e.g., inst_xxx) |
Response¶
{
"data": {
"id": "inst_9f190826e20c49ea",
"name": "Aria",
"description": "Research assistant",
"created_at": "2026-03-24T10:15:30Z",
"updated_at": "2026-03-24T10:15:30Z",
"cycle_count": 42,
"energy_level": 0.50,
"stress_state": "LOW",
"stability_index": 0.50
}
}
Examples¶
Update Instance¶
PATCH /instances/{id}
Update instance metadata (name, description only). Engine state cannot be modified through this endpoint.
Path Parameters¶
| Parameter | Type | Notes |
|---|---|---|
id | string | Instance ID |
Request¶
Response¶
{
"data": {
"id": "inst_9f190826e20c49ea",
"name": "Aria v2",
"description": "Senior research assistant",
"updated_at": "2026-03-24T11:00:00Z"
}
}
Examples¶
Delete Instance¶
DELETE /instances/{id}
Delete an instance and all associated data. This action cannot be undone.
Path Parameters¶
| Parameter | Type | Notes |
|---|---|---|
id | string | Instance ID |
Response¶
Examples¶
Related Endpoints¶
- Process observation — Send behavioral signals
- Get snapshot — Current identity state
- Get contract — Current execution contract
- Reset instance — Reset to initial state