Get an agent
GET
/agents/{agent_id}
x-api-key
Returns the agent row (brand, name, status, lifecycle timestamps). The row may be an unpersisted draft: `google_agent_id` is nullable (`null` until the Google create has run), with `persist_state` ("pending"/"persisted") and `persisted_at` (ISO8601 stamp of the successful Google create, `null` while pending). Secured by an x-api-key.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
x-api-key |
header | string | yes | The relay API key (x-api-key header). |
agent_id |
path | string | yes | The rcs-relay agent identifier (ULID). |
Responses
| Status | Description |
|---|---|
200 |
Agent detail. |
401 |
Missing or invalid API key. |
404 |
Agent not found. |
200 example
{
"agent_id": "01H...",
"google_agent_id": null,
"brand": "Acme",
"name": "Acme Agent",
"status": "draft",
"persist_state": "pending",
"persisted_at": null
}