Resolve Agent (M2M)
Resolve an agent's identity and system prompt for a backend-initiated run (see app/core/triggers/delivery.py) or a widget run. Authenticated with a BundleAccessToken for the SAME deployment the agent belongs to - never a Keycloak JWT, and never any other deployment's token, matching resolve_agent_config's own authorization shape immediately above. A widget session token is accepted only for an agent its session reaches. agent-runtime's existing GET /v1/agents/{agent_id} route cannot be reused here: it requires a Keycloak JWT (SecurityContextDep), and a backend-initiated trigger run has no live user session to hold one.
Authorization
BundleAccessToken AuthorizationBearer <token>
In: header
Path Parameters
agent_id*Agent Id
Format
uuidResponse Body
application/json
application/json
curl -X GET "https://example.com/v1/bundler/agent-by-deployment/497f6eca-6276-4993-bfeb-53cbbbba6f08"{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "name": "string", "deployment_id": "6ef0ac85-9892-4664-a2a5-58bf2af5a8a6", "llm_provider_id": "01f100ab-eef6-496a-9799-f8fbf49c6288", "org_id": "a40f5d1f-d889-42e9-94ea-b9b33585fc6b", "system_prompt": "string", "has_workflow": false, "event_org_id": "38381290-8ff7-413c-a0d2-e750a21c5122", "creator_id": "9cceffdd-8381-4074-8256-eafae24ebee6", "first_message": "string", "state_schema": {}, "evaluation_criteria_defs": []}Empty
Empty
{ "detail": [ { "loc": [ "string" ], "msg": "string", "type": "string" } ]}