Skip to content
Documentation menu

Datasets, experiments and annotations

Build datasets of policy test cases, run them as experiments per authority level, compare and schedule runs, and read the human review queue.

Evaluations test authority correctness: whether a request is allowed, limited or denied the way you expect at a given authority level. A dataset is a named set of cases. Each case pairs a policy request (an action, the object it acts on and the placement where it would run) with the decision you expect. An experiment pins one dataset and collects runs; each run evaluates every case against the policy for one authority level and stores the full result, so two runs can be compared case by case. Runs evaluate policy only and call no model.

The annotation endpoints list the completed agent runs that most need a human verdict and report how often reviewers agreed with the recorded decisions. A verdict can be turned into a dataset case, so a case can rest on a reviewed outcome instead of on what a run happened to do.

Every endpoint on this page accepts a workspace API key or a signed-in workspace member. Reading needs the read scope; every write, including starting a run, needs the admin scope. See Authentication for keys and scopes, Errors for the shared error codes and Concepts for background on the terms used here. Gate a change with policy experiments in CI shows these operations in a pipeline: a dataset file, a gate script and a workflow.

Datasets

A dataset groups the cases you want to hold an agent to. source is manual for datasets created or imported through these endpoints and changes to production once a case is created from a run. createdBy holds the creator's user id, or api-key: followed by the key id when an API key made the request. The createdAt and updatedAt values of datasets, cases, experiments and runs are long-form date strings such as Sat Nov 28 2026 09:14:07 GMT+0000 (Coordinated Universal Time), not ISO 8601, so parse them leniently. A workspace admin can pin one dataset as the workspace's required dataset in the workspace settings; approving or activating an agent is then refused unless every case in that dataset passes at the agent's authority level, so adding or deleting cases in a pinned dataset changes what the next approval requires.

GET /api/datasets

List datasets

Returns every dataset in the workspace with its case count, most recently updated first. The list is not paginated.

Access: API key with the read scope, or a signed-in workspace member.

Returns: { datasets }: an array of dataset objects with id, name, description, dimension, source, caseCount, createdBy, createdAt and updatedAt.

Request
curl https://centerofagentic.com/api/datasets \
  -H "Authorization: Bearer $COA_API_KEY"
Response
{
  "datasets": [
    {
      "id": "3f1c2a9e-0b7d-4e55-9a51-6f2f1c0e8d11",
      "name": "Containment baseline",
      "description": "Cases every agent must pass before release",
      "dimension": null,
      "source": "manual",
      "caseCount": 1,
      "createdBy": "api-key:7c0e5d42-1a3b-4f68-9d2e-5b8a1c3f6e90",
      "createdAt": "Sat Nov 28 2026 09:14:07 GMT+0000 (Coordinated Universal Time)",
      "updatedAt": "Sat Nov 28 2026 09:16:22 GMT+0000 (Coordinated Universal Time)"
    }
  ]
}

POST /api/datasets

Create a dataset

Creates an empty dataset. Add cases to it afterwards, or use import to create a dataset together with its cases.

Access: API key with the admin scope, or a signed-in workspace member.

Request body
NameTypeDescription
name requiredstringDataset name. Surrounding whitespace is trimmed.
descriptionstringFree-text description.
dimensionstringOptional label for the dimension the dataset focuses on, for example data_residency. Stored as given; it neither restricts nor defaults the dimension of cases added through the API.

Returns: The created dataset object (HTTP 201), with caseCount 0 and source manual.

Errors
StatusCodeWhen
400name_requiredname is missing, not a string, or blank.
Request
curl -X POST https://centerofagentic.com/api/datasets \
  -H "Authorization: Bearer $COA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name": "Containment baseline", "description": "Cases every agent must pass before release"}'
Response
{
  "id": "3f1c2a9e-0b7d-4e55-9a51-6f2f1c0e8d11",
  "name": "Containment baseline",
  "description": "Cases every agent must pass before release",
  "dimension": null,
  "source": "manual",
  "caseCount": 0,
  "createdBy": "api-key:7c0e5d42-1a3b-4f68-9d2e-5b8a1c3f6e90",
  "createdAt": "Sat Nov 28 2026 09:14:07 GMT+0000 (Coordinated Universal Time)",
  "updatedAt": "Sat Nov 28 2026 09:14:07 GMT+0000 (Coordinated Universal Time)"
}

GET /api/datasets/{id}

Get a dataset with its cases

Returns one dataset and all of its cases in the order they were added.

Access: API key with the read scope, or a signed-in workspace member.

Path parameters
NameTypeDescription
id requireduuidDataset id.

Returns: { dataset, cases }. dataset is the dataset object; each entry of cases has id, datasetId, title, dimension, request, expect, sourceReceiptId (the run the case was created from, or null) and createdAt.

Errors
StatusCodeWhen
404not_foundNo dataset with that id exists in the workspace.
Request
curl https://centerofagentic.com/api/datasets/3f1c2a9e-0b7d-4e55-9a51-6f2f1c0e8d11 \
  -H "Authorization: Bearer $COA_API_KEY"
Response
{
  "dataset": {
    "id": "3f1c2a9e-0b7d-4e55-9a51-6f2f1c0e8d11",
    "name": "Containment baseline",
    "description": "Cases every agent must pass before release",
    "dimension": null,
    "source": "manual",
    "caseCount": 1,
    "createdBy": "api-key:7c0e5d42-1a3b-4f68-9d2e-5b8a1c3f6e90",
    "createdAt": "Sat Nov 28 2026 09:14:07 GMT+0000 (Coordinated Universal Time)",
    "updatedAt": "Sat Nov 28 2026 09:16:22 GMT+0000 (Coordinated Universal Time)"
  },
  "cases": [
    {
      "id": "8a4d1f6c-2b9e-4c37-a5d0-7e1b3f9c6a28",
      "datasetId": "3f1c2a9e-0b7d-4e55-9a51-6f2f1c0e8d11",
      "title": "Record deletion stays above the ceiling",
      "dimension": "manifest_ceiling",
      "request": {
        "action": "delete_record",
        "object": { "connector": "crm", "type": "Record", "dataClass": "confidential" },
        "placement": "cloud_connector_write"
      },
      "expect": { "decision": "deny", "reasonCode": "PKG_CEILING_NO_GRANT" },
      "sourceReceiptId": null,
      "createdAt": "Sat Nov 28 2026 09:16:22 GMT+0000 (Coordinated Universal Time)"
    }
  ]
}

DELETE /api/datasets/{id}

Delete a dataset

Permanently deletes the dataset and its cases. Experiments that use the dataset are deleted with it, including their runs and schedules. This cannot be undone; export the dataset first if you may need it again.

Access: API key with the admin scope, or a signed-in workspace member.

Path parameters
NameTypeDescription
id requireduuidDataset id.

Returns: { ok: true }.

Errors
StatusCodeWhen
404not_foundNo dataset with that id exists in the workspace.

Cases

A case is one test: a request to evaluate and the outcome you expect. Cases are returned with their dataset by GET /api/datasets/{id}. There is no endpoint to edit a case, so delete it and add it again to change it. Besides writing cases by hand, you can create one from a run or from a reviewer's verdict on a run.

POST /api/datasets/{id}/cases

Add a case to a dataset

Adds a hand-written case and refreshes the dataset's updatedAt. The server checks only that title and dimension are non-empty strings and that request and expect are objects; it does not validate their contents. Always send request.object (an empty object is accepted), because a case without it makes every later run of the dataset fail.

Access: API key with the admin scope, or a signed-in workspace member.

Path parameters
NameTypeDescription
id requireduuidDataset id.
Request body
NameTypeDescription
title requiredstringShort name for the case. Surrounding whitespace is trimmed.
dimension requiredstringWhat the case checks: in_scope, default_deny, manifest_ceiling, data_residency, connector_scope, approval_required, obligations or delegation_containment. This endpoint stores any non-empty value, but import accepts only these.
request requiredobjectThe policy request to evaluate.
request.actionstringAction class, for example summarize, draft, recommend, create_task, update_record, delete_record, send_message or execute_script.
request.objectobjectWhat the action operates on. Optional keys: type, connector, resource and dataClass (public, internal, confidential, restricted or secrets). Send it even when empty.
request.placementstringWhere the step would run, for example local, cloud_model, cloud_connector or cloud_connector_write.
expect requiredobjectThe outcome the case asserts. Every field you set must hold for the case to pass.
expect.decision"allow" | "deny"The decision the policy must return. Without it the case can never pass.
expect.reasonCodestringReason code the decision must carry exactly, for example ALLOWED, LIMITED_OUTPUT, PKG_CEILING_NO_GRANT or DENY_RULE_MATCHED.
expect.obligationsstring[]Obligation kinds that must all be attached to the decision, for example logging or limited_output. Experiment runs do not attach the approval obligation, so a case that expects it fails in a run.
expect.survivingPlacementsstring[]Placements that must remain allowed, for example local.
expect.deniedPlacementsstring[]Placements that must not remain allowed, for example cloud_model.

Returns: The created case (HTTP 201): id, datasetId, title, dimension, request, expect, sourceReceiptId (null for a hand-written case) and createdAt.

Errors
StatusCodeWhen
400invalid_casetitle or dimension is missing or blank, or request or expect is not an object.
404not_foundNo dataset with that id exists in the workspace.
Request
curl -X POST https://centerofagentic.com/api/datasets/3f1c2a9e-0b7d-4e55-9a51-6f2f1c0e8d11/cases \
  -H "Authorization: Bearer $COA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "title": "Record deletion stays above the ceiling",
    "dimension": "manifest_ceiling",
    "request": {
      "action": "delete_record",
      "object": { "connector": "crm", "type": "Record", "dataClass": "confidential" },
      "placement": "cloud_connector_write"
    },
    "expect": { "decision": "deny", "reasonCode": "PKG_CEILING_NO_GRANT" }
  }'
Response
{
  "id": "8a4d1f6c-2b9e-4c37-a5d0-7e1b3f9c6a28",
  "datasetId": "3f1c2a9e-0b7d-4e55-9a51-6f2f1c0e8d11",
  "title": "Record deletion stays above the ceiling",
  "dimension": "manifest_ceiling",
  "request": {
    "action": "delete_record",
    "object": { "connector": "crm", "type": "Record", "dataClass": "confidential" },
    "placement": "cloud_connector_write"
  },
  "expect": { "decision": "deny", "reasonCode": "PKG_CEILING_NO_GRANT" },
  "sourceReceiptId": null,
  "createdAt": "Sat Nov 28 2026 09:16:22 GMT+0000 (Coordinated Universal Time)"
}

DELETE /api/datasets/{id}/cases/{caseId}

Delete a case

Removes one case from the dataset and refreshes the dataset's updatedAt. Results of earlier experiment runs keep their copy of the case.

Access: API key with the admin scope, or a signed-in workspace member.

Path parameters
NameTypeDescription
id requireduuidDataset id.
caseId requireduuidCase id.

Returns: { ok: true }.

Errors
StatusCodeWhen
404not_foundNo case with that id exists in that dataset.

POST /api/datasets/{id}/cases/from-receipt

Create a case from a run

Adds a case linked to a run through sourceReceiptId and sets the dataset's source to production. The case does not replay the run's own request and does not use the run's recorded decision. It is a standard request chosen from the most restrictive data class of the run's agent (internal when the run has no agent or the agent lists no data class): for restricted or secrets data, a data_residency case that expects the cloud placement to be denied while local survives; otherwise an in_scope case that expects summarize to be allowed.

Access: API key with the admin scope, or a signed-in workspace member.

Path parameters
NameTypeDescription
id requireduuidDataset id.
Request body
NameTypeDescription
receiptId requireduuidId of a run receipt in the workspace.

Returns: The created case (HTTP 201), in the same shape as a hand-written case, with sourceReceiptId set to the run.

Errors
StatusCodeWhen
400receipt_requiredreceiptId is missing or not a string.
404not_foundThe dataset or the run does not exist in the workspace.
Request
curl -X POST https://centerofagentic.com/api/datasets/3f1c2a9e-0b7d-4e55-9a51-6f2f1c0e8d11/cases/from-receipt \
  -H "Authorization: Bearer $COA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"receiptId": "5d9b0e3a-6c2f-4a71-8e4b-1f7c9d2a0b36"}'
Response
{
  "id": "e5b1c8f2-0a7d-4d46-b3e9-4c6a2f8d1b05",
  "datasetId": "3f1c2a9e-0b7d-4e55-9a51-6f2f1c0e8d11",
  "title": "From run 5d9b0e3a — data residency",
  "dimension": "data_residency",
  "request": {
    "action": "summarize",
    "object": { "resource": "local", "dataClass": "restricted" },
    "placement": "cloud_model"
  },
  "expect": {
    "decision": "allow",
    "reasonCode": "LIMITED_OUTPUT",
    "survivingPlacements": ["local"],
    "deniedPlacements": ["cloud_model"]
  },
  "sourceReceiptId": "5d9b0e3a-6c2f-4a71-8e4b-1f7c9d2a0b36",
  "createdAt": "Sat Nov 28 2026 09:18:45 GMT+0000 (Coordinated Universal Time)"
}

POST /api/datasets/{id}/cases/from-annotation

Create a case from a reviewer's verdict on a run

Adds a case backed by a human verdict recorded on a run (verdicts are recorded with POST /api/receipts/{id}/annotations) and sets the dataset's source to production. A correct verdict on a run that was not denied, or an incorrect verdict corrected to an allow, yields the same standard request as creating a case from a run; it asserts that request's standard expectation for a correct verdict and the reviewer's corrected expectation for an incorrect one. A correct verdict on a denied run, or an incorrect verdict with any other correction (normally a deny), yields a containment case for manifest_ceiling, default_deny or data_residency, and only if that case passes at the authority level of the run's agent (recommend when the run has no agent). The title ends in (human-verified) or (human-corrected).

Access: API key with the admin scope, or a signed-in workspace member.

Path parameters
NameTypeDescription
id requireduuidDataset id.
Request body
NameTypeDescription
receiptId requireduuidId of the annotated run receipt.
annotatedBystringIdentity of the reviewer whose verdict to use. Defaults to the caller: the signed-in user's id, or api-key: followed by the key id for an API key.

Returns: The created case (HTTP 201), in the same shape as a hand-written case, with sourceReceiptId set to the run.

Errors
StatusCodeWhen
400receipt_requiredreceiptId is missing or not a string.
404not_foundThe dataset or the run does not exist in the workspace.
404annotation_not_foundThat reviewer has recorded no verdict on the run.
400not_promotableThe verdict cannot become a case. The response's refusal field says why: not_promotable for an unsure verdict, an incorrect verdict without a correction, or a confirmed deny that was not caused by policy containment (for example a revoked agent or an exceeded budget); dimension_required for a correction to deny whose annotation does not name manifest_ceiling, default_deny or data_residency; probe_unavailable when no containment case for that dimension passes against the workspace's current policy.

Import and export

Export a dataset as text to keep it under version control, and import that text to create a dataset in the same or another workspace. JSON is lossless and a JSON export can be imported as it is. CSV carries cases only, with the request and expect objects written as JSON text in single cells, and a CSV export may need its source_receipt_id column removed before it can be imported (see the import endpoint).

GET /api/datasets/{id}/export

Export a dataset as JSON or CSV text

Returns the serialized dataset inside a JSON response, not as a file download; write content to a file yourself. The JSON form is an envelope with version, name, description, dimension and cases. The CSV form has the columns title, dimension, request_json, expect_json and source_receipt_id.

Access: API key with the read scope, or a signed-in workspace member.

Path parameters
NameTypeDescription
id requireduuidDataset id.
Query parameters
NameTypeDescription
format"json" | "csv"Serialization format. Defaults to json; any value other than csv is treated as json.

Returns: { filename, contentType, content }. content is the serialized dataset as one string, filename is a suggested file name derived from the dataset name, and contentType is application/json or text/csv.

Errors
StatusCodeWhen
404not_foundNo dataset with that id exists in the workspace.
Request
curl "https://centerofagentic.com/api/datasets/3f1c2a9e-0b7d-4e55-9a51-6f2f1c0e8d11/export?format=json" \
  -H "Authorization: Bearer $COA_API_KEY"
Response
{
  "filename": "containment-baseline.json",
  "contentType": "application/json",
  "content": "{\n  \"version\": 1,\n  \"name\": \"Containment baseline\",\n  \"description\": \"Cases every agent must pass before release\",\n  \"dimension\": null,\n  \"cases\": [\n    {\n      \"title\": \"Record deletion stays above the ceiling\",\n      \"dimension\": \"manifest_ceiling\",\n      \"request\": {\n        \"action\": \"delete_record\",\n        \"object\": {\n          \"connector\": \"crm\",\n          \"type\": \"Record\",\n          \"dataClass\": \"confidential\"\n        },\n        \"placement\": \"cloud_connector_write\"\n      },\n      \"expect\": {\n        \"decision\": \"deny\",\n        \"reasonCode\": \"PKG_CEILING_NO_GRANT\"\n      },\n      \"sourceReceiptId\": null\n    }\n  ]\n}"
}

POST /api/datasets/import

Import a dataset from JSON or CSV text

Always creates a new dataset; it never merges into an existing one. A case is skipped, with a warning, when its title is missing, its dimension is not one of the known values, or its request or expect is not an object. Every sourceReceiptId (CSV column source_receipt_id) must be null or the id of a run in this workspace: any other value, including an empty CSV cell, makes the request fail with a server error after the dataset and any earlier cases have been stored. The import is written to the audit log as dataset.import.

Access: API key with the admin scope, or a signed-in workspace member.

Query parameters
NameTypeDescription
format"json" | "csv"Format of text. Defaults to json; any value other than csv is treated as json.
Request body
NameTypeDescription
text requiredstringThe file contents to import, as one string. JSON is the export envelope or a bare array of cases. CSV needs the header columns title, dimension, request_json and expect_json; include source_receipt_id only when every row has a run id. A CSV export of cases that have no source run has empty cells in that column, so remove the column before importing it.
namestringName for the new dataset. Defaults to the name in a JSON envelope, otherwise Imported dataset.

Returns: { datasetId, imported, skipped, warnings } (HTTP 201): the id of the new dataset, the number of cases imported, the number of cases skipped and one message per skipped case.

Errors
StatusCodeWhen
400emptytext is missing, not a string, or blank.
400no_casesThe text contains no valid case, for example because it is not valid JSON or the CSV header is incomplete. The response also carries warnings and skipped.
Request
curl -X POST "https://centerofagentic.com/api/datasets/import?format=json" \
  -H "Authorization: Bearer $COA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"text":"{\"version\":1,\"name\":\"Containment baseline\",\"cases\":[{\"title\":\"Record deletion stays above the ceiling\",\"dimension\":\"manifest_ceiling\",\"request\":{\"action\":\"delete_record\",\"object\":{\"connector\":\"crm\",\"type\":\"Record\",\"dataClass\":\"confidential\"},\"placement\":\"cloud_connector_write\"},\"expect\":{\"decision\":\"deny\",\"reasonCode\":\"PKG_CEILING_NO_GRANT\"}}]}"}'
Response
{
  "datasetId": "a2d6f0b4-9c1e-4b57-8f3a-7e5c0d2b9a16",
  "imported": 1,
  "skipped": 0,
  "warnings": []
}

Experiments

An experiment ties a name to one dataset and collects the runs made against it. Experiments cannot be renamed or deleted on their own through the API; deleting the dataset removes its experiments.

GET /api/experiments

List experiments

Returns every experiment in the workspace, newest first, with its dataset name and run count. The list is not paginated.

Access: API key with the read scope, or a signed-in workspace member.

Returns: { experiments }: an array of experiment objects with id, datasetId, datasetName, name, runCount, createdBy and createdAt.

Request
curl https://centerofagentic.com/api/experiments \
  -H "Authorization: Bearer $COA_API_KEY"
Response
{
  "experiments": [
    {
      "id": "6e2b8c4f-1a9d-4f30-8b7e-3c5d0a9f2e14",
      "datasetId": "3f1c2a9e-0b7d-4e55-9a51-6f2f1c0e8d11",
      "datasetName": "Containment baseline",
      "name": "Authority level comparison",
      "runCount": 2,
      "createdBy": "api-key:7c0e5d42-1a3b-4f68-9d2e-5b8a1c3f6e90",
      "createdAt": "Sat Nov 28 2026 09:20:03 GMT+0000 (Coordinated Universal Time)"
    }
  ]
}

POST /api/experiments

Create an experiment over a dataset

Creates an experiment bound to one dataset. The dataset cannot be changed afterwards.

Access: API key with the admin scope, or a signed-in workspace member.

Request body
NameTypeDescription
datasetId requireduuidId of a dataset in the workspace.
name requiredstringExperiment name. Surrounding whitespace is trimmed.

Returns: The created experiment object (HTTP 201), with runCount 0.

Errors
StatusCodeWhen
400invalid_requestdatasetId or name is missing or blank.
404not_foundNo dataset with that id exists in the workspace.
Request
curl -X POST https://centerofagentic.com/api/experiments \
  -H "Authorization: Bearer $COA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"datasetId": "3f1c2a9e-0b7d-4e55-9a51-6f2f1c0e8d11", "name": "Authority level comparison"}'
Response
{
  "id": "6e2b8c4f-1a9d-4f30-8b7e-3c5d0a9f2e14",
  "datasetId": "3f1c2a9e-0b7d-4e55-9a51-6f2f1c0e8d11",
  "datasetName": "Containment baseline",
  "name": "Authority level comparison",
  "runCount": 0,
  "createdBy": "api-key:7c0e5d42-1a3b-4f68-9d2e-5b8a1c3f6e90",
  "createdAt": "Sat Nov 28 2026 09:20:03 GMT+0000 (Coordinated Universal Time)"
}

GET /api/experiments/{id}

Get an experiment with its runs

Returns one experiment and all of its runs, oldest first. Each run carries its full stored result, so the response grows with the number of runs and cases.

Access: API key with the read scope, or a signed-in workspace member.

Path parameters
NameTypeDescription
id requireduuidExperiment id.

Returns: { experiment, runs }. experiment is the experiment object; each entry of runs is a run object as returned by POST /api/experiments/{id}/run.

Errors
StatusCodeWhen
404not_foundNo experiment with that id exists in the workspace.

Runs and comparison

A run is one evaluation of the experiment's dataset at one authority level. Runs are stored and never change, so you can compare any two of them later, for example the same cases at recommend and at execute_with_approval.

POST /api/experiments/{id}/run

Run the experiment's dataset at an authority level

Evaluates every case of the experiment's dataset against the policy for one authority level and stores the outcome as a new run. The request completes synchronously and calls no model. agentId only attaches the run to an agent and names it in the default label; the evaluation depends on the authority level, not on the agent's configuration. A dataset without cases produces a run with total 0 and passRate 1.

Access: API key with the admin scope, or a signed-in workspace member.

Path parameters
NameTypeDescription
id requireduuidExperiment id.
Request body
NameTypeDescription
authority requiredstringAuthority level to evaluate: answer, draft, recommend, prepare_action, execute_with_approval or execute_automatically. The value is not validated; an unrecognised level is evaluated like answer.
agentIduuidId of an agent in the workspace to attach the run to.
labelstringName for the run. Defaults to the agent's name, an @ and the authority when agentId is set (for example Renewals assistant @ recommend), otherwise to the authority.

Returns: The created run (HTTP 201): id, experimentId, label, agentId, authority, policyBundleId (an identifier derived from the workspace; it is the same for every authority level), passRate (0 to 1), passed, failed, createdAt and result. result holds packageId (the agent id, or the authority when no agent was given), policyBundleId, total, passed, failed, passRate, byDimension, evaluatedAt and cases; each entry of cases has the case, the full policy decision, passed and a failures list that explains every mismatch.

Errors
StatusCodeWhen
400authority_requiredauthority is missing, not a string, or blank.
404not_foundThe experiment does not exist in the workspace, or agentId names an agent that does not.
Request
curl -X POST https://centerofagentic.com/api/experiments/6e2b8c4f-1a9d-4f30-8b7e-3c5d0a9f2e14/run \
  -H "Authorization: Bearer $COA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"authority": "recommend", "label": "Baseline at recommend"}'
Response
{
  "id": "d1a7e5c3-9f2b-4e86-a4c0-6b8d2f0e7a95",
  "experimentId": "6e2b8c4f-1a9d-4f30-8b7e-3c5d0a9f2e14",
  "label": "Baseline at recommend",
  "agentId": null,
  "authority": "recommend",
  "policyBundleId": "tenant-policy-9b2e4c1a",
  "result": {
    "packageId": "recommend",
    "policyBundleId": "tenant-policy-9b2e4c1a",
    "total": 1,
    "passed": 1,
    "failed": 0,
    "passRate": 1,
    "byDimension": { "manifest_ceiling": { "passed": 1, "total": 1 } },
    "cases": [
      {
        "case": {
          "id": "8a4d1f6c-2b9e-4c37-a5d0-7e1b3f9c6a28",
          "title": "Record deletion stays above the ceiling",
          "dimension": "manifest_ceiling",
          "request": {
            "action": "delete_record",
            "object": { "connector": "crm", "type": "Record", "dataClass": "confidential" },
            "placement": "cloud_connector_write"
          },
          "expect": { "decision": "deny", "reasonCode": "PKG_CEILING_NO_GRANT" }
        },
        "decision": {
          "action": "delete_record",
          "object": { "connector": "crm", "type": "Record", "dataClass": "confidential" },
          "placement_requested": "cloud_connector_write",
          "decision": "deny",
          "reason_code": "PKG_CEILING_NO_GRANT",
          "applicable_allowlist_layers": ["tenant_admin", "package_manifest", "role_team", "user_identity", "connector_scope"],
          "allow_rules_matched": [],
          "allowlist_layers_missing_grant": ["tenant_admin", "package_manifest", "role_team", "user_identity", "connector_scope"],
          "deny_rules_matched": [],
          "obligations": [
            { "kind": "logging", "layer": "law_regulation", "ruleId": "obl_logging_8", "reason": "audit_all_runs" }
          ],
          "surviving_placements": ["local", "cloud_model", "cloud_connector", "cloud_connector_write"],
          "evaluated_at": "2026-11-28T09:21:30.118Z",
          "policy_bundle_id": "tenant-policy-9b2e4c1a"
        },
        "passed": true,
        "failures": []
      }
    ],
    "evaluatedAt": "2026-11-28T09:21:30.118Z"
  },
  "passRate": 1,
  "passed": 1,
  "failed": 0,
  "createdAt": "Sat Nov 28 2026 09:21:30 GMT+0000 (Coordinated Universal Time)"
}

GET /api/experiments/{id}/diff

Compare two runs of an experiment case by case

Lines the two runs up by case id and reports the decision, reason code and pass state on each side. A row counts as changed when the decision or the pass state differs; a difference in reason code alone does not. A case that exists in only one run is compared against a placeholder side whose decision is -. Rows follow the case order of run a, then cases found only in run b.

Access: API key with the read scope, or a signed-in workspace member.

Path parameters
NameTypeDescription
id requireduuidExperiment id.
Query parameters
NameTypeDescription
a requireduuidId of the first run. It must belong to this experiment.
b requireduuidId of the second run. It must belong to this experiment.

Returns: { rows, changed }. Each row has caseId, title, dimension, the sides a and b (each with decision, reasonCode and passed) and a changed flag. The top-level changed is the number of changed rows.

Errors
StatusCodeWhen
404not_foundEither run id does not exist in this experiment, including a run that belongs to another experiment.
Request
curl "https://centerofagentic.com/api/experiments/6e2b8c4f-1a9d-4f30-8b7e-3c5d0a9f2e14/diff?a=d1a7e5c3-9f2b-4e86-a4c0-6b8d2f0e7a95&b=a9e3d7b1-4c8f-4b25-8d6a-2f0e5c9b1d47" \
  -H "Authorization: Bearer $COA_API_KEY"
Response
{
  "rows": [
    {
      "caseId": "8a4d1f6c-2b9e-4c37-a5d0-7e1b3f9c6a28",
      "title": "Record deletion stays above the ceiling",
      "dimension": "manifest_ceiling",
      "a": { "decision": "deny", "reasonCode": "PKG_CEILING_NO_GRANT", "passed": true },
      "b": { "decision": "deny", "reasonCode": "PKG_CEILING_NO_GRANT", "passed": true },
      "changed": false
    },
    {
      "caseId": "b7e2c9a4-5f1d-4b83-9c6e-0d4a8f2e1b57",
      "title": "Record update needs execute authority",
      "dimension": "manifest_ceiling",
      "a": { "decision": "deny", "reasonCode": "PKG_CEILING_NO_GRANT", "passed": true },
      "b": { "decision": "allow", "reasonCode": "ALLOWED", "passed": false },
      "changed": true
    }
  ],
  "changed": 1
}

Scheduled re-runs

An experiment can have one schedule. Each scheduled re-run evaluates the dataset again at the configured authority level and stores a new run labelled scheduled re-run. When a baseline run is set, the re-run is compared with it: a case regresses when it went from passing to failing or from allow to deny, and a regression in default_deny, manifest_ceiling or data_residency counts as critical. Due schedules are picked up by an hourly job, so cadenceHours is a minimum interval rather than an exact time.

GET /api/experiments/{id}/schedule

Get an experiment's schedule and recent scheduled re-runs

Returns the schedule and up to 20 of its most recent scheduled re-runs, newest first. An experiment without a schedule, or an unknown experiment id, returns schedule null and an empty runs array. status is ok (compared, no regression), regressed, no_baseline (nothing to compare against) or error.

Access: API key with the read scope, or a signed-in workspace member.

Path parameters
NameTypeDescription
id requireduuidExperiment id.

Returns: { schedule, runs }. schedule has id, experimentId, datasetId, targetAgentId, targetAuthority, baselineRunId, cadenceHours, enabled, lastRunAt and nextRunAt (ISO 8601 or null). Each entry of runs has id, scheduleId, experimentRunId, status, regressedCount, criticalCount, detail ({ regressions }, or { error } for a failed re-run), triggeredAt and completedAt.

Request
curl https://centerofagentic.com/api/experiments/6e2b8c4f-1a9d-4f30-8b7e-3c5d0a9f2e14/schedule \
  -H "Authorization: Bearer $COA_API_KEY"
Response
{
  "schedule": {
    "id": "c4f8a1d7-3e6b-4d92-b0a5-9e2c7f1d4a63",
    "experimentId": "6e2b8c4f-1a9d-4f30-8b7e-3c5d0a9f2e14",
    "datasetId": "3f1c2a9e-0b7d-4e55-9a51-6f2f1c0e8d11",
    "targetAgentId": null,
    "targetAuthority": "execute_with_approval",
    "baselineRunId": "d1a7e5c3-9f2b-4e86-a4c0-6b8d2f0e7a95",
    "cadenceHours": 24,
    "enabled": true,
    "lastRunAt": "2026-11-28T10:00:04.731Z",
    "nextRunAt": "2026-11-29T10:00:04.731Z"
  },
  "runs": [
    {
      "id": "f2c6b0e8-7d4a-4a19-9e3f-5a1c8d6b2e70",
      "scheduleId": "c4f8a1d7-3e6b-4d92-b0a5-9e2c7f1d4a63",
      "experimentRunId": "a9e3d7b1-4c8f-4b25-8d6a-2f0e5c9b1d47",
      "status": "regressed",
      "regressedCount": 1,
      "criticalCount": 1,
      "detail": {
        "regressions": [
          {
            "caseId": "b7e2c9a4-5f1d-4b83-9c6e-0d4a8f2e1b57",
            "title": "Record update needs execute authority",
            "dimension": "manifest_ceiling",
            "critical": true,
            "before": { "passed": true, "decision": "deny" },
            "after": { "passed": false, "decision": "allow" }
          }
        ]
      },
      "triggeredAt": "2026-11-28T10:00:04.512Z",
      "completedAt": "2026-11-28T10:00:04.512Z"
    }
  ]
}

POST /api/experiments/{id}/schedule

Create or replace an experiment's schedule

Creates the schedule, or replaces the existing one as a whole: optional fields you leave out are reset to their defaults (no agent, no baseline, 24 hours, enabled) rather than kept. A new schedule is due immediately and runs at the next hourly check; replacing a schedule does not move its next run time. The change is written to the audit log as experiment.schedule.

Access: API key with the admin scope, or a signed-in workspace member.

Path parameters
NameTypeDescription
id requireduuidExperiment id.
Request body
NameTypeDescription
authority requiredstringAuthority level to re-run: answer, draft, recommend, prepare_action, execute_with_approval or execute_automatically. The value is not validated; an unrecognised level is evaluated like answer.
agentIduuidId of an agent in the workspace to attach the scheduled runs to.
baselineRunIduuidId of a run of this experiment to compare each re-run against. Without it, re-runs are stored with status no_baseline.
cadenceHoursnumberMinimum hours between re-runs. A number greater than 0, rounded down to whole hours; a value below 1 is stored as 0, which makes the schedule due at every hourly check. Defaults to 24, also when the value is not a positive number.
enabledbooleanSet to false to pause the schedule. Defaults to true.

Returns: The saved schedule (HTTP 200): id, experimentId, datasetId, targetAgentId, targetAuthority, baselineRunId, cadenceHours, enabled, lastRunAt and nextRunAt.

Errors
StatusCodeWhen
400authority_requiredauthority is missing, not a string, or blank.
404not_foundThe experiment does not exist in the workspace, or agentId names an agent that does not.
400invalid_baselinebaselineRunId is not a run of this experiment.
Request
curl -X POST https://centerofagentic.com/api/experiments/6e2b8c4f-1a9d-4f30-8b7e-3c5d0a9f2e14/schedule \
  -H "Authorization: Bearer $COA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"authority": "execute_with_approval", "baselineRunId": "d1a7e5c3-9f2b-4e86-a4c0-6b8d2f0e7a95", "cadenceHours": 24}'
Response
{
  "id": "c4f8a1d7-3e6b-4d92-b0a5-9e2c7f1d4a63",
  "experimentId": "6e2b8c4f-1a9d-4f30-8b7e-3c5d0a9f2e14",
  "datasetId": "3f1c2a9e-0b7d-4e55-9a51-6f2f1c0e8d11",
  "targetAgentId": null,
  "targetAuthority": "execute_with_approval",
  "baselineRunId": "d1a7e5c3-9f2b-4e86-a4c0-6b8d2f0e7a95",
  "cadenceHours": 24,
  "enabled": true,
  "lastRunAt": null,
  "nextRunAt": "2026-11-28T09:25:12.406Z"
}

DELETE /api/experiments/{id}/schedule

Delete an experiment's schedule

Removes the schedule together with its list of scheduled re-runs. The experiment runs those re-runs created are kept. The call succeeds even when the experiment has no schedule.

Access: API key with the admin scope, or a signed-in workspace member.

Path parameters
NameTypeDescription
id requireduuidExperiment id.

Returns: { ok: true }.

Annotation queue and agreement

Reviewers record a verdict (correct, incorrect or unsure) on whether the governance decision of a completed run was right, using POST /api/receipts/{id}/annotations. These read-only endpoints show which runs to review first and how the verdicts add up. To turn a verdict into a dataset case, see POST /api/datasets/{id}/cases/from-annotation above.

GET /api/annotations/queue

List the runs that most need a human verdict

Looks at the 500 most recent runs in the workspace, leaves out those that already have a verdict, and orders the rest by priority, then oldest first. The reason sets the priority: sensitive_allow (40) for an allowed run of an agent whose authority is prepare_action or higher, guardrail_flagged (30) for a run whose guardrails failed, denied_decision (20) for a denied run and unreviewed (10) for any other run.

Access: API key with the read scope, or a signed-in workspace member.

Query parameters
NameTypeDescription
limitnumberMaximum number of items. Defaults to 100; values above 200 are capped at 200.
includeAnnotated"true" | "1"Set to true or 1 to also include runs that already have a verdict. Any other value leaves them out.

Returns: { queue }: an array of items with receiptId, reason, priority, agentId, agentName, model, authority (the agent's current authority level, or null), decision (allow, deny or null), reasonCode, guardrailsPassed, promptPreview (the first 160 characters of the prompt, followed by … when it was cut), createdAt (ISO 8601) and annotationCount.

Request
curl "https://centerofagentic.com/api/annotations/queue?limit=20" \
  -H "Authorization: Bearer $COA_API_KEY"
Response
{
  "queue": [
    {
      "receiptId": "5d9b0e3a-6c2f-4a71-8e4b-1f7c9d2a0b36",
      "reason": "sensitive_allow",
      "priority": 40,
      "agentId": "2c7f9a1e-8b3d-4e60-a9f4-0d6b5c3e1a82",
      "agentName": "Renewals assistant",
      "model": "example-provider/example-model",
      "authority": "execute_with_approval",
      "decision": "allow",
      "reasonCode": "ALLOWED",
      "guardrailsPassed": true,
      "promptPreview": "Update the renewal date on the account record from the attached note.",
      "createdAt": "2026-11-27T16:42:10.305Z",
      "annotationCount": 0
    }
  ]
}

GET /api/annotations/summary

Get reviewer agreement with governance decisions

Adds up every verdict recorded in the workspace, overall and per agent. correctnessRate is correct divided by correct plus incorrect, and is null when there is no decisive verdict. byDimension counts only verdicts that name a dimension. perAgent lists agents with at least one verdict, lowest rate first.

Access: API key with the read scope, or a signed-in workspace member.

Returns: { agreement, perAgent }. agreement has total, correct, incorrect, unsure, correctnessRate and byDimension. Each entry of perAgent has agentId, agentName and the same six fields.

Request
curl https://centerofagentic.com/api/annotations/summary \
  -H "Authorization: Bearer $COA_API_KEY"
Response
{
  "agreement": {
    "total": 12,
    "correct": 9,
    "incorrect": 2,
    "unsure": 1,
    "correctnessRate": 0.8181818181818182,
    "byDimension": {
      "manifest_ceiling": { "correct": 3, "incorrect": 1, "unsure": 0 },
      "data_residency": { "correct": 2, "incorrect": 0, "unsure": 0 }
    }
  },
  "perAgent": [
    {
      "agentId": "2c7f9a1e-8b3d-4e60-a9f4-0d6b5c3e1a82",
      "agentName": "Renewals assistant",
      "total": 5,
      "correct": 3,
      "incorrect": 2,
      "unsure": 0,
      "correctnessRate": 0.6,
      "byDimension": {
        "manifest_ceiling": { "correct": 1, "incorrect": 1, "unsure": 0 }
      }
    },
    {
      "agentId": "9d4e1b7a-3f6c-4c28-b5e0-8a2f7d1c6b39",
      "agentName": "Policy helper",
      "total": 7,
      "correct": 6,
      "incorrect": 0,
      "unsure": 1,
      "correctnessRate": 1,
      "byDimension": {
        "manifest_ceiling": { "correct": 2, "incorrect": 0, "unsure": 0 },
        "data_residency": { "correct": 2, "incorrect": 0, "unsure": 0 }
      }
    }
  ]
}

Something missing or unclear? Tell us and we will improve this page.