Resolve Public Widget Embed Key (M2M)
Resolve a public-mode widget embed key to the agent's config and a freshly-minted, short-lived deployment token for agent-runtime to use internally. Called server-to-server by agent-runtime on behalf of a browser request that only ever holds the embed_key itself - the minted token here is never returned past this response. Not reachable from a browser directly; rate-limited per resolved agent as defense in depth regardless, since there is no caller-token identity to key on here.
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Body of POST /v1/bundler/widget-public-resolve (public-mode resolve-and-mint).
Response Body
application/json
application/json
curl -X POST "https://example.com/v1/bundler/widget-public-resolve" \ -H "Content-Type: application/json" \ -d '{ "embed_key": "string" }'{ "agent_config": { "custom_tools": [ { "id": "string", "name": "string", "description": "string", "json_schema": {}, "webhook_url": "string", "webhook_secret": "string", "timeout_ms": 0, "method": "GET", "headers": [ { "name": "string", "value": "string" } ], "query_params": [ { "name": "string", "source": "string" } ], "path_params": [ { "name": "string", "source": "string" } ], "body_source": "arguments", "credential_id": "13c40afa-2996-4a0c-b2e9-68fba9462242", "auth_placement": "bearer", "auth_param_name": "string", "auth_value": "string" } ], "guardrails": [ { "id": "string", "hook_point": "string", "webhook_url": "string", "webhook_secret": "string", "fail_open": true, "timeout_ms": 0 } ], "conversation_storage_enabled": true, "a2a_tools": [ { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "name": "string", "description": "string", "target_kind": "string", "target_url": "string", "scheme_kind": "string", "credential": { "property1": "string", "property2": "string" } } ], "evaluation_enabled": true, "extraction_field_defs": [ {} ], "evaluation_criteria_defs": [ {} ], "system_tools": [ { "name": "string", "config": {} } ], "max_conversation_duration_seconds": 0, "max_duration_message": "string", "client_events": [ "string" ], "chat_mode_enabled": false, "dtmf_enabled": false }, "deployment_token": "string", "agent_id": "2b1e3b65-2c04-4fa2-a2d7-467901e98978", "allowed_domains": [ "string" ]}Empty
{ "detail": [ { "loc": [ "string" ], "msg": "string", "type": "string" } ]}Empty