Skip to contentSkip to page list

Docs

Read the registry change feed

The organisation's registry events in order: governance.agent.registered, .versioned, .tool_deprecated, .removed and .flagged_shadow. Pass the last sequence read as cursor; the same events are pushed to webhook endpoints subscribed to governance.agent.*.

GET/api/v1/governance/registry/events
Request and response examples
request.py
import osimport requests​origin = "https://app.langwatch.ai"path = "/api/v1/governance/registry/events"api_key = os.environ["LANGWATCH_API_KEY"]headers = {    "Authorization": "Bearer " + api_key,}​response = requests.get(    origin + path,    headers=headers,)print(response.json())

Success

application/json · Generated from schema

{  "data": [    {      "id": "string",      "sequence": "string",      "type": "governance.agent.registered",      "organization_id": "string",      "agent_id": "string",      "from_version": 0,      "to_version": 0,      "tool": "string",      "occurred_at": "string",      "agent": {        "id": "string",        "source": "langwatch",        "management": "managed",        "kind": "string",        "name": "string",        "description": "string",        "status": "active",        "shadow": false,        "version": 0,        "source_version": "string",        "project_id": "string",        "environment": "string",        "owner": {          "user_id": null,          "name": null        },        "endpoints": [          {            "kind": null,            "url": null,            "protocol": null          }        ],        "model": {          "provider": null,          "model": null,          "parameters": null        },        "instructions": "string",        "capabilities": [          "string"        ],        "tools": [          {            "name": null,            "description": null,            "input_schema": null,            "output_schema": null,            "status": null,            "deprecated_in_version": null,            "deprecated_at": null          }        ],        "first_seen_at": "string",        "last_seen_at": "string",        "updated_at": "string",        "removed_at": "string"      }    }  ],  "next_cursor": "string"}
api-reference/governance-agent-registry/read-the-registry-change-feed

Authorization

Authorizationstringheaderrequired

Admin API key for organization-level operations (managing projects, API keys). Create one in Settings > API Keys or via POST /api/api-keys. Format: sk-lw-{id}_{secret}.

Query parameters

limitinteger
Minimum 1Maximum 200
cursorstring

Responses

200

Success

application/json

dataobject[]required
idstringrequired
sequencestringrequired
typestringrequired
One of"governance.agent.registered""governance.agent.versioned""governance.agent.removed""governance.agent.tool_deprecated""governance.agent.flagged_shadow"
organization_idstringrequired
agent_idstringrequired
from_versioninteger | nullrequired
to_versioninteger | nullrequired
toolstring | nullrequired
occurred_atstringrequired
agentobjectrequired
next_cursorstring | nullrequired
400

Bad Request

application/json

typestringrequired
codestringrequired
messagestringrequired
retryablebooleanrequired
metaobject
trace_idstring
span_idstring
traceobject
traceIdstring
spanIdstring
traceUrlstring
logsUrlstring
tipsstring[]
docs_urlstring
faultstring
One of"customer""platform""provider""presumed_platform"
reasonsany[]
401

Unauthorized

application/json

typestringrequired
codestringrequired
messagestringrequired
retryablebooleanrequired
metaobject
trace_idstring
span_idstring
traceobject
traceIdstring
spanIdstring
traceUrlstring
logsUrlstring
tipsstring[]
docs_urlstring
faultstring
One of"customer""platform""provider""presumed_platform"
reasonsany[]
403

Forbidden

application/json

typestringrequired
codestringrequired
messagestringrequired
retryablebooleanrequired
metaobject
trace_idstring
span_idstring
traceobject
traceIdstring
spanIdstring
traceUrlstring
logsUrlstring
tipsstring[]
docs_urlstring
faultstring
One of"customer""platform""provider""presumed_platform"
reasonsany[]
422

Unprocessable Entity

application/json

typestringrequired
codestringrequired
messagestringrequired
retryablebooleanrequired
metaobject
trace_idstring
span_idstring
traceobject
traceIdstring
spanIdstring
traceUrlstring
logsUrlstring
tipsstring[]
docs_urlstring
faultstring
One of"customer""platform""provider""presumed_platform"
reasonsany[]
500

Internal Server Error

application/json

typestringrequired
codestringrequired
messagestringrequired
retryablebooleanrequired
metaobject
trace_idstring
span_idstring
traceobject
traceIdstring
spanIdstring
traceUrlstring
logsUrlstring
tipsstring[]
docs_urlstring
faultstring
One of"customer""platform""provider""presumed_platform"
reasonsany[]

Documentation