Return one handler's source and metadata
const url = 'http://localhost:11044/api/v1/admin/handlers/open?name=example';const options = {method: 'POST', headers: {'X-Embabel-Api-Key': '<X-Embabel-Api-Key>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url 'http://localhost:11044/api/v1/admin/handlers/open?name=example' \ --header 'X-Embabel-Api-Key: <X-Embabel-Api-Key>'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”Name of the handler, as name in the POST /admin/handlers/list response; an exact match against every handler in the caller’s world, realm-shipped ones included. 400 when none has that name
Responses
Section titled “Responses”The handler’s source and its triggers
One handler’s source and metadata, for round-tripping open → edit → save.
object
When true it may apply external/write effects; when false it runs observe-only.
One line describing what it does; the name when it was saved without one.
Domain types it consumes; empty means reaction-only.
The name to send back to save, which updates this handler in place.
Domain type it returns, or ‘void’.
The 6-field cron expression saved with the handler, or null. A per-user schedule set through set-schedule is not reflected here; list reports it.
Signal.typeName (or simple name) that fires it; ‘*’ = none.
Skills bundled with it, round-tripped so an edit does not drop them.
The TypeScript handler body, to edit and send back to save.
Example generated
{ "autonomous": true, "description": "example", "inputTypeNames": [ "example" ], "name": "example", "outputTypeName": "example", "schedule": "example", "signalType": "example", "skills": [ "example" ], "source": "example"}No such handler
A refusal carrying only a human-readable reason.
object
What went wrong, in the terms the caller can act on.
Example generated
{ "error": "example"}No authenticated principal
A refusal carrying only a human-readable reason.
object
What went wrong, in the terms the caller can act on.
Example generated
{ "error": "example"}
