DEVELOPER DOCS

REST API

Cloud Connectors

On this page

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:

  1. 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.
  2. 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 capability field is the honest statement of what a given connector actually yields.
  3. 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

HTTP
GET /v1/observ/orgs/{org}/workspaces/{ws}/connectors

Auth: API key or JWT · Role: viewer

Response 200 — not schema-modelled

JSON
{
  "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
    }
  ]
}
FieldNotes
provideraws is currently the only value
capabilitymetrics · metrics+content — see below
capture_contentWhat the admin asked for
statuspending (awaiting first successful test) · active · error
last_sync_atUTC. Zoneless timestamps are UTC — see the Appendix
last_errorNon-null only when status is error

capability is a result, never a request. metrics is the default and the only guaranteed level. metrics+content requires 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 — read capability to find out what you are really getting, not capture_content.


Create a connector

HTTP
POST /v1/observ/orgs/{org}/workspaces/{ws}/connectors

Auth: API key or JWT · Role: dev

Request body

NameTypeRequiredDescription
providerstring✅aws
display_namestring✅Human label for the connection
role_arnstring✅The IAM role Evigauge will assume
regionsstring[]✅Regions to observe
capture_contentboolean✅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

JSON
{
  "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_id is a confused-deputy guard. It must be set as the sts:ExternalId condition on the role's trust policy. The CloudFormation template at cloudformation_url already does this; if you build the role by hand, omitting it leaves the role assumable by any Evigauge tenant.


Test a connector

HTTP
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

JSON
{ "ok": true, "status": "active", "capability": "metrics" }
JSON
{ "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

HTTP
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']}")