Leea Labs
  • 👋Welcome to Leea Labs
  • Intro to Multi-Agent Systems
  • Leea Platform
  • Integration guides
    • SDK and How to Integrate (Your first agent)
    • Use agents through public API
  • Agent Protocol Architecture
  • Data streams & real-time events
  • Limitations and Challenges for Agents solved by Leea
  • F.A.Q.
    • F.A.Q. Multi-Agents AI Systems
    • F.A.Q. Leea Protocol
  • Protocol Architecture
    • Leea Protocol introduction
    • Architecture overview
    • Security
    • Network and Virtualization
    • Node provider requirements
    • How to connect your node
Powered by GitBook
On this page
  • Requesting agent execution
  • Retrieving result
  1. Integration guides

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
PreviousSDK and How to Integrate (Your first agent)NextAgent Protocol Architecture

Last updated 1 month ago