REST API
Cloud Connectors
Agentless monitoring of managed AI. A connector grants Evigauge read-only access to an AWS account so it can observe Amazon Bedrock usage without anything being installed in that account.
Three things a connector is not, each easy to assume and wrong:
- It does not show you everything in the account. Only managed AI (Bedrock). An agent running on EC2 that calls an external LLM API stays invisible and still needs the SDK.
- It does not give you trace depth. Connected data is metadata — tokens,
cost, latency, errors. There are no reasoning steps, no prompts and no
reconstruction. The
capabilityfield is the honest statement of what a given connector actually yields. - It is not real-time. Connected data arrives a few minutes behind.
Credentials are never returned. Responses carry no role_arn and no auth
reference — once a connector is created you cannot read back what it was
created with.
Workspace-level, not project-level. These routes sit outside project
scoping: ?project= is neither required nor honoured.
List connectors
GET /v1/observ/orgs/{org}/workspaces/{ws}/connectors
Auth: API key or JWT · Role: viewer
Response 200 — not schema-modelled
{
"connectors": [
{
"id": "con_4a91f3",
"provider": "aws",
"display_name": "Production (us-east-1)",
"regions": ["us-east-1", "us-west-2"],
"capability": "metrics",
"capture_content": false,
"status": "active",
"last_sync_at": "2026-10-31T14:52:01Z",
"last_error": null
}
]
}
| Field | Notes |
|---|---|
provider | aws is currently the only value |
capability | metrics · metrics+content — see below |
capture_content | What the admin asked for |
status | pending (awaiting first successful test) · active · error |
last_sync_at | UTC. Zoneless timestamps are UTC — see the Appendix |
last_error | Non-null only when status is error |
capabilityis a result, never a request.metricsis the default and the only guaranteed level.metrics+contentrequires both that the admin opted into content capture and that log-read access was actually granted in the AWS account. Asking for content does not make it so — readcapabilityto find out what you are really getting, notcapture_content.
Create a connector
POST /v1/observ/orgs/{org}/workspaces/{ws}/connectors
Auth: API key or JWT · Role: dev
Request body
| Name | Type | Required | Description |
|---|---|---|---|
provider | string | ✅ | aws |
display_name | string | ✅ | Human label for the connection |
role_arn | string | ✅ | The IAM role Evigauge will assume |
regions | string[] | ✅ | Regions to observe |
capture_content | boolean | ✅ | Opt in to prompt/completion content where permitted |
role_arn must match arn:aws[a-z-]*:iam::<12 digits>:role/<name>. Validate
before submitting so a typo fails locally rather than at AWS.
Response 201 — not schema-modelled
{
"id": "con_4a91f3",
"external_id": "evg-8f21c7a0-4d3b-11f0-9cd6-0242ac120002",
"cloudformation_url": "https://console.aws.amazon.com/cloudformation/home#/stacks/create/review?templateURL=…"
}
The connector is created in pending. It does nothing until the trust is
established in AWS: open cloudformation_url in the target account to create
the role, then call Test below.
external_idis a confused-deputy guard. It must be set as thests:ExternalIdcondition on the role's trust policy. The CloudFormation template atcloudformation_urlalready does this; if you build the role by hand, omitting it leaves the role assumable by any Evigauge tenant.
Test a connector
POST /v1/observ/orgs/{org}/workspaces/{ws}/connectors/{id}/test
Attempts the role assumption and reports what it found. Safe to call
repeatedly — this is how a pending connector becomes active.
Auth: API key or JWT · Role: dev
Response 200 — not schema-modelled
{ "ok": true, "status": "active", "capability": "metrics" }
{ "ok": false, "status": "error", "error": "AssumeRole denied: external id mismatch" }
A failed test is a 200 with ok: false, not an HTTP error — the request
succeeded, the connection did not. Branch on ok, not on status code.
Delete a connector
DELETE /v1/observ/orgs/{org}/workspaces/{ws}/connectors/{id}
Stops collection and forgets the stored credential reference. Already-ingested data is retained under the workspace's normal retention policy.
Auth: API key or JWT · Role: dev
Response 204 — no body
Examples
root = "/v1/observ/orgs/{org}/workspaces/{ws}/connectors"
created = evigauge.post(root, json={
"provider": "aws",
"display_name": "Production (us-east-1)",
"role_arn": "arn:aws:iam::123456789012:role/EvigaugeReadOnly",
"regions": ["us-east-1"],
"capture_content": False,
})
print("1. Create this role in AWS:", created["cloudformation_url"])
print(" External ID:", created["external_id"])
input("2. Press enter once the CloudFormation stack is complete…")
res = evigauge.post(f"{root}/{created['id']}/test")
if not res["ok"]:
raise SystemExit(f"connection failed: {res['error']}")
print(f"connected — capability: {res['capability']}")
const root = "/v1/observ/orgs/{org}/workspaces/{ws}/connectors";
const { connectors } = await evigauge.get(root);
for (const c of connectors) {
// capability, not capture_content — the latter is only what was requested.
const depth = c.capability === "metrics+content" ? "metadata + content" : "metadata only";
console.log(`${c.display_name}: ${c.status} — ${depth}`);
if (c.last_error) console.warn(` ${c.last_error}`);
}