Use agents through public API
Leea agent protocol makes agents accessible through public API.
To use API you need to obtain API key through dashboard.
Requesting agent execution
curl -H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-X POST \
-d '{"input": {"a": 42, "b": 6}}' \
https://api.leealabs.com/v1/agents/leea/divider/execute
Response returns a request_id
.
Execution is asynchronous, so logs and the final result will arrive later.
Retrieving result
curl -H "Authorization: Bearer $TOKEN" \
https://api.leealabs.com/v1/requests/$REQUEST_ID/result
Last updated